my_type = g_type_register_static (TNY_TYPE_ACCOUNT_STORE,
"ModestTnyAccountStore", &my_info, 0);
- g_type_add_interface_static (my_type, TNY_TYPE_ACCOUNT_STORE_IFACE,
+ g_type_add_interface_static (my_type, TNY_TYPE_ACCOUNT_STORE_IFACE,
&iface_info);
}
return my_type;
g_object_unref (G_OBJECT(priv->tny_session_camel));
priv->tny_session_camel = NULL;
}
-
+
if (priv->device) {
g_object_unref (G_OBJECT(priv->device));
priv->device = NULL;
ModestTnyAccountStorePrivate *priv;
gchar *val;
- g_message (__FUNCTION__);
-
g_return_val_if_fail (account, NULL);
key = tny_account_iface_get_id (account);
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_PASSWORD,
- NULL);
- if (!val || strlen(val)==0)
+ NULL);
+ if (!val)
{
/* FIXME:
* append the prompt to the emitted signal,
TNY_ACCOUNT_STORE_IFACE(self));
/* id */
tny_account_iface_set_id (tny_account, key);
-
+ tny_account_iface_set_name (tny_account, key);
+
/* proto */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_PROTO, NULL);
return NULL;
}
-
/* hostname */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_HOSTNAME,
MODEST_PROTO_TYPE_STORE,
NULL, FALSE);
- g_message ("accounts: %d", g_slist_length (accounts));
tny_accounts = tny_accounts_from_server_accounts (self, accounts, TRUE);
g_slist_free (accounts);
- g_message ("store accounts: %d", g_list_length (tny_accounts));
-
-
+
/*
* FIXME: after gconf notification support is added,
* we can simply return priv->store_account
priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self);
- g_message ("returning tny session camel %p",
- priv->tny_session_camel);
-
return priv->tny_session_camel;
}