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

« back to all changes in this revision

Viewing changes to kmail/kmpopheaders.cpp

  • 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
 
#include "kmpopheaders.h"
21
 
#include "kmmessage.h"
22
 
 
23
 
KMPopHeaders::KMPopHeaders()
24
 
  : mAction( NoAction ),
25
 
    mId(),
26
 
    mUid(),
27
 
    mRuleMatched( false ),
28
 
    mHeader( 0 )
29
 
{
30
 
}
31
 
 
32
 
KMPopHeaders::~KMPopHeaders()
33
 
{
34
 
  delete mHeader;
35
 
}
36
 
 
37
 
KMPopHeaders::KMPopHeaders( const QByteArray & id, const QByteArray & uid,
38
 
                            KMPopFilterAction action )
39
 
  : mAction( action ),
40
 
    mId( id ),
41
 
    mUid( uid ),
42
 
    mRuleMatched( false ),
43
 
    mHeader( 0 )
44
 
{
45
 
}
46
 
 
47
 
QByteArray KMPopHeaders::id() const
48
 
{
49
 
  return mId;
50
 
}
51
 
 
52
 
QByteArray KMPopHeaders::uid() const
53
 
{
54
 
  return mUid;
55
 
}
56
 
 
57
 
KMMessage * KMPopHeaders::header() const
58
 
{
59
 
  return mHeader;
60
 
}
61
 
 
62
 
void KMPopHeaders::setHeader( KMMessage *header )
63
 
{
64
 
  mHeader = header;
65
 
}
66
 
 
67
 
KMPopFilterAction KMPopHeaders::action() const
68
 
{
69
 
  return mAction;
70
 
}
71
 
 
72
 
void KMPopHeaders::setAction( KMPopFilterAction action )
73
 
{
74
 
  mAction = action;
75
 
}
76
 
 
77
 
void KMPopHeaders::setRuleMatched( bool matched )
78
 
{
79
 
  mRuleMatched = matched;
80
 
}
81
 
 
82
 
bool KMPopHeaders::ruleMatched() const
83
 
{
84
 
  return mRuleMatched;
85
 
}