static gchar*
-get_password (TnyAccountIface *account, const gchar *prompt)
+get_password (TnyAccountIface *account, const gchar *prompt, gboolean *cancel)
{
const gchar *key;
const TnyAccountStoreIface *account_store;
priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self);
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
- MODEST_ACCOUNT_PASSWORD,
- NULL);
- if (!val)
- {
- /* FIXME:
- * append the prompt to the emitted signal,
- * so the password dialog shows the prompt supplied by the caller of this function.
- */
- g_signal_emit (G_OBJECT(self), signals[PASSWORD_REQUESTED_SIGNAL], 0,
- key);
-
+ MODEST_ACCOUNT_PASSWORD, NULL);
+ if (!val) {
+ /* FIXME:
+ * append the prompt to the emitted signal,
+ * so the password dialog shows the prompt supplied by the caller of this function.
+ */
+ g_signal_emit (G_OBJECT(self), signals[PASSWORD_REQUESTED_SIGNAL], 0, key);
}
- return val;
+ return val;
}
}
-
static void
modest_tny_account_store_add_store_account (TnyAccountStoreIface *self,
TnyStoreAccountIface *account)
}
-
static void
modest_tny_account_store_add_transport_account (TnyAccountStoreIface *self,
TnyTransportAccountIface *account)
}
-
static TnyAccountIface*
tny_account_from_key (ModestTnyAccountStore *self, const gchar *key,
gboolean is_store)
}
-
static const GList*
modest_tny_account_store_get_store_accounts (TnyAccountStoreIface *iface)
{
}
-
static const GList*
modest_tny_account_store_get_transport_accounts (TnyAccountStoreIface *iface)
{
}
-
TnySessionCamel*
tny_account_store_get_session (TnyAccountStore *self)
{
}
-
/**
* modest_tny_account_store_get_cache_dir:
* @self: self a TnyAccountStoreIface instance
}
-
static const TnyDeviceIface*
modest_tny_account_store_get_device (TnyAccountStoreIface *self)
{
}
-
static void
modest_tny_account_store_iface_init (gpointer g_iface, gpointer iface_data)
{
klass = (TnyAccountStoreIfaceClass *)g_iface;
- klass->add_store_account_func =
+ klass->add_store_account_func =
modest_tny_account_store_add_store_account;
- klass->get_store_accounts_func =
+ klass->get_store_accounts_func =
modest_tny_account_store_get_store_accounts;
- klass->add_transport_account_func =
+ klass->add_transport_account_func =
modest_tny_account_store_add_transport_account;
- klass->get_transport_accounts_func =
+ klass->get_transport_accounts_func =
modest_tny_account_store_get_transport_accounts;
klass->get_cache_dir_func =
modest_tny_account_store_get_cache_dir;
klass->get_device_func =
modest_tny_account_store_get_device;
-
}