* Added a new function to check selected folder is an MMC or POP root.
[modest] / src / modest-account-mgr.h
index 969a0a2..90237c0 100644 (file)
@@ -56,10 +56,14 @@ struct _ModestAccountMgr {
 struct _ModestAccountMgrClass {
        GObjectClass parent_class;
 
-       void (* account_removed)   (ModestAccountMgr *obj, const gchar* account,
-                                   gboolean server_account, gpointer user_data);
-       void (* account_changed)   (ModestAccountMgr *obj, const gchar* account,
-                                   const GSList* keys, gboolean server_account,
+       void (* account_removed)   (ModestAccountMgr *obj, 
+                                   const gchar* account,
+                                   gboolean server_account,
+                                   gpointer user_data);
+       void (* account_changed)   (ModestAccountMgr *obj, 
+                                   const gchar* account,
+                                   const GSList* key, 
+                                   gboolean server_account,
                                    gpointer user_data);
 };
 
@@ -424,6 +428,18 @@ 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);
+
 G_END_DECLS
 
 #endif /* __MODEST_ACCOUNT_MGR_H__ */