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())
 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
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.


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

General constructor

Parameters:
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  ) 

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

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

Assignment operator

Parameters:
ent source entry

Definition at line 64 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 83 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 88 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 93 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 98 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 103 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 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.

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

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.

Parameters:
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

Returns:
send date and time

Definition at line 126 of file filterlogentry.cpp.

QString FilterLogEntry::getSender (  )  const

Returns the sender.

Returns:
Sender

Definition at line 131 of file filterlogentry.cpp.

QString FilterLogEntry::getAccount (  )  const

Returns the account.

Returns:
Account

Definition at line 136 of file filterlogentry.cpp.

QString FilterLogEntry::getSubject (  )  const

Returns the subject

Returns:
Subject

Definition at line 141 of file filterlogentry.cpp.

QString FilterLogEntry::getMailbox (  )  const

Returns the mailbox

Returns:
mailbox

Definition at line 146 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.

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

Definition at line 151 of file filterlogentry.cpp.


The documentation for this class was generated from the following files:

Generated on Tue May 18 19:43:53 2010 for KShowmail by  doxygen 1.5.6