aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-provider.h
blob: 463f415d1b5aaa1c569af32a9d70434dc83044f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* camel-provider.h :  provider definition  */

/*
 *
 * Author :
 *  Bertrand Guiheneuf <bertrand@helixcode.com>
 *
 * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */


#ifndef CAMEL_PROVIDER_H
#define CAMEL_PROVIDER_H 1


#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <gtk/gtk.h>
#include <camel/camel-types.h>

#define CAMEL_PROVIDER(obj) ((CamelProvider *)(obj))

typedef enum {
    CAMEL_PROVIDER_STORE,
    CAMEL_PROVIDER_TRANSPORT,
    CAMEL_NUM_PROVIDER_TYPES
} CamelProviderType;

extern char *camel_provider_type_name[CAMEL_NUM_PROVIDER_TYPES];

#define CAMEL_PROVIDER_IS_REMOTE    (1 << 0)

typedef struct {
    /* Provider name used in CamelURLs. */
    char *protocol;

    /* Provider name as used by people. (May be the same as protocol) */
    char *name;

    /* Description of the provider. A novice user should be able
     * to read this description, and the information provided by
     * an ISP, IS department, etc, and determine whether or not
     * this provider is relevant to him, and if so, which
     * information goes with it.
     */
    char *description;

    int flags;

    GtkType object_types [CAMEL_NUM_PROVIDER_TYPES];
} CamelProvider;

GHashTable *camel_provider_init (void);
void camel_provider_load (CamelSession *session, const char *path,
              CamelException *ex);

/* This is defined by each module, not by camel-provider.c. */
void camel_provider_module_init (CamelSession *session);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_PROVIDER_H */
span> * Given that HAL doesn't work on sparc64 and always needs to be disabledmarius2010-02-081-2/+11 * Update xorg-server and friends to 1.6.5.rnoland2010-02-0711-44/+20 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-3/+0 * Mark BROKEN on 9.x: does not builderwin2009-12-161-0/+4 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * Allow building on ia64. This does not make it functional, becausemarcel2009-06-202-1/+229 * Convert most of remaining ports that depend on xorg-libraries toamdmi32009-06-091-1/+2 * Update Xserver and friends to 1.6.1rnoland2009-05-0812-41/+35 * Update Xorg server to 1.6.0rnoland2009-04-0419-625/+111 * Given that the x86-centric approach of mmap(2)'ing PCI memory viamarius2009-04-012-1/+14 * Add the patch that I missed in the last commit.rnoland2009-03-091-0/+90 * Add a patch from git to fix issues with gnome-2.25.rnoland2009-03-092-2/+1 * Add a patch to handle memory barriers on amd64 the same as linux.rnoland2009-03-032-1/+12 * Add a patch to deal with the hald/xorg startup race. With this patchrnoland2009-02-082-1/+144 * - Replace open(2)/close(2) pairs with stat(2). Closing mouse device hasjkim2009-02-052-28/+62 * - Partially back out the previous attempt to fix PS/2 protocol support.jkim2009-02-032-14/+23 * Add dependency on dri2proto to more server components.rnoland2009-01-283-3/+6 * Build record and xtrap extensions.flz2009-01-272-2/+7 * add dri2proto depend here as wellrnoland2009-01-261-1/+2 * Add dependency on dri2protornoland2009-01-261-1/+2 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-2419-566/+60 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * Reset grog@FreeBSD.org: last commit was more than 6 months ago, andlinimon2008-08-071-1/+1 * - fix typo -> plist for -DNOPORTDOCSitetcu2008-07-042-7/+10 * Remove x11-servers/xorg-server-snap as it has been unmaintained for a while.flz2008-06-1916-698/+0 * Update x11-servers/xorg-server to 1.4.2 (security update).flz2008-06-155-681/+4 * Explicitely disable dtrace support for now.flz2008-06-094-4/+4 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-064-3/+4 * Add upstream patch (don't free not-allocated dbus socket).flz2008-05-292-1/+15 * Disable dtrace support for now as userland tracing isn't supported yet.flz2008-05-271-1/+1 * Add xephyr, a kdrive-based X server. Xephyr will ultimately replace Xnest.flz2008-05-204-0/+55 * Mark xorg-server-snap as DEPRECATED and set EXPIRATION_DATE to next month.flz2008-05-201-0/+2 * Retire xorg-printserver.flz2008-05-165-972/+0 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-207-11/+12 * - Auto-detect and use native extended PS/2 protocols with the latest psm(4).jkim2008-04-163-33/+102 * Fix mouse probing issues with HAL support:jkim2008-04-023-1/+154 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-261-1/+1 * Add inputproto and xtrans to USE_XORG.flz2008-03-151-2/+3 * Add inputproto and xtrans to USE_XORG.flz2008-03-151-2/+3 * Add patch that fixes xmodmap use in .xinitrc.flz2008-03-132-1/+148 * Remove support for XFree8-4.flz2008-03-0850-2241/+0