aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-service.h')
-rw-r--r--camel/camel-service.h140
1 files changed, 0 insertions, 140 deletions
diff --git a/camel/camel-service.h b/camel/camel-service.h
deleted file mode 100644
index 98d3de41f3..0000000000
--- a/camel/camel-service.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* camel-service.h : Abstract class for an email service */
-
-/*
- *
- * Author :
- * Bertrand Guiheneuf <bertrand@helixcode.com>
- *
- * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public
- * License as published by the Free Software Foundation.
- *
- * 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_SERVICE_H
-#define CAMEL_SERVICE_H 1
-
-
-#ifdef __cplusplus
-extern "C" {
-#pragma }
-#endif /* __cplusplus }*/
-
-#include <netdb.h>
-#include <camel/camel-object.h>
-#include <camel/camel-url.h>
-#include <camel/camel-provider.h>
-#include <camel/camel-operation.h>
-
-#define CAMEL_SERVICE_TYPE (camel_service_get_type ())
-#define CAMEL_SERVICE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SERVICE_TYPE, CamelService))
-#define CAMEL_SERVICE_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SERVICE_TYPE, CamelServiceClass))
-#define CAMEL_IS_SERVICE(o) (CAMEL_CHECK_TYPE((o), CAMEL_SERVICE_TYPE))
-
-
-typedef enum {
- CAMEL_SERVICE_DISCONNECTED,
- CAMEL_SERVICE_CONNECTING,
- CAMEL_SERVICE_CONNECTED,
- CAMEL_SERVICE_DISCONNECTING
-} CamelServiceConnectionStatus;
-
-struct _CamelService {
- CamelObject parent_object;
- struct _CamelServicePrivate *priv;
-
- CamelSession *session;
- CamelProvider *provider;
- CamelServiceConnectionStatus status;
- CamelOperation *connect_op;
- CamelURL *url;
-};
-
-
-typedef struct {
- CamelObjectClass parent_class;
-
- void (*construct) (CamelService *service,
- CamelSession *session,
- CamelProvider *provider,
- CamelURL *url,
- CamelException *ex);
-
- gboolean (*connect) (CamelService *service,
- CamelException *ex);
- gboolean (*disconnect) (CamelService *service,
- gboolean clean,
- CamelException *ex);
- void (*cancel_connect) (CamelService *service);
-
- GList * (*query_auth_types) (CamelService *service,
- CamelException *ex);
-
- char * (*get_name) (CamelService *service,
- gboolean brief);
- char * (*get_path) (CamelService *service);
-
-} CamelServiceClass;
-
-
-/* query_auth_types returns a GList of these */
-typedef struct {
- char *name; /* user-friendly name */
- char *description;
- char *authproto;
-
- gboolean need_password; /* needs a password to authenticate */
-} CamelServiceAuthType;
-
-
-/* public methods */
-void camel_service_construct (CamelService *service,
- CamelSession *session,
- CamelProvider *provider,
- CamelURL *url,
- CamelException *ex);
-gboolean camel_service_connect (CamelService *service,
- CamelException *ex);
-gboolean camel_service_disconnect (CamelService *service,
- gboolean clean,
- CamelException *ex);
-void camel_service_cancel_connect (CamelService *service);
-char * camel_service_get_url (CamelService *service);
-char * camel_service_get_name (CamelService *service,
- gboolean brief);
-char * camel_service_get_path (CamelService *service);
-CamelSession * camel_service_get_session (CamelService *service);
-CamelProvider * camel_service_get_provider (CamelService *service);
-GList * camel_service_query_auth_types (CamelService *service,
- CamelException *ex);
-
-/* convenience functions */
-struct hostent * camel_service_gethost (CamelService *service,
- CamelException *ex);
-
-/* cancellable dns lookup */
-struct hostent * camel_get_host_byname (const char *name, CamelException *ex);
-void camel_free_host (struct hostent *h);
-
-/* Standard Camel function */
-CamelType camel_service_get_type (void);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* CAMEL_SERVICE_H */
-
ss='insertions'>+1 * Add big5width 1.0: Unicode width dirty fix for Big5 font (zh_TW.UTF-8 locale).rafan2006-11-111-0/+1 * - Move chinese/xcin25 to chinese/xcin to reflect its real portname.rafan2006-11-051-1/+1 * Add p5-Lingua-Han-PinYin 0.06, retrieve the Mandarin(PinYin) of Chineseclsung2006-10-101-0/+1 * Add p5-Lingua-ZH-HanDetect 0.04, guess Chinese text\'s variant andclsung2006-10-051-0/+1 * Add p5-Lingua-Han-Utils 0.05, the utility tools of Chineseclsung2006-10-041-0/+1 * Add p5-Lingua-ZH-BPMFConvert 0.01, rule-based conversion of BPMFclsung2006-09-271-0/+1 * disconnect arnettf, connect CJKUnifonts.vanilla2006-08-061-1/+1 * New port: chinese/auto-cn-l10nclive2006-06-041-0/+1 * - Remove single-locale firefox l10n ports, please use www/firefox-i18n nowsat2006-06-011-2/+0 * Add new port: chinese/gbk2uni, a TeX applet used to generate correctdelphij2006-05-041-0/+1 * Add oxim 1.0.1, open X Input Method server.vanilla2006-03-291-0/+1 * NTHU-CS Maple BBS 2.36 BBS-like editorpav2006-03-211-0/+1 * Add zh-docproj, a set of supportive tools to help the build of PDFsdelphij2006-02-261-0/+1 * move pcmanfm to x11-fm/vanilla2006-02-101-1/+0 * * Remove print/acroread - it has expired on 2006-01-03vd2006-02-101-2/+0 * Add pcmanfm 0.1.9.5, PCMan File Manager.vanilla2006-02-081-0/+1 * - Remove expired portspav2006-01-151-4/+0 * - Remove expired portspav2005-12-311-1/+0 * Add dfsongsd 1.0, chinese (HKSCS-2001 + CJK A) TrueType fonts.barner2005-12-011-0/+1 * phpBB is a high powered, fully scalable, and highly customisablegarga2005-11-151-0/+1 * Add tatter-tools 0.9.6, cute and easy blog Tool withvanilla2005-11-111-0/+1 * Repocopy chinese/joe --> chinese/joe2 in preparation to update chinese/joegarga2005-11-081-0/+1 * Remove expired portskris2005-11-051-2/+0 * localized versions of Adobe Reader (formerly Acrobat Reader)trevor2005-10-081-0/+2 * - add p5-Encode-HanExtraleeym2005-09-011-0/+1 * Add pcmanx 0.1.7, PCManX is a BBS client using GTK+ 2.x.vanilla2005-07-191-0/+1 * Add firefox-zh_CN 1.0.4, firefox Simplified Chinese(zh-CN) Languageahze2005-07-081-0/+1 * Add chinese/firefox-zh_TWahze2005-07-081-0/+1 * Remove openoffice.org localized ports as I announced:maho2005-06-291-4/+0 * new port: chinese/msttfedwin2005-06-081-0/+1 * - Remove linux-mozillafirebird and it's language spinoffs. This port ispav2005-05-281-2/+0 * Added slave port of lang/php_doc for the Chinese (Traditional) language.edwin2005-05-231-0/+1 * Added slave port of lang/php_doc for the Chinese (Simplified) language.edwin2005-05-231-0/+1