FilterLogEntry Class Reference

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>

List of all members.

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 ()
FilterLogEntryoperator= (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

Detailed Description

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.

Author:
Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 42 of file filterlogentry.h.


Constructor & Destructor Documentation

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

Parameters:
action executed action
Parameters:
dateTime date and time on which the mail was sent
Parameters:
sender sender of the mail
Parameters:
account Account which has received the mail
Parameters:
subject Subject of the mail
Parameters:
mailbox mailbox where the mails was moved
Parameters:
kindDelete kind of deleting (manual or by filter)
Parameters:
filter the filter which has deleted this mail

Definition at line 28 of file filterlogentry.cpp.

FilterLogEntry::FilterLogEntry ( const FilterLogEntry ent  ) 

Copy Constructor

Parameters:
ent source entry

Definition at line 54 of file filterlogentry.cpp.

FilterLogEntry::~FilterLogEntry (  ) 

Destructor

Definition at line 33 of file filterlogentry.cpp.


Member Function Documentation

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.

Parameters:
other other entry
Parameters:
property the entry property which will be compared

Definition at line 161 of file filterlogentry.cpp.

QString FilterLogEntry::getAccount (  )  const

Returns the account.

Returns:
Account

Definition at line 146 of file filterlogentry.cpp.

KDateTime FilterLogEntry::getDate (  )  const

Returns the date and time of send

Returns:
send date and time

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

Returns:
kind of the deleting

Definition at line 211 of file filterlogentry.cpp.

QString FilterLogEntry::getMailbox (  )  const

Returns the mailbox

Returns:
mailbox

Definition at line 156 of file filterlogentry.cpp.

QString FilterLogEntry::getSender (  )  const

Returns the sender.

Returns:
Sender

Definition at line 141 of file filterlogentry.cpp.

QString FilterLogEntry::getSubject (  )  const

Returns the subject

Returns:
Subject

Definition at line 151 of file filterlogentry.cpp.

bool FilterLogEntry::isOlder ( uint  days  ) 

Returns whether the mail of this entry is older than the given number of days.

Parameters:
days number of days to compare
Returns:
TRUE - the mail is older than the given date

Definition at line 82 of file filterlogentry.cpp.

bool FilterLogEntry::operator!= ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is not equal to the time of the given entry.

Definition at line 92 of file filterlogentry.cpp.

bool FilterLogEntry::operator< ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is earlier than the time of the given entry.

Definition at line 107 of file filterlogentry.cpp.

bool FilterLogEntry::operator<= ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is earlier than or equal to the time of the given entry.

Definition at line 112 of file filterlogentry.cpp.

FilterLogEntry & FilterLogEntry::operator= ( const FilterLogEntry ent  ) 

Assignment operator

Parameters:
ent source entry

Definition at line 66 of file filterlogentry.cpp.

bool FilterLogEntry::operator== ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is equal to te time of the given entry.

Definition at line 87 of file filterlogentry.cpp.

bool FilterLogEntry::operator> ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is later than the time of the given entry.

Definition at line 97 of file filterlogentry.cpp.

bool FilterLogEntry::operator>= ( const FilterLogEntry ent  )  const

Compares this entry with the given entry

Parameters:
ent entry to compare
Returns:
TRUE - the time of this entry is later than or equal to the time of the given entry.

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.

Parameters:
doc DOM document
Parameters:
parent parent element

Definition at line 117 of file filterlogentry.cpp.


Member Data Documentation

QString FilterLogEntry::account [private]

Account

Definition at line 212 of file filterlogentry.h.

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.

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.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3