kmail

kmpopheaders.h
1 /***************************************************************************
2  kmpopheaders.h
3  -------------------
4  begin : Mon Oct 22 2001
5  copyright : (C) 2001 by Heiko Hund
6  Thorsten Zachmann
7  email : heiko@ist.eigentlich.net
8  T.Zachmann@zagge.de
9  ***************************************************************************/
10 
11 #ifndef KMPopHeaders_H
12 #define KMPopHeaders_H
13 
14 #include <tqstring.h>
15 #include "kmmessage.h"
16 
17 
18 enum KMPopFilterAction {Down=0, Later=1, Delete=2, NoAction=3}; //Keep these corresponding to the column numbers in the dialog for easier coding
19  //or change mapToAction and mapToColumn in KMPopHeadersView
20 
21 class KMPopHeaders {
22 public:
23 
24  KMPopHeaders();
25  ~KMPopHeaders();
27  KMPopHeaders(const TQString& aId, const TQString& aUid, KMPopFilterAction aAction);
28 
30  TQString id() const;
31 
33  TQString uid() const;
34 
36  KMMessage * header() const;
37 
39  void setHeader(KMMessage *aHeader);
40 
42  KMPopFilterAction action() const;
43 
45  void setAction(KMPopFilterAction aAction);
47  bool ruleMatched();
49  void setRuleMatched(bool b);
50 protected: // Protected attributes
52  KMPopFilterAction mAction;
54  TQString mId;
56  TQString mUid;
58  bool mRuleMatched;
60  KMMessage *mHeader;
61 };
62 
63 #endif
This is a Mime Message.
Definition: kmmessage.h:68