An Object of this class contains the data about a deleted or moved mail. These objects are stored in the lists of the filter log. More...
#include <filterlogentry.h>
Public Member Functions | |
FilterLogEntry () | |
FilterLogEntry (FilterAction_Type action, const KDateTime &dateTime, const QString &sender, const QString &account, const QString &subject, const QString &mailbox=QString(), KindOfMailDeleting kindDelete=DelFilter, const QString &filter=QString()) | |
FilterLogEntry (const FilterLogEntry &ent) | |
~FilterLogEntry () | |
FilterLogEntry & | operator= (const FilterLogEntry &ent) |
bool | operator== (const FilterLogEntry &ent) const |
bool | operator!= (const FilterLogEntry &ent) const |
bool | operator> (const FilterLogEntry &ent) const |
bool | operator>= (const FilterLogEntry &ent) const |
bool | operator< (const FilterLogEntry &ent) const |
bool | operator<= (const FilterLogEntry &ent) const |
void | print () |
bool | isOlder (uint days) |
void | save (QDomDocument &doc, QDomElement &parent) |
Stores the entry into the given DOM document as child of the given DOM element. | |
KDateTime | getDate () const |
QString | getSender () const |
QString | getAccount () const |
QString | getSubject () const |
QString | getMailbox () const |
QString | getFilter () const |
KindOfMailDeleting | getKindOfDeleting () const |
int | compare (const FilterLogEntry &other, LogViewSort property) const |
Compares this entry with other and returns an integer less than, equal to, or greater than zero if this entry is less than, equal to, or greater than other. | |
Private Attributes | |
FilterAction_Type | act |
KDateTime | sentDateTime |
QString | sender |
QString | account |
QString | subject |
QString | mailbox |
KindOfMailDeleting | kindDel |
QString | filter |
An Object of this class contains the data about a deleted or moved mail. These objects are stored in the lists of the filter log.
Definition at line 42 of file filterlogentry.h.
FilterLogEntry::FilterLogEntry | ( | ) |
Default constructor
Definition at line 20 of file filterlogentry.cpp.
FilterLogEntry::FilterLogEntry | ( | FilterAction_Type | action, | |
const KDateTime & | dateTime, | |||
const QString & | sender, | |||
const QString & | account, | |||
const QString & | subject, | |||
const QString & | mailbox = QString() , |
|||
KindOfMailDeleting | kindDelete = DelFilter , |
|||
const QString & | filter = QString() | |||
) |
General constructor
action | executed action
|
Definition at line 28 of file filterlogentry.cpp.
FilterLogEntry::FilterLogEntry | ( | const FilterLogEntry & | ent | ) |
FilterLogEntry::~FilterLogEntry | ( | ) |
Destructor
Definition at line 33 of file filterlogentry.cpp.
int FilterLogEntry::compare | ( | const FilterLogEntry & | other, | |
LogViewSort | property | |||
) | const |
Compares this entry with other and returns an integer less than, equal to, or greater than zero if this entry is less than, equal to, or greater than other.
other | other entry
|
Definition at line 161 of file filterlogentry.cpp.
QString FilterLogEntry::getAccount | ( | ) | const |
KDateTime FilterLogEntry::getDate | ( | ) | const |
Returns the date and time of send
Definition at line 136 of file filterlogentry.cpp.
QString FilterLogEntry::getFilter | ( | ) | const |
Returns the name of the filter which has deleted the mail
Definition at line 216 of file filterlogentry.cpp.
KindOfMailDeleting FilterLogEntry::getKindOfDeleting | ( | ) | const |
Returns the kind of the deleting
Definition at line 211 of file filterlogentry.cpp.
QString FilterLogEntry::getMailbox | ( | ) | const |
QString FilterLogEntry::getSender | ( | ) | const |
QString FilterLogEntry::getSubject | ( | ) | const |
bool FilterLogEntry::isOlder | ( | uint | days | ) |
Returns whether the mail of this entry is older than the given number of days.
days | number of days to compare
|
Definition at line 82 of file filterlogentry.cpp.
bool FilterLogEntry::operator!= | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 92 of file filterlogentry.cpp.
bool FilterLogEntry::operator< | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 107 of file filterlogentry.cpp.
bool FilterLogEntry::operator<= | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 112 of file filterlogentry.cpp.
FilterLogEntry & FilterLogEntry::operator= | ( | const FilterLogEntry & | ent | ) |
bool FilterLogEntry::operator== | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 87 of file filterlogentry.cpp.
bool FilterLogEntry::operator> | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 97 of file filterlogentry.cpp.
bool FilterLogEntry::operator>= | ( | const FilterLogEntry & | ent | ) | const |
Compares this entry with the given entry
ent | entry to compare
|
Definition at line 102 of file filterlogentry.cpp.
void FilterLogEntry::print | ( | ) |
Prints the data of this entry to Stdout.
Definition at line 37 of file filterlogentry.cpp.
void FilterLogEntry::save | ( | QDomDocument & | doc, | |
QDomElement & | parent | |||
) |
Stores the entry into the given DOM document as child of the given DOM element.
doc | DOM document
|
Definition at line 117 of file filterlogentry.cpp.
QString FilterLogEntry::account [private] |
Definition at line 212 of file filterlogentry.h.
FilterAction_Type FilterLogEntry::act [private] |
executed action
Definition at line 197 of file filterlogentry.h.
QString FilterLogEntry::filter [private] |
The filter which has deleted the mail
Definition at line 232 of file filterlogentry.h.
KindOfMailDeleting FilterLogEntry::kindDel [private] |
kind of the deleting of the mail (manual or by filter)
Definition at line 227 of file filterlogentry.h.
QString FilterLogEntry::mailbox [private] |
mailbox if the mails was moved
Definition at line 222 of file filterlogentry.h.
QString FilterLogEntry::sender [private] |
Sender
Definition at line 207 of file filterlogentry.h.
KDateTime FilterLogEntry::sentDateTime [private] |
Delivery date and time
Definition at line 202 of file filterlogentry.h.
QString FilterLogEntry::subject [private] |
Subject
Definition at line 217 of file filterlogentry.h.