1 /* modest-tny-account-store.h */
2 /* insert (c)/licensing information) */
4 #ifndef __MODEST_TNY_ACCOUNT_STORE_H__
5 #define __MODEST_TNY_ACCOUNT_STORE_H__
7 #include <glib-object.h>
8 #include <tny-account-store.h>
9 #include <tny-session-camel.h>
11 /* other include files */
15 /* convenience macros */
16 #define MODEST_TYPE_TNY_ACCOUNT_STORE (modest_tny_account_store_get_type())
17 #define MODEST_TNY_ACCOUNT_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_TNY_ACCOUNT_STORE,ModestTnyAccountStore))
18 #define MODEST_TNY_ACCOUNT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_TNY_ACCOUNT_STORE,ModestTnyAccountStoreClass))
19 #define MODEST_IS_TNY_ACCOUNT_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_TNY_ACCOUNT_STORE))
20 #define MODEST_IS_TNY_ACCOUNT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_TNY_ACCOUNT_STORE))
21 #define MODEST_TNY_ACCOUNT_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_TNY_ACCOUNT_STORE,ModestTnyAccountStoreClass))
23 typedef struct _ModestTnyAccountStore ModestTnyAccountStore;
24 typedef struct _ModestTnyAccountStoreClass ModestTnyAccountStoreClass;
26 struct _ModestTnyAccountStore {
27 //TnyAccountStore parent;
31 struct _ModestTnyAccountStoreClass {
32 //TnyAccountStoreClass parent_class;
33 GObjectClass parent_class;
35 void (*password_requested) (ModestTnyAccountStore *self,
36 const gchar *account_name,
40 /* member functions */
41 GType modest_tny_account_store_get_type (void) G_GNUC_CONST;
43 /* typical parameter-less _new function */
44 /* if this is a kind of GtkWidget, it should probably return at GtkWidget*, */
45 /* otherwise probably a GObject*. */
46 GObject* modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr);
50 TnySessionCamel* tny_account_store_get_session (TnyAccountStore *self);
55 #endif /* __MODEST_TNY_ACCOUNT_STORE_H__ */