* initial code dump into SVN; needs some work
[modest] / src / modest-tny-account-store.h
1 /* modest-tny-account-store.h */
2 /* insert (c)/licensing information) */
3
4 #ifndef __MODEST_TNY_ACCOUNT_STORE_H__
5 #define __MODEST_TNY_ACCOUNT_STORE_H__
6
7 #include <glib-object.h>
8 /* other include files */
9
10 G_BEGIN_DECLS
11
12 /* convenience macros */
13 #define MODEST_TYPE_TNY_ACCOUNT_STORE             (modest_tny_account_store_get_type())
14 #define MODEST_TNY_ACCOUNT_STORE(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_TNY_ACCOUNT_STORE,ModestTnyAccountStore))
15 #define MODEST_TNY_ACCOUNT_STORE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_TNY_ACCOUNT_STORE,GObject))
16 #define MODEST_IS_TNY_ACCOUNT_STORE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_TNY_ACCOUNT_STORE))
17 #define MODEST_IS_TNY_ACCOUNT_STORE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_TNY_ACCOUNT_STORE))
18 #define MODEST_TNY_ACCOUNT_STORE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_TNY_ACCOUNT_STORE,ModestTnyAccountStoreClass))
19
20 typedef struct _ModestTnyAccountStore      ModestTnyAccountStore;
21 typedef struct _ModestTnyAccountStoreClass ModestTnyAccountStoreClass;
22
23 struct _ModestTnyAccountStore {
24          GObject parent;
25         /* insert public members, if any */
26 };
27
28 struct _ModestTnyAccountStoreClass {
29         GObjectClass parent_class;
30         /* insert signal callback declarations, eg. */
31         /* void (* my_event) (ModestTnyAccountStore* obj); */
32 };
33
34 /* member functions */
35 GType        modest_tny_account_store_get_type    (void) G_GNUC_CONST;
36
37 /* typical parameter-less _new function */
38 /* if this is a kind of GtkWidget, it should probably return at GtkWidget*, */
39 /*    otherwise probably a GObject*. */
40 GObject*    modest_tny_account_store_new         (ModestAccountMgr *modest_acc_mgr);
41
42 /* fill in other public functions, eg.: */
43 /*      void       modest_tny_account_store_do_something (ModestTnyAccountStore *self, const gchar* param); */
44 /*      gboolean   modest_tny_account_store_has_foo      (ModestTnyAccountStore *self, gint value); */
45
46
47 G_END_DECLS
48
49 #endif /* __MODEST_TNY_ACCOUNT_STORE_H__ */
50