summaryrefslogtreecommitdiffstats
path: root/kmail/kmpopheaders.h
blob: bb7cc5b5ab58c437d1adfd1da3abc54b37bce058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
                          kmpopheaders.h
                             -------------------
    begin                : Mon Oct 22 2001
    copyright            : (C) 2001 by Heiko Hund
                                       Thorsten Zachmann
    email                : heiko@ist.eigentlich.net
                           T.Zachmann@zagge.de
 ***************************************************************************/

#ifndef KMPopHeaders_H
#define KMPopHeaders_H

#include <tqstring.h>
#include "kmmessage.h"


enum KMPopFilterAction {Down=0, Later=1, Delete=2, NoAction=3}; //Keep these corresponding to the column numbers in the dialog for easier coding
								//or change mapToAction and mapToColumn in KMPopHeadersView

class KMPopHeaders {
public:

  KMPopHeaders();
  ~KMPopHeaders();
  /** constructor */
  KMPopHeaders(const TQString& aId, const TQString& aUid, KMPopFilterAction aAction);

  /** returns the id of the message */
  TQString id() const;

  /** returns the uid of the message */
  TQString uid() const;

  /** returns the header of the message */
  KMMessage * header() const;

  /** set the header of the message */
  void setHeader(KMMessage *aHeader);

  /** No descriptions */
  KMPopFilterAction action() const;

  /** No descriptions */
  void setAction(KMPopFilterAction aAction);
  /** No descriptions */
  bool ruleMatched();
  /** No descriptions */
  void setRuleMatched(bool b);
protected: // Protected attributes
  /** */
  KMPopFilterAction mAction;
  /**  */
  TQString mId;
  /**  */
  TQString mUid;
  /**  */
  bool mRuleMatched;
  /**  */
  KMMessage *mHeader;
};

#endif