00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
#ifndef messageproperty_h
00031
#define messageproperty_h
00032
00033
#include "kmfilteraction.h"
00034
#include "kmfolder.h"
00035
00036
#include <qptrlist.h>
00037
#include <qguardedptr.h>
00038
#include <qobject.h>
00039
00040
class KMFilter;
00041
class KMFilterDlg;
00042
00043
namespace KMail {
00044
00045
class ActionScheduler;
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
class MessageProperty :
public QObject
00058 {
00059 Q_OBJECT
00060
00061
public:
00063
static bool filtering( Q_UINT32 );
00064
static void setFiltering( Q_UINT32,
bool filtering );
00065
static bool filtering(
const KMMsgBase* );
00066
static void setFiltering(
const KMMsgBase*,
bool filtering );
00070
static KMFolder* filterFolder( Q_UINT32 );
00071
static void setFilterFolder( Q_UINT32,
KMFolder* folder );
00072
static KMFolder* filterFolder(
const KMMsgBase* );
00073
static void setFilterFolder(
const KMMsgBase*,
KMFolder* folder );
00074
00075
static ActionScheduler* filterHandler( Q_UINT32 );
00076
static void setFilterHandler( Q_UINT32, ActionScheduler* filterHandler );
00077
static ActionScheduler* filterHandler(
const KMMsgBase* );
00078
static void setFilterHandler(
const KMMsgBase*, ActionScheduler* filterHandler );
00079
00080
00081
00082
00083
00084
static void setSerialCache(
const KMMsgBase*, Q_UINT32 );
00085
static Q_UINT32 serialCache(
const KMMsgBase* );
00086
00087
00088
00089
static void setComplete(
const KMMsgBase*,
bool );
00090
static bool complete(
const KMMsgBase* );
00091
static void setComplete( Q_UINT32,
bool );
00092
static bool complete( Q_UINT32 );
00093
00094
00095
00096
static void setReadyToShow(
const KMMsgBase*,
bool );
00097
static bool readyToShow(
const KMMsgBase* );
00098
static void setReadyToShow( Q_UINT32,
bool );
00099
static bool readyToShow( Q_UINT32 );
00100
00101
00102
00103
static void setTransferInProgress(
const KMMsgBase*,
bool,
bool =
false );
00104
static bool transferInProgress(
const KMMsgBase* );
00105
static void setTransferInProgress( Q_UINT32,
bool,
bool =
false );
00106
static bool transferInProgress( Q_UINT32 );
00110
static void forget(
const KMMsgBase* );
00111
00112
private:
00113
00114
static QMap<Q_UINT32, QGuardedPtr<KMFolder> > sFolders;
00115
00116
static QMap<Q_UINT32, QGuardedPtr<ActionScheduler> > sHandlers;
00117
00118
static QMap<Q_UINT32, bool > sCompletes;
00119
00120
static QMap<Q_UINT32, bool > sReadyToShows;
00121
00122
static QMap<Q_UINT32, int > sTransfers;
00123
00124
static QMap<const KMMsgBase*, long > sSerialCache;
00125 };
00126
00127 }
00128
00129
#endif