kmpopheaders.cpp
00001 /*************************************************************************** 00002 kmpopheaders.cpp - description 00003 ------------------- 00004 begin : Mon Oct 22 2001 00005 copyright : (C) 2001 by Heiko Hund 00006 Thorsten Zachmann 00007 email : heiko@ist.eigentlich.net 00008 T.Zachmann@zagge.de 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 TQString& aId, const TQString& aUid, KMPopFilterAction aAction) 00030 : mAction(aAction), 00031 mId(aId), 00032 mUid(aUid), 00033 mRuleMatched(false), 00034 mHeader(0) 00035 { 00036 } 00037 00039 TQString KMPopHeaders::id() const{ 00040 return mId; 00041 } 00042 00044 TQString 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 }