diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 15:57:00 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 15:57:00 -0500 |
commit | b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 (patch) | |
tree | 7ca76d42f66fb21ea08142de9a8d3bf16e597404 /kshowmail/filterlogviewmoveditem.h | |
download | kshowmail-b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65.tar.gz kshowmail-b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65.zip |
Initial import from kshowmail 3.3.1 sources
Diffstat (limited to 'kshowmail/filterlogviewmoveditem.h')
-rw-r--r-- | kshowmail/filterlogviewmoveditem.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/kshowmail/filterlogviewmoveditem.h b/kshowmail/filterlogviewmoveditem.h new file mode 100644 index 0000000..9a7a7f8 --- /dev/null +++ b/kshowmail/filterlogviewmoveditem.h @@ -0,0 +1,101 @@ +// +// C++ Interface: filterlogviewmoveditem +// +// Description: +// +// +// Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2008 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef FILTERLOGVIEWMOVEDITEM_H +#define FILTERLOGVIEWMOVEDITEM_H + +//Qt Headers +#include <qdatetime.h> + +//KDE headers +#include <klistview.h> + +/** + * @brief Item of the filter log view of moved mails + * @author Ulrich Weigelt <ulrich.weigelt@gmx.de> + */ +class FilterLogViewMovedItem : public KListViewItem +{ + + public: + + /** + * Column Numbers. + */ + enum Column{ ColDate = 0, ColSender = 1, ColAccount = 2, ColMailbox = 3, ColSubject = 4 }; + + /** + * Constructor + * @param parent the log view of this items + */ + FilterLogViewMovedItem( KListView* parent); + + /** + * Destructor + */ + ~FilterLogViewMovedItem(); + + /** + * Sets the column values. + * @param date date and time at which the mail was sent + * @param sender sender of the mail + * @param account account + * @param mailbox mailbox to which the mail was moved + * @param subject mail subject + */ + void setValues( QDateTime date, QString sender, QString account, QString mailbox, QString subject ); + + /** + * Reimplemantation of QListViewItem::compare. + * Compares this list view item to i using the column col in ascending order. Returns <0 if this item is less than i, + * 0 if they are equal and >0 if this item is greater than i. The parameter ascneding will be ignored. + * @param i pointer to the second view item + * @param col number of the sorted column + * @param ascending ignored + */ + virtual int compare( QListViewItem* i, int col, bool ascending ) const; + + /** + * Returns the date of sent + * @return date of sent + */ + QDateTime getDate(); + + + private: + + /** + * sent date and time + */ + QDateTime date; + + /** + * sender of the mail + */ + QString sender; + + /** + * Account + */ + QString account; + + /** + * mail subject + */ + QString subject; + + /** + * mailbox + */ + QString mailbox; +}; + +#endif |