Small bugfix
[modest] / src / modest-account-mgr.h
index c355017..aaf5c06 100644 (file)
@@ -62,9 +62,14 @@ struct _ModestAccountMgrClass {
                                    gpointer user_data);
        void (* account_changed)   (ModestAccountMgr *obj, 
                                    const gchar* account,
-                                   const gchar* key, 
+                                   const GSList* key, 
                                    gboolean server_account,
                                    gpointer user_data);
+               void (* account_busy_changed)   (ModestAccountMgr *obj, 
+                                   const gchar* account,
+                                   gboolean busy,
+                                   gpointer user_data);
+       
 };
 
 /**
@@ -428,6 +433,43 @@ gboolean        modest_account_mgr_unset           (ModestAccountMgr *self,
                                                    const gchar *key,
                                                    gboolean server_account);
 
+/**
+ * modest_account_mgr_has_accounts:
+ * @self: a ModestAccountMgr instance
+ * @enabled: TRUE to search for enabled accounts only
+ * 
+ * Checks if any accounts exist
+ *
+ * Returns: TRUE if accounts exist, FALSE otherwise
+ */
+
+gboolean modest_account_mgr_has_accounts (ModestAccountMgr* self, gboolean enabled);
+
+/**
+ * modest_account_mgr_set_account_busy
+ * @self: a ModestAccountMgr instance
+ * @account_name: name of the account
+ * @busy: whether to set busy or not busy
+ * 
+ * Changes the busy flag of an account
+ *
+ */
+
+void modest_account_mgr_set_account_busy(ModestAccountMgr* self, const gchar* account_name, 
+                                                                                                                                               gboolean busy);
+
+/**
+ * modest_account_mgr_account_is_busy
+ * @self: a ModestAccountMgr instance
+ * @account_name: name of the account
+ * 
+ * Returns: If the account is currently busy or not
+ *
+ */
+gboolean
+modest_account_mgr_account_is_busy(ModestAccountMgr* self, const gchar* account_name);
+
+
 G_END_DECLS
 
 #endif /* __MODEST_ACCOUNT_MGR_H__ */