Move dimming callback to ModestWindow
[modest] / src / modest-ui-actions.h
index 73971d1..6ac2349 100644 (file)
@@ -91,6 +91,8 @@ void     modest_ui_actions_on_prev          (GtkAction *action, ModestWindow *ma
 
 void     modest_ui_actions_on_details       (GtkAction *action, ModestWindow *win);
 
+void     modest_ui_actions_on_limit_error   (GtkAction *action, ModestWindow *win);
+
 gboolean     modest_ui_actions_on_edit_mode_move_to       (ModestWindow *win);
 
 void     modest_ui_actions_on_move_to       (GtkAction *action, ModestWindow *win);
@@ -117,6 +119,7 @@ void     modest_ui_actions_on_help          (GtkAction *action, GtkWindow *win);
  **/
 void     modest_ui_actions_on_csm_help      (GtkAction *action, GtkWindow *win);
 
+#ifndef MODEST_TOOLKIT_HILDON2
 /**
  * modest_ui_actions_toggle_folders_view:
  * @action: the #GtkAction
@@ -145,15 +148,18 @@ void       modest_ui_actions_toggle_header_list_view    (GtkAction *action,
 void     modest_ui_actions_on_header_selected          (ModestHeaderView *folder_view, 
                                                        TnyHeader *header,
                                                        ModestMainWindow *main_window);
+#endif
 void     modest_ui_actions_on_header_activated         (ModestHeaderView *folder_view, 
                                                        TnyHeader *header,
                                                        GtkTreePath *path,
                                                        ModestWindow *main_window);
 
+#ifndef MODEST_TOOLKIT_HILDON2
 void     modest_ui_actions_on_folder_selection_changed (ModestFolderView *folder_view,
                                                         TnyFolderStore *folder_store, 
                                                         gboolean selected,
                                                         ModestMainWindow *main_window);
+#endif
 
 void     modest_ui_actions_on_item_not_found           (ModestHeaderView *header_view,
                                                         ModestItemType type,
@@ -270,8 +276,10 @@ void     modest_ui_actions_on_rename_folder            (GtkAction *action,
 void     modest_ui_actions_on_delete_folder            (GtkAction *action,
                                                        ModestWindow *window);
 
+#ifndef MODEST_TOOLKIT_HILDON2
 void     modest_ui_actions_on_move_folder_to_trash_folder     (GtkAction *action,
                                                               ModestMainWindow *main_window);
+#endif
 
 void     modest_ui_actions_on_password_requested (TnyAccountStore *account_store,
                                                  const gchar* server_account_name,
@@ -554,6 +562,20 @@ void modest_ui_actions_transfer_messages_helper (GtkWindow *win,
 void modest_ui_actions_on_fetch_images (GtkAction *action,
                                        ModestWindow *window);
 
+/**
+ * modest_ui_actions_check_for_active_account:
+ * @win: a #ModestWindow
+ * @account_name: the account name of the account to check
+ *
+ * Check whether any connections are active, and cancel them if
+ * the user wants.
+ *
+ * Returns: Returns TRUE if there was no problem, or if an operation
+ * was cancelled so we can continue. Returns FALSE if the user chose
+ * to cancel his request instead.
+ **/
+gboolean modest_ui_actions_check_for_active_account (ModestWindow *win,
+                                                    const gchar* account_name);
 
 G_END_DECLS
 #endif /* __MODEST_UI_ACTIONS_H__ */