30 #ifndef messageproperty_h
31 #define messageproperty_h
33 #include "kmfilteraction.h"
36 #include <tqptrlist.h>
37 #include <tqguardedptr.h>
45 class ActionScheduler;
57 class MessageProperty : public TQObject
64 static bool filtering( TQ_UINT32 );
65 static void setFiltering( TQ_UINT32, bool filtering );
66 static bool filtering( const KMMsgBase* );
67 static void setFiltering( const KMMsgBase*, bool filtering );
71 static KMFolder* filterFolder( TQ_UINT32 );
72 static void setFilterFolder( TQ_UINT32, KMFolder* folder );
73 static KMFolder* filterFolder( const KMMsgBase* );
74 static void setFilterFolder( const KMMsgBase*, KMFolder* folder );
76 static ActionScheduler* filterHandler( TQ_UINT32 );
77 static void setFilterHandler( TQ_UINT32, ActionScheduler* filterHandler );
78 static ActionScheduler* filterHandler( const KMMsgBase* );
79 static void setFilterHandler( const KMMsgBase*, ActionScheduler* filterHandler );
85 static void setSerialCache( const KMMsgBase*, TQ_UINT32 );
86 static TQ_UINT32 serialCache( const KMMsgBase* );
91 static void setTransferInProgress( const KMMsgBase*, bool, bool = false );
92 static bool transferInProgress( const KMMsgBase* );
93 static void setTransferInProgress( TQ_UINT32, bool, bool = false );
94 static bool transferInProgress( TQ_UINT32 );
99 static void forget( const KMMsgBase* );
103 static TQMap<TQ_UINT32, TQGuardedPtr<KMFolder> > sFolders;
106 static TQMap<TQ_UINT32, TQGuardedPtr<ActionScheduler> > sHandlers;
109 static TQMap<TQ_UINT32, int > sTransfers;
112 static TQMap<const KMMsgBase*, long > sSerialCache;
|