~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kmail/kmpopheaders.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  Copyright (c) 2001 Heiko Hund <heiko@ist.eigentlich.net>
3
 
  Copyright (c) 2001 Thorsten Zachmann <t.zachmann@zagge.de>
4
 
 
5
 
  This program is free software; you can redistribute it and/or modify
6
 
  it under the terms of the GNU General Public License as published by
7
 
  the Free Software Foundation; either version 2 of the License, or
8
 
  (at your option) any later version.
9
 
 
10
 
  This program is distributed in the hope that it will be useful,
11
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
 
  GNU General Public License for more details.
14
 
 
15
 
  You should have received a copy of the GNU General Public License along
16
 
  with this program; if not, write to the Free Software Foundation, Inc.,
17
 
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
*/
19
 
 
20
 
#ifndef KMPopHeaders_H
21
 
#define KMPopHeaders_H
22
 
 
23
 
#include <QByteArray>
24
 
 
25
 
class KMMessage;
26
 
 
27
 
//Keep these corresponding to the column numbers in the dialog for easier coding
28
 
//or change mapToAction and mapToColumn in PopHeadersView
29
 
enum KMPopFilterAction { Down=0, Later=1, Delete=2, NoAction=3 };
30
 
 
31
 
class KMPopHeaders {
32
 
public:
33
 
 
34
 
  KMPopHeaders();
35
 
  ~KMPopHeaders();
36
 
 
37
 
  KMPopHeaders( const QByteArray & id, const QByteArray & uid,
38
 
                KMPopFilterAction action );
39
 
 
40
 
  /** returns the id of the message */
41
 
  QByteArray id() const;
42
 
 
43
 
  /** returns the uid of the message */
44
 
  QByteArray uid() const;
45
 
 
46
 
  /** returns the header of the message */
47
 
  KMMessage * header() const;
48
 
 
49
 
  /**
50
 
   * Set the header of the message.
51
 
   * The header is then managed by this class, which
52
 
   * deletes the header in the destructor.
53
 
   */
54
 
  void setHeader( KMMessage *header );
55
 
 
56
 
  KMPopFilterAction action() const;
57
 
 
58
 
  void setAction( KMPopFilterAction action );
59
 
 
60
 
  bool ruleMatched() const;
61
 
 
62
 
  void setRuleMatched( bool matched );
63
 
 
64
 
private:
65
 
 
66
 
  KMPopFilterAction mAction;
67
 
  QByteArray mId;
68
 
  QByteArray mUid;
69
 
  bool mRuleMatched;
70
 
  KMMessage *mHeader;
71
 
};
72
 
 
73
 
#endif