diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-05-09 05:58:37 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-05-09 05:58:37 +0800 |
commit | 4554c20766d386909b765446af93418292293a7c (patch) | |
tree | 0bc57a8bdeb9901bd0dd929ca911ef53e9d4e81c /camel/camel-transport.c | |
parent | 06bd4d2a16b4b39f485363f10dd272d529e3f16a (diff) | |
download | gsoc2013-evolution-4554c20766d386909b765446af93418292293a7c.tar.gz gsoc2013-evolution-4554c20766d386909b765446af93418292293a7c.tar.zst gsoc2013-evolution-4554c20766d386909b765446af93418292293a7c.zip |
Implemented. (digest_getv): Implemented.
2002-05-08 Jeffrey Stedfast <fejj@ximian.com>
* camel-digest-store.c (digest_setv): Implemented.
(digest_getv): Implemented.
* camel-disco-store.c (disco_setv): Implemented.
(disco_getv): Implemented.
* camel-remote-store.c (remote_store_setv): Implemented.
(remote_store_getv): Implemented.
* camel-transport.c (camel_transport_class_init): Implemented.
(transport_setv): Implemented.
(transport_getv): Implemented.
* camel-store.c (store_setv): Implemented.
(store_getv): Implemented.
* camel-service.c (service_setv): Implemented.
(service_getv): Implemented.
svn path=/trunk/; revision=16729
Diffstat (limited to 'camel/camel-transport.c')
-rw-r--r-- | camel/camel-transport.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/camel/camel-transport.c b/camel/camel-transport.c index dc402750c7..a1844f34b5 100644 --- a/camel/camel-transport.c +++ b/camel/camel-transport.c @@ -32,9 +32,27 @@ #include "camel-mime-message.h" #include "camel-private.h" +static CamelServiceClass *parent_class = NULL; + /* Returns the class for a CamelTransport */ #define CT_CLASS(so) CAMEL_TRANSPORT_CLASS (CAMEL_OBJECT_GET_CLASS(so)) +static int transport_setv (CamelObject *object, CamelException *ex, CamelArgV *args); +static int transport_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args); + + +static void +camel_transport_class_init (CamelTransportClass *camel_transport_class) +{ + CamelObjectClass *camel_object_class = CAMEL_OBJECT_CLASS (camel_transport_class); + + parent_class = CAMEL_SERVICE_CLASS (camel_type_get_global_classfuncs (camel_service_get_type ())); + + /* virtual method overload */ + camel_object_class->setv = transport_setv; + camel_object_class->getv = transport_getv; +} + static void camel_transport_init (gpointer object, gpointer klass) { @@ -77,6 +95,21 @@ camel_transport_get_type (void) } +static int +transport_setv (CamelObject *object, CamelException *ex, CamelArgV *args) +{ + /* CamelTransport doesn't currently have anything to set */ + return CAMEL_OBJECT_CLASS (parent_class)->setv (object, ex, args); +} + +static int +transport_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args) +{ + /* CamelTransport doesn't currently have anything to get */ + return CAMEL_OBJECT_CLASS (parent_class)->getv (object, ex, args); +} + + /** * camel_transport_send_to: * @transport: the transport |