00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TYPES_H
00015 #define TYPES_H
00016
00017
00018 #include <ntqvaluelist.h>
00019 #include <ntqmap.h>
00020 #include <ntqstring.h>
00021
00022 using namespace std;
00023
00027 namespace Types
00028 {
00032 enum State_Type {idle,
00034 deleting,
00036 configure,
00040 executing,
00042 showing,
00044 refreshing
00045 };
00046
00050 enum AccountState_Type
00051 {
00052 AccountIdle,
00054 AccountDeleting,
00056 AccountDownloading,
00058 AccountRefreshing
00059 };
00060
00064 typedef TQValueList<int> MailNumberList_Type;
00065
00071 typedef TQMap<TQString, bool> AccountTaskMap_Type;
00072
00076 enum FilterAction_Type
00077 {
00078 FActPass,
00079 FActDelete,
00080 FActMark,
00081 FActMove,
00082 FActSpamcheck,
00083 FActIgnore,
00084 FActNone
00085 };
00086
00091 struct DownloadActionParams_Type
00092 {
00093 FilterAction_Type action;
00094 TQString mailbox;
00095 };
00096
00101 typedef TQMap<int, DownloadActionParams_Type> MailToDownloadMap_Type;
00102
00106 struct FilterCriteria_Type
00107 {
00108 int source;
00109 int condition;
00110 uint numValue;
00111 TQString txtValue;
00112 bool cs;
00113 };
00114
00118 typedef list<FilterCriteria_Type> FilterCriteriaList_Type;
00119
00120 }
00121
00122 #endif