summaryrefslogtreecommitdiffstats
path: root/kmail/kmpopheaders.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/kmpopheaders.cpp
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmpopheaders.cpp')
-rw-r--r--kmail/kmpopheaders.cpp75
1 files changed, 75 insertions, 0 deletions
diff --git a/kmail/kmpopheaders.cpp b/kmail/kmpopheaders.cpp
new file mode 100644
index 000000000..8c5866007
--- /dev/null
+++ b/kmail/kmpopheaders.cpp
@@ -0,0 +1,75 @@
+/***************************************************************************
+ kmpopheaders.cpp - description
+ -------------------
+ begin : Mon Oct 22 2001
+ copyright : (C) 2001 by Heiko Hund
+ Thorsten Zachmann
+ email : heiko@ist.eigentlich.net
+ T.Zachmann@zagge.de
+ ***************************************************************************/
+
+#include <config.h>
+#include "kmpopheaders.h"
+#include <kdebug.h>
+
+KMPopHeaders::KMPopHeaders()
+ : mAction(NoAction),
+ mId(),
+ mUid(),
+ mRuleMatched(false),
+ mHeader(0)
+{
+}
+
+KMPopHeaders::~KMPopHeaders(){
+ if (mHeader)
+ delete mHeader;
+}
+
+/** No descriptions */
+KMPopHeaders::KMPopHeaders(const QString& aId, const QString& aUid, KMPopFilterAction aAction)
+ : mAction(aAction),
+ mId(aId),
+ mUid(aUid),
+ mRuleMatched(false),
+ mHeader(0)
+{
+}
+
+/** No descriptions */
+QString KMPopHeaders::id() const{
+ return mId;
+}
+
+/** No descriptions */
+QString KMPopHeaders::uid() const{
+ return mUid;
+}
+
+/** No descriptions */
+KMMessage * KMPopHeaders::header() const{
+ return mHeader;
+}
+
+/** No descriptions */
+void KMPopHeaders::setHeader(KMMessage *aHeader){
+ mHeader = aHeader;
+}
+
+/** No descriptions */
+KMPopFilterAction KMPopHeaders::action() const{
+ return mAction;
+}
+
+/** No descriptions */
+void KMPopHeaders::setAction(KMPopFilterAction aAction){
+ mAction = aAction;
+}
+/** No descriptions */
+void KMPopHeaders::setRuleMatched(bool b){
+ mRuleMatched = b;
+}
+/** No descriptions */
+bool KMPopHeaders::ruleMatched(){
+ return mRuleMatched;
+}