aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-disco-store.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-23 04:17:48 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-23 04:17:48 +0800
commita9fc56de69a8b63316d2c0ffeb673facd2befea3 (patch)
tree33be53a23de70735ade36777248bb2cb96bd2f1d /camel/camel-disco-store.c
parente7ad5d121bca3ba68221582ea56b0feed8b7881e (diff)
downloadgsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar.gz
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar.bz2
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar.lz
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar.xz
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.tar.zst
gsoc2013-evolution-a9fc56de69a8b63316d2c0ffeb673facd2befea3.zip
Removed from the build. Glory glory hallelujah.
2002-05-22 Jeffrey Stedfast <fejj@ximian.com> * camel-remote-store.c: Removed from the build. Glory glory hallelujah. * camel-disco-store.c: Updated to inherit from CamelStore rather than CamelRemoteStore. * providers/imap/camel-imap-command.c (imap_command_start): Don't use the camel-remote-store shit to send a string. Just use camel_stream_printf for chrissakes. * providers/imap/camel-imap-store.c: Updated to not depend on CamelRemoteStore and to handle STARTTLS. (imap_disconnect_online): Unref the streams. (imap_keepalive): Removed. (camel_imap_store_connected): New function to replace camel_remote_store_connected(). (camel_imap_store_finalize): Unref the streams. (camel_imap_store_recv_line): New function to replace camel_remote_store_recv_line(). (imap_get_capability): Renamed from connect_to_server (connect_to_server): New function to try and connect to the server. (connect_to_server_wrapper): New wrapper function around connect_to_server that takes the ssl modes into consideration. (query_auth_types): Don't bother calling our parent's implementation of query_auth_types() since CamelDiscoStore doesn't have any anyway. (imap_get_name): New method to implement CamelService::get_name svn path=/trunk/; revision=16975
Diffstat (limited to 'camel/camel-disco-store.c')
-rw-r--r--camel/camel-disco-store.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/camel/camel-disco-store.c b/camel/camel-disco-store.c
index 45207e4538..7afff575b1 100644
--- a/camel/camel-disco-store.c
+++ b/camel/camel-disco-store.c
@@ -1,5 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* camel-disco-store.c: abstract class for a disconnectable remote store */
+/* camel-disco-store.c: abstract class for a disconnectable store */
/*
* Authors: Dan Winship <danw@ximian.com>
@@ -22,6 +22,7 @@
*
*/
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -33,7 +34,7 @@
#define CDS_CLASS(o) (CAMEL_DISCO_STORE_CLASS (CAMEL_OBJECT_GET_CLASS (o)))
-static CamelRemoteStoreClass *parent_class = NULL;
+static CamelStoreClass *parent_class = NULL;
static void disco_construct (CamelService *service, CamelSession *session,
CamelProvider *provider, CamelURL *url,
@@ -64,7 +65,7 @@ camel_disco_store_class_init (CamelDiscoStoreClass *camel_disco_store_class)
CamelStoreClass *camel_store_class =
CAMEL_STORE_CLASS (camel_disco_store_class);
- parent_class = CAMEL_REMOTE_STORE_CLASS (camel_type_get_global_classfuncs (camel_remote_store_get_type ()));
+ parent_class = CAMEL_STORE_CLASS (camel_type_get_global_classfuncs (camel_store_get_type ()));
/* virtual method definition */
camel_disco_store_class->set_status = set_status;
@@ -87,10 +88,11 @@ CamelType
camel_disco_store_get_type (void)
{
static CamelType camel_disco_store_type = CAMEL_INVALID_TYPE;
-
+
if (camel_disco_store_type == CAMEL_INVALID_TYPE) {
camel_disco_store_type = camel_type_register (
- CAMEL_REMOTE_STORE_TYPE, "CamelDiscoStore",
+ CAMEL_STORE_TYPE,
+ "CamelDiscoStore",
sizeof (CamelDiscoStore),
sizeof (CamelDiscoStoreClass),
(CamelObjectClassInitFunc) camel_disco_store_class_init,
@@ -98,7 +100,7 @@ camel_disco_store_get_type (void)
NULL,
NULL);
}
-
+
return camel_disco_store_type;
}