* Introduce ModestTnyStoreActions, simple update function.
[modest] / src / modest-tny-store-actions.h
1 /* modest-tny-store-actions.h */
2 /* insert (c)/licensing information) */
3
4 #ifndef __MODEST_TNY_STORE_ACTIONS_H__
5 #define __MODEST_TNY_STORE_ACTIONS_H__
6
7 #include <glib-object.h>
8 #include <tny-store-account-iface.h>
9
10 G_BEGIN_DECLS
11
12 /* standard convenience macros */
13 #define MODEST_TYPE_TNY_STORE_ACTIONS             (modest_tny_store_actions_get_type())
14 #define MODEST_TNY_STORE_ACTIONS(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_TNY_STORE_ACTIONS,ModestTnyStoreActions))
15 #define MODEST_TNY_STORE_ACTIONS_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_TNY_STORE_ACTIONS,ModestTnyStoreActionsClass))
16 #define MODEST_IS_TNY_STORE_ACTIONS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_TNY_STORE_ACTIONS))
17 #define MODEST_IS_TNY_STORE_ACTIONS_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_TNY_STORE_ACTIONS))
18 #define MODEST_TNY_STORE_ACTIONS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_TNY_STORE_ACTIONS,ModestTnyStoreActionsClass))
19
20 typedef struct _ModestTnyStoreActions      ModestTnyStoreActions;
21 typedef struct _ModestTnyStoreActionsClass ModestTnyStoreActionsClass;
22
23 struct _ModestTnyStoreActions {
24          GObject parent;
25         /* insert public members, if any */
26 };
27
28 struct _ModestTnyStoreActionsClass {
29         GObjectClass parent_class;
30         
31         void (* update_folders) (ModestTnyStoreActions *self,
32                                            TnyStoreAccountIface *storage_account);
33 };
34
35 /* member functions */
36 GType        modest_tny_store_actions_get_type    (void) G_GNUC_CONST;
37
38 GObject*    modest_tny_store_actions_new         (void);
39
40 void    modest_tny_store_actions_update_folders (ModestTnyStoreActions *self,
41                                            TnyStoreAccountIface *storage_account);
42
43
44 G_END_DECLS
45
46 #endif /* __MODEST_TNY_STORE_ACTIONS_H__ */
47