diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-05-28 11:00:31 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-05-28 11:00:31 +0800 |
commit | 7e8e3858b63eadabf683eff4c9d33485a867c119 (patch) | |
tree | b3ee9da09f7eecd6b2fdcc43cbf25d5d68b88e50 /camel/providers/nntp/camel-nntp-store.h | |
parent | c07d953f5dca0a7a58c93d7961f734ed3a526684 (diff) | |
download | gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.gz gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.bz2 gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.lz gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.xz gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.zst gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.zip |
On connection failure, unref the tcp stream.
2002-05-27 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (connect_to_server): On
connection failure, unref the tcp stream.
* providers/pop3/camel-pop3-store.c (connect_to_server): On
connection failure, unref the tcp stream.
* providers/imap/camel-imap-store.c (connect_to_server): On
connection failure, unref the tcp stream.
* providers/nntp/camel-nntp-store.c (nntp_store_query_auth_types):
Our parent class is no longer CamelRemoteStore.
(nntp_store_init): Same.
(camel_nntp_store_get_type): Here too.
(nntp_connect): Rewritten to try to connect via SSL. Also remove
code using CamelRemoteStore.
(camel_nntp_command): Don't call camel_remote_store_connected().
svn path=/trunk/; revision=17022
Diffstat (limited to 'camel/providers/nntp/camel-nntp-store.h')
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/camel/providers/nntp/camel-nntp-store.h b/camel/providers/nntp/camel-nntp-store.h index 04a69b02e7..a201c2cea2 100644 --- a/camel/providers/nntp/camel-nntp-store.h +++ b/camel/providers/nntp/camel-nntp-store.h @@ -28,11 +28,15 @@ #ifdef __cplusplus extern "C" { #pragma } -#endif /* __cplusplus }*/ +#endif /* __cplusplus */ + +#include <camel/camel-store.h> +#include <camel/camel-stream-mem.h> +#include <camel/camel-data-cache.h> +#include <camel/camel-exception.h> +#include <camel/camel-folder.h> -#include "camel/camel-remote-store.h" -#include "camel/camel-exception.h" -#include "camel/camel-folder.h" +#include "camel-nntp-stream.h" #define CAMEL_NNTP_STORE_TYPE (camel_nntp_store_get_type ()) #define CAMEL_NNTP_STORE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_NNTP_STORE_TYPE, CamelNNTPStore)) @@ -52,24 +56,24 @@ typedef struct _CamelNNTPStore CamelNNTPStore; typedef struct _CamelNNTPStoreClass CamelNNTPStoreClass; struct _CamelNNTPStore { - CamelRemoteStore parent_object; - + CamelStore parent_object; + struct _CamelNNTPStorePrivate *priv; - + guint32 extensions; - + gboolean posting_allowed; - - struct _CamelNNTPStream *stream; - struct _CamelStreamMem *mem; - - struct _CamelDataCache *cache; - + + CamelNNTPStream *stream; + CamelStreamMem *mem; + + CamelDataCache *cache; + char *current_folder; }; struct _CamelNNTPStoreClass { - CamelRemoteStoreClass parent_class; + CamelStoreClass parent_class; }; |