/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* camel-provider.h : provider definition */ /* * * Authors: * Bertrand Guiheneuf * Jeffrey Stedfast * * 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 #include #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]; /* _IS_SOURCE means the user can get mail from there. * _IS_STORAGE means the user can read mail from there. */ #define CAMEL_PROVIDER_IS_REMOTE (1 << 0) #define CAMEL_PROVIDER_IS_SOURCE (1 << 1) #define CAMEL_PROVIDER_IS_STORAGE (1 << 2) /* Flags for url_flags. "ALLOW" means the config dialog will let * the user configure it. "NEED" implies "ALLOW" but means the user * must configure it. Service code can assume that any url part * for which it has set the NEED flag will be set when the service * is created. */ #define CAMEL_URL_PART_USER (1 << 0) #define CAMEL_URL_PART_AUTH (1 << 1) #define CAMEL_URL_PART_PASSWORD (1 << 2) #define CAMEL_URL_PART_HOST (1 << 3) #define CAMEL_URL_PART_PORT (1 << 4) #define CAMEL_URL_PART_PATH (1 << 5) #define CAMEL_URL_PART_NEED 6 /* Use these macros to test a provider's url_flags */ #define CAMEL_PROVIDER_ALLOWS(prov, flags) (prov->url_flags & (flags | (flags << CAMEL_URL_PART_NEED))) #define CAMEL_PROVIDER_NEEDS(prov, flags) (prov->url_flags & (flags << CAMEL_URL_PART_NEED)) /* Providers use these macros to actually define their url_flags */ #define CAMEL_URL_ALLOW_USER (CAMEL_URL_PART_USER) #define CAMEL_URL_ALLOW_AUTH (CAMEL_URL_PART_AUTH) #define CAMEL_URL_ALLOW_PASSWORD (CAMEL_URL_PART_PASSWORD) #define CAMEL_URL_ALLOW_HOST (CAMEL_URL_PART_HOST) #define CAMEL_URL_ALLOW_PORT (CAMEL_URL_PART_PORT) #define CAMEL_URL_ALLOW_PATH (CAMEL_URL_PART_PATH) #define CAMEL_URL_NEED_USER (CAMEL_URL_PART_USER << CAMEL_URL_PART_NEED) #define CAMEL_URL_NEED_AUTH (CAMEL_URL_PART_AUTH << CAMEL_URL_PART_NEED) #define CAMEL_URL_NEED_PASSWORD (CAMEL_URL_PART_PASSWORD << CAMEL_URL_PART_NEED) #define CAMEL_URL_NEED_HOST (CAMEL_URL_PART_HOST << CAMEL_URL_PART_NEED) #define CAMEL_URL_NEED_PORT (CAMEL_URL_PART_PORT << CAMEL_URL_PART_NEED) #define CAMEL_URL_NEED_PATH (CAMEL_URL_PART_PATH << CAMEL_URL_PART_NEED) #define CAMEL_URL_PATH_IS_ABSOLUTE (1 << 12) 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; /* The category of message that this provider works with. * (evolution-mail will only list a provider in the store/transport * config dialogs if its domain is "mail".) */ char *domain; /* Flags describing the provider, flags describing its URLs */ int flags, url_flags; CamelType object_types [CAMEL_NUM_PROVIDER_TYPES]; /* GList of CamelServiceAuthTypes the provider supports */ GList *authtypes; GHashTable *service_cache; } 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 */ ter'>master FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* graphics/epdfview: refresh with working mirrorsjbeich2015-05-081-4/+4
* It seems doxygen's magic include the parent directory name, so grab all the docmat2015-05-072-102/+3
* Update ports in the games category to not use GH_COMMIT.mat2015-05-0756-132/+82
* graphics/libvisual: minor improvementsjbeich2015-05-071-2/+6
* - Update to 8.0.2danilo2015-05-074-9/+10
* - Update to version 0.14mva2015-05-052-4/+3
* - Add USE_OCAML_CAMLP4 and USE_OCAML_TK to bsd.ocaml.mk which addmadpilot2015-05-044-10/+9
* vipsdanilo2015-05-045-44/+14
* - Update to 9.94wen2015-05-042-3/+3
* Remove _*OWNGRP, with staging it's not useful anymoreantoine2015-05-041-3/+3
* - Add missing xorg dependsamdmi32015-05-041-1/+2
* - Update to 2.2.5sunpoet2015-05-042-3/+6
* - Update to 2.2.5sunpoet2015-05-042-5/+9
* - Update to 2.2.5sunpoet2015-05-042-3/+6
* - Add LICENSEsunpoet2015-05-041-1/+4
* - Update to 2.2.5sunpoet2015-05-042-3/+6
* - Update to 1.14.1sunpoet2015-05-042-3/+3
* graphics/mupdf: drop obsolete mirror from MASTER_SITESjbeich2015-05-041-2/+1
* - Move graphics/rubygem-graphviz to graphics/rubygem-ruby-graphvizsunpoet2015-05-034-8/+7
* graphics/darktable: Update to 1.6.6dumbbell2015-05-033-17/+3
* graphics/mupdf: update to 1.7jbeich2015-05-035-47/+8
* Fix pkg-plist.. portlint isn't always correct about .info files.brd2015-05-032-2/+2
* Update to 0.3.3.madpilot2015-05-025-111/+3
* Fix graphics/qgis server functionality and rename the option to chase upstream.brd2015-05-023-15/+22
* Horde package update:mm2015-05-012-3/+3
* Unbreak graphics/inkscape build on FreeBSD 9.3 i386.truckman2015-05-011-0/+12
* USE_GITHUB: For the new support, fix DISTNAME to be more consistent.bdrewery2015-04-291-2/+2
* USES=xfce: Stop overriding MASTER_SITE_SUBDIR.bdrewery2015-04-291-2/+1
* Update to 4.7.0, pet portlint, rename patch files so the names areadamw2015-04-2814-81/+75
* - Update to 1.7.85vg2015-04-282-3/+3
* - Update to 3.14.1vg2015-04-282-3/+3
* - Update to 9.9.3sunpoet2015-04-272-3/+3
* I'm not sure what the code exactly does but reverting the change allows itkwm2015-04-272-0/+102
* - Chase GNU Emacs updatesashish2015-04-271-1/+1
* Convert remaining p5-CGI.pm consumers to p5-CGI, and bump PORTREVISION.adamw2015-04-261-4/+4
* Update to 1.6.17antoine2015-04-254-9/+9
* Deprecate. Please gqview's fork graphics/geeqielme2015-04-241-0/+3
* Update ImageMagick to 6.9.1-2.kwm2015-04-242-3/+3
* Update icu to 55.1bapt2015-04-242-1/+2
* At some point, LDFLAGS got lost; reintroduce it, because it is requiredthierry2015-04-241-3/+6
* - Update to 0.7.5jbeich2015-04-235-31/+38
* - Fix build on mips:amdmi32015-04-231-1/+1
* Fix build.mat2015-04-231-2/+2
* Horde package update:mm2015-04-232-3/+3
* Update to 1.38ehaupt2015-04-223-3/+4
* - Update to 1.2.1sunpoet2015-04-223-6/+6
* - Update RUN_DEPENDSsunpoet2015-04-221-4/+6
* graphics/iulib: Fix c++ template so gcc5 can build iulib, but use clangmarino2015-04-213-2/+24
* graphics/iulib: Update WWW (was redirecting from defunct Google Code)marino2015-04-211-1/+1
* Spell LD_CONFIG's value properly. It is not merely a boolean, after all.mi2015-04-211-1/+1
* Actually, no, this port makes no use of uidfix.mi2015-04-211-1/+1
* Add port for QtAwesome -- a small library, which makes it easier formi2015-04-216-0/+75
* Revert USES=metaport conversion, again.rakuco2015-04-201-3/+5
* Modernise configure.in and Makefile.amtijl2015-04-192-6/+65
* Unbreak INFO build on DragonFly and FreeBSD 11+jbeich2015-04-191-0/+11
* Convert to USES=autoreconftijl2015-04-195-31/+12
* Revert the previous commit. Note EGL was disabled because it does not buildjkim2015-04-191-4/+4
* Misc X.org port updates:kwm2015-04-184-6/+7
* - Remove libtool hacks and patches that are now handled by USES=libtooltijl2015-04-185-13/+1
* Update to 8.2.0.jkim2015-04-185-49/+24
* Remove expired ports:rene2015-04-184-40/+0
* Properly set the data directory.jkim2015-04-181-2/+3
* graphics/darktable: Fix bug with preferences when built with Clang 3.6dumbbell2015-04-182-0/+14
* graphics/evas_generic_loaders-raw: Set environment when buildingmarino2015-04-171-2/+2
* Fix build after r384096 (hiding of _LIBICONV_VERSION)tijl2015-04-171-1/+1
* Over to the enlightement teambapt2015-04-178-8/+8
* Back to the pool.gblach2015-04-179-9/+9
* Bump after opencv pkg-config fix, so we actualy link agains opencv now.kwm2015-04-162-2/+2
* Add patch from debian to fix the installed pkg-config files.kwm2015-04-163-2/+52
* - Add CPE infoamdmi32015-04-161-1/+3
* Upgrade to 1.6.2.thierry2015-04-164-17/+5
* Fix ICONV option after r384038tijl2015-04-161-0/+1
* converters/libiconv:tijl2015-04-1513-228/+50
* - Add CPE infoamdmi32015-04-151-0/+1
* - Add LICENSE_FILEamdmi32015-04-151-1/+2
* - Add CPE infoamdmi32015-04-151-1/+1
* - Add CPE infoamdmi32015-04-151-1/+1
* - Update girara to 0.2.4madpilot2015-04-156-2/+6
* Fix some glib schema issues.kwm2015-04-143-5/+9
* Add patches for CVE-2015-1858, CVE-2015-1859 and CVE-2015-1860.rakuco2015-04-143-1/+78
* - Update to version 7.1.7; rephrase COMMENT text; fix Makefile headerdanfe2015-04-145-24/+108
* Update graphics/p5-Image-ExifTool-devel to version 9.92.danfe2015-04-133-3/+7
* - add CPEdinoex2015-04-131-1/+1
* Tell colord to use /var to store information which is already prepared,kwm2015-04-121-0/+2
* graphics/delaboratory: Unbreak F8 and F9 toomarino2015-04-121-4/+4
* graphics/gtimelapse: Unbreak F8 and F9 toomarino2015-04-121-2/+2
* The problem causing the build breakage on FreeBSD 8 was fixedtruckman2015-04-121-4/+0
* graphics/aeskulap: Unbreak fetch with new MASTER_SITESmarino2015-04-112-9/+8
* graphics/png2html: Unbreak fetch (new site, same author)marino2015-04-112-5/+2
* graphics/pdf2svg: Fix MASTER_SITES to unbreak (same site)marino2015-04-111-3/+1
* Mark MAKE_JOBS_UNSAFE=yes, it tries to use exv_conf.h before/while generating...mat2015-04-111-0/+1
* Don't let xv change its name when options change.mat2015-04-112-1/+2
* Unbreak five wxgtk30-based ports by adding -std=c++11 to cxxflagsmarino2015-04-113-1/+4
* Mini gnome update. Next stop GNOME 3.16!kwm2015-04-102-3/+3
* Convert to USES=gnustepbapt2015-04-101-5/+3
* . Add additional MASTER_SITE.glewis2015-04-102-5/+5
* Document CPE, license.cy2015-04-101-2/+5
* Unbreak by fixing the code to work newer PHP. I'm not sure, if thismi2015-04-103-15/+165
* - Fix build with base gcc on 8.x and 9.x, remove USE_GCCamdmi32015-04-093-24/+68
* Convert bsd.gnustep.mk to USES=gnustepbapt2015-04-0911-61/+30
* Add a new USES=waf to handle the waf building system, allowing to factorise codebapt2015-04-083-33/+6
* - Fix packaging, if the NLS option is not enabledmva2015-04-081-38/+38
* - Deprecate ports and set expiration date to 2015-07-07: No public distfilesak2015-04-081-0/+3
* Convert to USES=metaport, take 2.rakuco2015-04-071-5/+3
* Update ImageMagick to 6.9.1-1.kwm2015-04-062-7/+8
* Update to 0.22.1ehaupt2015-04-062-3/+3
* - Add LICENSE_FILEamdmi32015-04-062-1/+3
* - Update to 1.2.1sunpoet2015-04-063-5/+8
* Mark a few ports in graphics category BROKEN (unfetchable)antoine2015-04-0521-0/+42
* Add NVIDIA_GL description to Mk/bsd.options.desc.mkxmj2015-04-051-8/+3
* graphics/darktable: Update to 1.6.4dumbbell2015-04-053-3/+6
* - Update to 1.002sunpoet2015-04-042-4/+3
* Revert broken conversion to USES=metaportantoine2015-04-041-1/+4
* graphics/ruby-gd: mark does not build with ruby 2.2 alsoswills2015-04-041-2/+2
* Convert kde@ ports to USES=metaport.rakuco2015-04-042-8/+2
* Update to 1.13.2gblach2015-04-0313-20/+19
* Remove OSVERSION checks that do not make sense any more.mat2015-04-033-16/+2
* - Update to version 2.74mva2015-04-033-13/+21
* Add libpng dependency.cy2015-04-021-2/+3
* graphics/npretty: update 0.9.3 -> 0.9.3.1robak2015-04-022-6/+7
* - Add LICENSEamdmi32015-04-021-2/+7
* graphics/fraqtive:makc2015-04-012-18/+7
* Update gtk-update-icon-cache to 2.24.27.kwm2015-04-012-8/+7
* graphics/batik:makc2015-04-011-8/+5
* Mark BROKEN: unfetchableantoine2015-03-311-0/+2
* Update lensfun to version 0.3.0. It contains few changes making consumerdanfe2015-03-3111-40/+526
* - Update to 2.8danilo2015-03-313-6/+5
* Remove dead GNUSTEP_CH master sitesbapt2015-03-311-2/+1
* Remove dead RINGSERVERbapt2015-03-313-6/+3
* Remove dead mirrorbapt2015-03-313-5/+3
* Mark as broken: no public distfilesbapt2015-03-311-1/+3
* graphics/converseen: update 0.9.1 -> 0.9.2robak2015-03-302-4/+3
* Upgrade to 9.90.vanilla2015-03-302-3/+3
* tools/tiffdither.c: check memory allocations to avoid writing toantoine2015-03-302-0/+71
* Convert to USES=autoreconfbapt2015-03-291-4/+3
* Convert to USES=autoreconfbapt2015-03-291-3/+1
* Convert to USES=autoreconfbapt2015-03-29