aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas/pas-backend.h
diff options
context:
space:
mode:
authorNat Friedman <nat@src.gnome.org>2000-01-25 13:28:18 +0800
committerNat Friedman <nat@src.gnome.org>2000-01-25 13:28:18 +0800
commitfd4379ff20fe9c9e3b4f4028095b9659687002ff (patch)
tree78af76526262d746417a1e2007fd712f8d4ce584 /addressbook/backend/pas/pas-backend.h
parenta315f0321395423c3c52adb4bb3063c433948dd5 (diff)
downloadgsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar.gz
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar.bz2
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar.lz
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar.xz
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.tar.zst
gsoc2013-evolution-fd4379ff20fe9c9e3b4f4028095b9659687002ff.zip
More work.
svn path=/trunk/; revision=1626
Diffstat (limited to 'addressbook/backend/pas/pas-backend.h')
-rw-r--r--addressbook/backend/pas/pas-backend.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/addressbook/backend/pas/pas-backend.h b/addressbook/backend/pas/pas-backend.h
index fca4ef7d8d..62822619ac 100644
--- a/addressbook/backend/pas/pas-backend.h
+++ b/addressbook/backend/pas/pas-backend.h
@@ -21,41 +21,38 @@
#ifndef __PAS_BACKEND_H__
#define __PAS_BACKEND_H__
+#include <libgnome/gnome-defs.h>
+#include <gtk/gtkobject.h>
+#include <addressbook.h>
+
+typedef struct _PASBackend PASBackend;
typedef struct _PASBackendPrivate PASBackendPrivate;
-typedef struct {
+#include <pas-book.h>
+
+struct _PASBackend {
GtkObject parent_object;
PASBackendPrivate *priv;
-} PASBackend;
+};
typedef struct {
GtkObjectClass parent_class;
+
+ /* Virtual methods */
+ void (*load_uri) (PASBackend *backend, const char *uri);
+ void (*add_client) (PASBackend *backend, Evolution_BookListener listener);
+ void (*remove_client) (PASBackend *backend, PASBook *book);
} PASBackendClass;
-PASBackend *pas_backend_new (void);
+typedef PASBackend * (*PASBackendFactoryFn) (void);
+
+gboolean pas_backend_construct (PASBackend *backend);
void pas_backend_load_uri (PASBackend *backend,
- char *uri);
+ const char *uri);
void pas_backend_add_client (PASBackend *backend,
Evolution_BookListener listener);
void pas_backend_remove_client (PASBackend *backend,
- Evolution_BookListener listener);
-
-/* Synchronous operations. */
-char *pas_backend_get_vcard (PASBackend *backend,
- PASBook *book,
- char *id);
-
-/* Asynchronous operations. */
-void pas_backend_queue_create_card (PASBackend *backend,
- PASBook *book,
- char *vcard);
-void pas_backend_queue_remove_card (PASBackend *backend,
- PASBook *book,
- char *id);
-void pas_backend_queue_modify_card (PASBackend *backend,
- PASBook *book,
- char *id,
- char *vcard);
+ PASBook *book);
GtkType pas_backend_get_type (void);