#include <kshowmailview.h>
Signals | |
void | signalActiveChanged () |
Public Member Functions | |
KshowmailView (QWidget *parent=0, const char *name=0) | |
~KshowmailView () | |
void | saveOptions (KConfig *config) |
void | clearMailListView () |
ShowListViewItem * | insertMail (QString &number, QString &account, QString &from, QString &to, QString &subject, QString &date, QString &size, QString &content, QString &state, QString &time) |
void | refreshSetup () |
Public Attributes | |
KListView * | m_pListAccounts |
KListView * | m_pListMessages |
Private Slots | |
void | slotMessageContext (QListViewItem *, const QPoint &, int) |
void | slotMessageDoubleClicked (QListViewItem *) |
void | slotMessageClicked (QListViewItem *) |
void | slotAccountContext (QListViewItem *, const QPoint &, int) |
void | slotAccountClicked (QListViewItem *, const QPoint &point, int col) |
Private Member Functions | |
void | readOptions () |
Private Attributes | |
QPixmap * | m_pixOk |
KConfig * | config |
KshowmailView::KshowmailView | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Constructor for the main view
KshowmailView::~KshowmailView | ( | ) |
Destructor for the main view
void KshowmailView::saveOptions | ( | KConfig * | config | ) |
void KshowmailView::clearMailListView | ( | ) |
Clears the mail list view.
ShowListViewItem * KshowmailView::insertMail | ( | QString & | number, | |
QString & | account, | |||
QString & | from, | |||
QString & | to, | |||
QString & | subject, | |||
QString & | date, | |||
QString & | size, | |||
QString & | content, | |||
QString & | state, | |||
QString & | time | |||
) |
Creates a mail list view item with the given content and inserts it into the mail list view.
number | mail number | |
account | account name | |
from | sender of the mail | |
to | recipient of the mail | |
subject | mail subject | |
date | date on which the mail was sent, formated to the current locale's conventions. | |
size | size of the mail | |
content | content type | |
state | new or old | |
time | send date, formated to the ISO 8601 extended specification (YYYY-MM-DDTHH:MM:SS) |
void KshowmailView::refreshSetup | ( | ) |
Refreshes the geometry. Reads from the config file the properties about show or hide columns. If a shown column should be hidden, the current width will be saved and the column will be hidden. If a hidden column should be shown, it will be set to the old saved width.
void KshowmailView::readOptions | ( | ) | [private] |
Reads the some geometry options from the application config file.
void KshowmailView::slotMessageContext | ( | QListViewItem * | , | |
const QPoint & | , | |||
int | ||||
) | [private, slot] |
Connected with signal rightButtonClicked of m_pListMessages. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu mail_context_popup defined in kshowmailui.rc.
void KshowmailView::slotMessageDoubleClicked | ( | QListViewItem * | ) | [private, slot] |
void KshowmailView::slotMessageClicked | ( | QListViewItem * | ) | [private, slot] |
void KshowmailView::slotAccountContext | ( | QListViewItem * | , | |
const QPoint & | , | |||
int | ||||
) | [private, slot] |
Connected with signal rightButtonClicked of m_pListAccounts. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu account_context_popup defined in kshowmailui.rc.
void KshowmailView::slotAccountClicked | ( | QListViewItem * | , | |
const QPoint & | point, | |||
int | col | |||
) | [private, slot] |
Connected with signal clicked of the account list. Activate or deactivate the account, if the user has clicked in the first column
void KshowmailView::signalActiveChanged | ( | ) | [signal] |
KListView* KshowmailView::m_pListAccounts |
KListView* KshowmailView::m_pListMessages |
QPixmap* KshowmailView::m_pixOk [private] |
KConfig* KshowmailView::config [private] |
Connector to the configuration file