+ModestEmailClipboard*
+modest_runtime_get_email_clipboard (void)
+{
+ g_return_val_if_fail (_singletons, NULL);
+ return modest_singletons_get_email_clipboard (_singletons);
+}
+
+ModestTnyAccountStore*
+modest_runtime_get_account_store (void)
+{
+ // we get the account store here instead of in Singletons
+ // as it leads to various chicken & problems with initialization
+ g_return_val_if_fail (_singletons, NULL);
+ if (!_account_store) {
+ _account_store = modest_tny_account_store_new (modest_runtime_get_account_mgr(),
+ modest_runtime_get_device());
+ if (!_account_store) {
+ g_printerr ("modest: cannot create modest tny account store instance\n");
+ return NULL;
+ }
+ }
+ return _account_store;