2007-04-06 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-tny-folder.h
index 51a04db..f540e6d 100644 (file)
 #define __MODEST_TNY_FOLDER_H__
 
 #include <tny-folder.h>
+#include <modest-local-folder-info.h>
 
 G_BEGIN_DECLS
 
 typedef enum {
-       MODEST_FOLDER_RULES_FOLDER_READ_ONLY = 0 << 1,
-       MODEST_FOLDER_RULES_FOLDER_DELETABLE 
+       MODEST_FOLDER_RULES_FOLDER_NON_WRITEABLE  = 1 << 1,
+       MODEST_FOLDER_RULES_FOLDER_NON_DELETABLE  = 1 << 2,
+       MODEST_FOLDER_RULES_FOLDER_NON_MOVEABLE   = 1 << 3,
+       MODEST_FOLDER_RULES_FOLDER_NON_RENAMEABLE = 1 << 4
 } ModestTnyFolderRules;
 
 /**
@@ -70,6 +73,29 @@ TnyFolderType  modest_tny_folder_guess_folder_type   (const TnyFolder *folder);
 TnyFolderType  modest_tny_folder_guess_folder_type_from_name   (const gchar *folder_name);
 
 
+
+/**
+ * modest_tny_folder_is_local_folder:
+ * @folder: a valid tnymail folder
+ * 
+ * checks if the folder is part of the "local folders" pseudo-account
+ *  
+ * Returns: TRUE if it's a local folder, FALSE otherwise
+ */
+gboolean modest_tny_folder_is_local_folder   (const TnyFolder *folder);
+
+
+/**
+ * modest_tny_folder_get_local_folder_type:
+ * @folder: a valid tnymail folder
+ * 
+ * checks if the folder is part of the "local folders" pseudo-account
+ *  
+ * Returns: TRUE if it's a local folder, FALSE otherwise
+ */
+TnyFolderType modest_tny_folder_get_local_folder_type  (const TnyFolder *folder);
+
+
 /**
  * modest_tny_folder_get_rules:
  * @folder: a valid tnymail folder