2007-08-24 [paul] 2.10.0cvs168
[claws.git] / src / folder.h
index f9d58e80ce36db9f4ecdc06e1aa7603e3b4ecdff..075e9e2ed55dc484eb632e9f2264fbb9f03ee9ab 100644 (file)
@@ -583,8 +583,10 @@ struct _FolderClass
        /* Called when switching offline or asking for synchronisation. the imple
         * mentation should do what's necessary to be able to read mails present
         * in the FolderItem at this time with no network connectivity. 
+        * Days: max number of days of mail to fetch.
         */
-       void            (*synchronise)          (FolderItem     *item);
+       void            (*synchronise)          (FolderItem     *item,
+                                                gint            days);
        
        /* Passed from claws-mail --subscribe scheme://uri. Implementations
         * should check if they handle this type of URI, and return TRUE in this
@@ -605,6 +607,10 @@ struct _FolderClass
        void            (*copy_private_data)    (Folder         *folder,
                                                 FolderItem     *src,
                                                 FolderItem     *dest);
+
+       void            (*remove_cached_msg)    (Folder         *folder,
+                                                FolderItem     *item,
+                                                MsgInfo        *msginfo);
 };
 
 struct _FolderItem
@@ -764,9 +770,13 @@ gchar         *folder_item_get_name                (FolderItem     *item);
 FolderItem *folder_get_default_inbox   (void);
 FolderItem *folder_get_default_inbox_for_class(FolderType type);
 FolderItem *folder_get_default_outbox  (void);
+FolderItem *folder_get_default_outbox_for_class(FolderType type);
 FolderItem *folder_get_default_draft   (void);
+FolderItem *folder_get_default_draft_for_class(FolderType type);
 FolderItem *folder_get_default_queue   (void);
+FolderItem *folder_get_default_queue_for_class(FolderType type);
 FolderItem *folder_get_default_trash   (void);
+FolderItem *folder_get_default_trash_for_class(FolderType type);
 FolderItem *folder_get_default_processing (void);
 void folder_set_missing_folders                (void);
 void folder_unref_account_all          (PrefsAccount   *account);