#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()) | |
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 |
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. |
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() | |||
) |
General constructor
action | executed action | |
dateTime | date and time on which the mail was sent | |
sender | sender of the mail | |
account | Account which has received the mail | |
subject | Subject of the mail | |
mailbox | mailbox where the mails was moved |
Definition at line 28 of file filterlogentry.cpp.
FilterLogEntry::FilterLogEntry | ( | const FilterLogEntry & | ent | ) |
FilterLogEntry::~FilterLogEntry | ( | ) |
Destructor
Definition at line 33 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 83 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 88 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 93 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 98 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 103 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 108 of file filterlogentry.cpp.
void FilterLogEntry::print | ( | ) |
Prints the data of this entry to Stdout.
Definition at line 37 of file filterlogentry.cpp.
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 78 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 | |
parent | parent element |
Definition at line 113 of file filterlogentry.cpp.
KDateTime FilterLogEntry::getDate | ( | ) | const |
Returns the date and time of send
Definition at line 126 of file filterlogentry.cpp.
QString FilterLogEntry::getSender | ( | ) | const |
QString FilterLogEntry::getAccount | ( | ) | const |
QString FilterLogEntry::getSubject | ( | ) | const |
QString FilterLogEntry::getMailbox | ( | ) | const |
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 | |
property | the entry property which will be compared |
Definition at line 151 of file filterlogentry.cpp.