From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmail/kmpopheaders.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 kmail/kmpopheaders.h (limited to 'kmail/kmpopheaders.h') diff --git a/kmail/kmpopheaders.h b/kmail/kmpopheaders.h new file mode 100644 index 000000000..0106319f4 --- /dev/null +++ b/kmail/kmpopheaders.h @@ -0,0 +1,63 @@ +/*************************************************************************** + kmpopheaders.h + ------------------- + begin : Mon Oct 22 2001 + copyright : (C) 2001 by Heiko Hund + Thorsten Zachmann + email : heiko@ist.eigentlich.net + T.Zachmann@zagge.de + ***************************************************************************/ + +#ifndef KMPopHeaders_H +#define KMPopHeaders_H + +#include +#include "kmmessage.h" + + +enum KMPopFilterAction {Down=0, Later=1, Delete=2, NoAction=3}; //Keep these corresponding to the column numbers in the dialog for easier coding + //or change mapToAction and mapToColumn in KMPopHeadersView + +class KMPopHeaders { +public: + + KMPopHeaders(); + ~KMPopHeaders(); + /** constructor */ + KMPopHeaders(const QString& aId, const QString& aUid, KMPopFilterAction aAction); + + /** returns the id of the message */ + QString id() const; + + /** returns the uid of the message */ + QString uid() const; + + /** returns the header of the message */ + KMMessage * header() const; + + /** set the header of the message */ + void setHeader(KMMessage *aHeader); + + /** No descriptions */ + KMPopFilterAction action() const; + + /** No descriptions */ + void setAction(KMPopFilterAction aAction); + /** No descriptions */ + bool ruleMatched(); + /** No descriptions */ + void setRuleMatched(bool b); +protected: // Protected attributes + /** */ + KMPopFilterAction mAction; + /** */ + QString mId; + /** */ + QString mUid; + /** */ + bool mRuleMatched; + /** */ + KMMessage *mHeader; +}; + +#endif -- cgit v1.2.1