* the constructor now returns ModestTnyAccountStore instances,
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:10:43 +0000 (12:10 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:10:43 +0000 (12:10 +0000)
  not GObjects

pmo-trunk-r381

src/modest-tny-account-store.c
src/modest-tny-account-store.h

index 6f0071a..ef13dd7 100644 (file)
@@ -70,8 +70,6 @@ enum {
         PW_INVALID
 };
 
         PW_INVALID
 };
 
-static const gchar *transport_protocols[] = { "smtp", NULL };
-
 typedef struct _ModestTnyAccountStorePrivate ModestTnyAccountStorePrivate;
 struct _ModestTnyAccountStorePrivate {
 
 typedef struct _ModestTnyAccountStorePrivate ModestTnyAccountStorePrivate;
 struct _ModestTnyAccountStorePrivate {
 
@@ -353,7 +351,7 @@ modest_tny_account_store_finalize (GObject *obj)
 }
 
 
 }
 
 
-GObject*
+ModestTnyAccountStore*
 modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr) {
 
        GObject *obj;
 modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr) {
 
        GObject *obj;
@@ -390,7 +388,7 @@ modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr) {
                return NULL;
        }
 
                return NULL;
        }
 
-       return obj;
+       return MODEST_TNY_ACCOUNT_STORE(obj);
 }
 
 
 }
 
 
index a92d81e..96482d4 100644 (file)
@@ -84,10 +84,9 @@ GType        modest_tny_account_store_get_type    (void) G_GNUC_CONST;
  *
  * creates new (tinymail) account store for account manager modest_acc_mgr
  *
  *
  * creates new (tinymail) account store for account manager modest_acc_mgr
  *
- * Returns: GObject of newly created account store
+ * Returns: newly created account store or NULL in case of error
  */
  */
-GObject*    modest_tny_account_store_new         (ModestAccountMgr *modest_acc_mgr);
-
+ModestTnyAccountStore*    modest_tny_account_store_new         (ModestAccountMgr *modest_acc_mgr);
 
 
 /**
 
 
 /**