kmail

kmpopheaders.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kmpopheaders.h
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 #ifndef KMPopHeaders_H
00012 #define KMPopHeaders_H
00013 
00014 #include <qstring.h>
00015 #include "kmmessage.h"
00016 
00017 
00018 enum KMPopFilterAction {Down=0, Later=1, Delete=2, NoAction=3}; //Keep these corresponding to the column numbers in the dialog for easier coding
00019                                 //or change mapToAction and mapToColumn in KMPopHeadersView
00020 
00021 class KMPopHeaders {
00022 public:
00023 
00024   KMPopHeaders();
00025   ~KMPopHeaders();
00027   KMPopHeaders(const QString& aId, const QString& aUid, KMPopFilterAction aAction);
00028 
00030   QString id() const;
00031 
00033   QString uid() const;
00034 
00036   KMMessage * header() const;
00037 
00039   void setHeader(KMMessage *aHeader);
00040 
00042   KMPopFilterAction action() const;
00043 
00045   void setAction(KMPopFilterAction aAction);
00047   bool ruleMatched();
00049   void setRuleMatched(bool b);
00050 protected: // Protected attributes
00052   KMPopFilterAction mAction;
00054   QString mId;
00056   QString mUid;
00058   bool mRuleMatched;
00060   KMMessage *mHeader;
00061 };
00062 
00063 #endif