/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: Jeffrey Stedfast * * Copyright 2002 Ximian, Inc. (www.ximian.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 Street #330, Boston, MA 02111-1307, USA. * */ #ifdef HAVE_CONFIG_H #include #endif #include #include "camel-exception.h" #include "camel-digest-store.h" #include "camel-digest-folder.h" #include "camel-private.h" #define d(x) static CamelFolder *digest_get_folder (CamelStore *store, const char *folder_name, guint32 flags, CamelException *ex); static void digest_delete_folder (CamelStore *store, const char *folder_name, CamelException *ex); static void digest_rename_folder (CamelStore *store, const char *old, const char *new, CamelException *ex); static void digest_init_trash (CamelStore *store); static CamelFolder *digest_get_trash (CamelStore *store, CamelException *ex); static CamelFolderInfo *digest_get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelException *ex); static void camel_digest_store_class_init (CamelDigestStoreClass *klass); static void camel_digest_store_init (CamelDigestStore *obj); static void camel_digest_store_finalise (CamelObject *obj); static int digest_setv (CamelObject *object, CamelException *ex, CamelArgV *args); static int digest_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args); static CamelStoreClass *parent_class = NULL; CamelType camel_digest_store_get_type (void) { static CamelType type = CAMEL_INVALID_TYPE; if (type == CAMEL_INVALID_TYPE) { type = camel_type_register (camel_store_get_type (), "CamelDigestStore", sizeof (CamelDigestStore), sizeof (CamelDigestStoreClass), (CamelObjectClassInitFunc) camel_digest_store_class_init, NULL, (CamelObjectInitFunc) camel_digest_store_init, (CamelObjectFinalizeFunc) camel_digest_store_finalise); } return type; } static void camel_digest_store_class_init (CamelDigestStoreClass *klass) { CamelObjectClass *object_class = (CamelObjectClass *) klass; CamelStoreClass *store_class = (CamelStoreClass *) klass; parent_class = CAMEL_STORE_CLASS(camel_type_get_global_classfuncs (camel_store_get_type ())); /* virtual method overload */ object_class->setv = digest_setv; object_class->getv = digest_getv; store_class->get_folder = digest_get_folder; store_class->rename_folder = digest_rename_folder; store_class->delete_folder = digest_delete_folder; store_class->get_folder_info = digest_get_folder_info; store_class->free_folder_info = camel_store_free_folder_info_full; store_class->init_trash = digest_init_trash; store_class->get_trash = digest_get_trash; } static void camel_digest_store_init (CamelDigestStore *obj) { CamelStore *store = (CamelStore *) obj; /* we dont want a vtrash on this one */ store->flags &= ~(CAMEL_STORE_VTRASH); } static void camel_digest_store_finalise (CamelObject *obj) { } static int digest_setv (CamelObject *object, CamelException *ex, CamelArgV *args) { /* CamelDigestStore doesn't currently have anything to set */ return CAMEL_OBJECT_CLASS (parent_class)->setv (object, ex, args); } static int digest_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args) { /* CamelDigestStore doesn't currently have anything to get */ return CAMEL_OBJECT_CLASS (parent_class)->getv (object, ex, args); } /** * camel_digest_store_new: * @url: * * Create a new CamelDigestStore object. * * Return value: A new CamelDigestStore widget. **/ CamelStore * camel_digest_store_new (const char *url) { CamelStore *store; CamelURL *uri; uri = camel_url_new (url, NULL); if (!uri) return NULL; store = CAMEL_STORE (camel_object_new (camel_digest_store_get_type ())); CAMEL_SERVICE (store)->url = uri; return store; } static CamelFolder * digest_get_folder (CamelStore *store, const char *folder_name, guint32 flags, CamelException *ex) { return NULL; } static void digest_init_trash (CamelStore *store) { /* no-op */ ; } static CamelFolder * digest_get_trash (CamelStore *store, CamelException *ex) { return NULL; } static CamelFolderInfo * digest_get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelException *ex) { return NULL; } static void digest_delete_folder (CamelStore *store, const char *folder_name, CamelException *ex) { } static void digest_rename_folder (CamelStore *store, const char *old, const char *new, CamelException *ex) { } ome/?h=mate-1.18'>summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* KDE FreeBSD team presents KDE SC 4.5.4.makc2010-12-033-11/+124
* Reset anray@FreeBSD.org due to maintainer-timeouts and no response to email.linimon2010-12-021-1/+1
* Use dirrmtry for common directoriesmakc2010-11-281-1/+1
* Change maintainer address for my portsrea2010-11-281-1/+1
* Phase is a widget style for Qt 4 and KDE 4. It is designed to beamdmi32010-11-261-0/+1
* Makefileamdmi32010-11-264-0/+79
* Style for Qt 4 and KDE.amdmi32010-11-264-0/+44
* QuantumStyle is an SVG themable style for Qt 4 and KDE.amdmi32010-11-264-0/+44
* Update to 1.7.2makc2010-11-246-9/+9
* Update to 1.7.1makc2010-11-242-3/+3
* Presenting GNOME 2.32.1 for FreeBSD. The offical release notes for thiskwm2010-11-207-79/+275
* - Mark BROKEN on 6.X: fails to installpav2010-11-151-0/+4
* Update to 1.7.0makc2010-11-149-16/+15
* KDE FreeBSD team presents KDE SC 4.5.3.makc2010-11-043-6/+110
* Connect gtk-equinox-enginemakc2010-10-311-0/+1
* Add new port x11-themes/gtk-equinox-engine:makc2010-10-314-0/+336
* Deprecate md5 in favour of sha256 checksums. md5 checksums will no longererwin2010-10-293-3/+3
* - Fix build for ${OSVERSION} < 800000wen2010-10-272-2/+21
* - Update to version 0.5.0wen2010-10-183-35/+19
* Remove dead master sitemakc2010-10-172-4/+2
* Punt autoconf267->autoconf268ade2010-10-163-3/+3
* Update to 20101013ehaupt2010-10-133-23/+62
* Round one migration of ports from automake{19,110} to automake111ade2010-10-063-23/+18
* KDE FreeBSD team presents KDE SC 4.5.2.makc2010-10-063-7/+11
* Add x11-themes/lxde-icon-theme.kmoore2010-09-306-0/+6703
* - Add enlightenment virtual category to a couple of portspav2010-09-301-1/+1
* Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-163-5/+5
* Update to 1.6.1makc2010-09-166-12/+12
* Update qtcurve ports to 1.6.0makc2010-09-158-16/+16
* Over to submitter of most recent update.linimon2010-09-091-1/+1
* Use my new addressswills2010-09-053-3/+3
* KDE FreeBSD team presents KDE SC 4.5.1.makc2010-09-034-54/+352
* Remove x11-themes/kde4-windeco-aurorae, it has been intergated into x11/kdeba...makc2010-08-245-54/+0
* Add gnome-icons-dropline-neu, an icon set for Gnome.olgeni2010-08-045-0/+3609
* Update MASTER_SITES from the project's home page.olgeni2010-08-042-2/+2
* Connect cursor-chameleon-* portsmakc2010-08-031-0/+5
* Add new ports:makc2010-08-0322-0/+3304
* Reset ahze@ due to maintainer-timeouts and no response to email.linimon2010-07-265-5/+5
* Presenting GNOME 2.30.2. for FreeBSD.kwm2010-07-263-8/+25
* - Update to 1.0.1gahr2010-07-193-1554/+1558
* Connect linux-f10-qtcurve-gtk2makc2010-07-171-0/+1
* Add Linux version of QtCurve GTK2 theme engine.makc2010-07-174-0/+50
* - Update to 1.0.1miwi2010-07-063-22/+50
* Update to 1.5.0makc2010-07-059-16/+17
* Reset ilya@space.rootshell.ru: address bounces.linimon2010-07-051-1/+1
* Present KDE SC 4.4.5 for FreeBSD.makc2010-06-304-14/+65
* Update to 1.4.3makc2010-06-284-8/+8
* Update to 1.4.1makc2010-06-282-4/+4
* Update to 3.3.3makc2010-06-272-5/+4
* Convert LDCONFIG_DIRS to USE_LDCONFIG.makc2010-06-092-6/+2
* LICENSE LGPL21dinoex2010-06-051-0/+2
* LICENSE BSDdinoex2010-06-042-0/+4
* Fix build on 6.xmakc2010-06-031-0/+1
* Mark slave port x11-themes/kde-icons-crystal-project as broken on powerpc.linimon2010-06-031-1/+7
* Present KDE SC 4.4.4 for FreeBSD.makc2010-06-024-6/+27
* Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-317-4/+7
* - drop USE_GNUSTEP_PREFIXdinoex2010-05-3010-655/+656
* Connect qtcurve-qt4makc2010-05-261-0/+1
* Add new port x11-themes/qtcurve-qt4:makc2010-05-263-0/+37
* Remove needless LDCONFIG_DIRS from kde@ ports.makc2010-05-231-1/+0
* Update to 1.4.1makc2010-05-233-4/+5
* Update to 1.4.0makc2010-05-232-7/+6
* Update to 1.4.1makc2010-05-233-30/+10
* - fix build with gnustep-make 2.4dinoex2010-05-221-0/+3
* - IGNORE, set for expiration - is now bundled in kde4pav2010-05-171-0/+4
* - Update to 20100514miwi2010-05-163-5/+34
* - Another try to fix 6.x/7.x buildfluffy2010-05-121-1/+1
* Update to 2.20.1.kwm2010-05-122-5/+5
* - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-115-50/+174
* - Fix mistype in patchnamefluffy2010-05-111-1/+1
* Presenting GNOME 2.30.1 for FreeBSD. The offical release notes for thiskwm2010-05-119-31/+82
* This is only a port from a cursorxp theme made by JJ. Ying. All credit goes tomiwi2010-05-095-0/+113
* - Dropping maintainership [1]fluffy2010-05-085-2/+409
* - Dropping maintainershipfluffy2010-05-081-1/+1
* - Fix patching issue with parallel dimensionsmiwi2010-05-022-2/+7
* - Update to Xorg 7.5miwi2010-05-013-5/+7
* - x11-themes/qtcurve-gtk2: update to 1.3.0 releasefluffy2010-04-213-5/+5
* - x11-themes/qtcurve-kde4: update to 1.3.1 releasefluffy2010-04-213-5/+6
* update audacious to 2.3oliver2010-04-191-1/+1
* Upgrade to version 0.8.olgeni2010-04-082-4/+4
* - update to 1.4.1dinoex2010-03-28