# types.h

Go to the documentation of this file.

    00001 //
    00002 // C++ Interface: types
    00003 //
    00004 // Description:
    00005 // All specail types for KShowMail
    00006 //
    00007 //
    00008 // Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
    00009 //
    00010 // Copyright: See COPYING file that comes with this distribution
    00011 //
    00012 //
    00013
    00014 #ifndef TYPES_H
    00015 #define TYPES_H
    00016
    00017 //TQt headers
    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