}
void
-modest_platform_emit_folder_updated_signal (const gchar *account_id, const gch
+modest_platform_emit_folder_updated_signal (const gchar *account_id, const gchar *folder_id)
{
return;
}
+
+
+void
+modest_platform_emit_account_created_signal (const gchar *account_id)
+{
+ return;
+}
+
+void
+modest_platform_emit_account_removed_signal (const gchar *account_id)
+{
+ return;
+}
+
modest_dbus_emit_folder_updated_signal (con, account_id, folder_id);
}
+
+void
+modest_platform_emit_account_created_signal (const gchar *account_id)
+{
+ DBusConnection *con;
+
+ con = modest_platform_get_dbus_connection ();
+ if (!con) return;
+
+ modest_dbus_emit_account_created_signal (con, account_id);
+}
+
+void
+modest_platform_emit_account_removed_signal (const gchar *account_id)
+{
+ DBusConnection *con;
+
+ con = modest_platform_get_dbus_connection ();
+ if (!con) return;
+
+ modest_dbus_emit_account_removed_signal (con, account_id);
+}
/* Notify the observers */
g_signal_emit (self, signals[ACCOUNT_INSERTED_SIGNAL], 0, account_name);
+ modest_platform_emit_account_created_signal (account_name);
/* if no default account has been defined yet, do so now */
default_account = modest_account_mgr_get_default_account (self);
/* Notify the observers */
g_signal_emit (self, signals[ACCOUNT_INSERTED_SIGNAL], 0, name);
+ modest_platform_emit_account_created_signal (name);
/* if no default account has been defined yet, do so now */
default_account = modest_account_mgr_get_default_account (self);
the keys, because otherwise a call to account_names
will retrieve also the deleted account */
g_signal_emit (G_OBJECT(self), signals[ACCOUNT_REMOVED_SIGNAL], 0, name);
+ modest_platform_emit_account_removed_signal (name);
return TRUE;
}
#endif
void modest_platform_emit_folder_updated_signal (const gchar *account_id, const gchar *folder_id);
+void modest_platform_emit_account_created_signal (const gchar *account_id);
+void modest_platform_emit_account_removed_signal (const gchar *account_id);
G_END_DECLS