kmail

kmpopheaders.cpp

Go to the documentation of this file.
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   if (mHeader)
00026     delete mHeader;
00027 }
00028 
00030 KMPopHeaders::KMPopHeaders(const QString& aId, const QString& aUid, KMPopFilterAction aAction)
00031   : mAction(aAction),
00032     mId(aId),
00033     mUid(aUid),
00034     mRuleMatched(false),
00035     mHeader(0)
00036 {
00037 }
00038 
00040 QString KMPopHeaders::id() const{
00041   return mId;
00042 }
00043 
00045 QString KMPopHeaders::uid() const{
00046   return mUid;
00047 }
00048 
00050 KMMessage * KMPopHeaders::header() const{
00051   return mHeader;
00052 }
00053 
00055 void KMPopHeaders::setHeader(KMMessage *aHeader){
00056   mHeader = aHeader;
00057 }
00058 
00060 KMPopFilterAction KMPopHeaders::action() const{
00061   return mAction;
00062 }
00063 
00065 void KMPopHeaders::setAction(KMPopFilterAction aAction){
00066   mAction = aAction;
00067 }
00069 void KMPopHeaders::setRuleMatched(bool b){
00070   mRuleMatched = b;
00071 }
00073 bool KMPopHeaders::ruleMatched(){
00074   return mRuleMatched;
00075 }