kmail
kmpopheaders.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <config.h>
00012 #include "kmpopheaders.h"
00013 #include <kdebug.h>
00014
00015 KMPopHeaders::KMPopHeaders()
00016 : mAction(NoAction),
00017 mId(),
00018 mUid(),
00019 mRuleMatched(false),
00020 mHeader(0)
00021 {
00022 }
00023
00024 KMPopHeaders::~KMPopHeaders(){
00025 delete mHeader;
00026 }
00027
00029 KMPopHeaders::KMPopHeaders(const QString& aId, const QString& aUid, KMPopFilterAction aAction)
00030 : mAction(aAction),
00031 mId(aId),
00032 mUid(aUid),
00033 mRuleMatched(false),
00034 mHeader(0)
00035 {
00036 }
00037
00039 QString KMPopHeaders::id() const{
00040 return mId;
00041 }
00042
00044 QString KMPopHeaders::uid() const{
00045 return mUid;
00046 }
00047
00049 KMMessage * KMPopHeaders::header() const{
00050 return mHeader;
00051 }
00052
00054 void KMPopHeaders::setHeader(KMMessage *aHeader){
00055 mHeader = aHeader;
00056 }
00057
00059 KMPopFilterAction KMPopHeaders::action() const{
00060 return mAction;
00061 }
00062
00064 void KMPopHeaders::setAction(KMPopFilterAction aAction){
00065 mAction = aAction;
00066 }
00068 void KMPopHeaders::setRuleMatched(bool b){
00069 mRuleMatched = b;
00070 }
00072 bool KMPopHeaders::ruleMatched(){
00073 return mRuleMatched;
00074 }
|