#include <kshowmailview.h>
Signals | |
| void | signalActiveChanged () |
Public Member Functions | |
| KshowmailView (TQWidget *parent=0, const char *name=0) | |
| ~KshowmailView () | |
| void | saveOptions (TDEConfig *config) |
| void | clearMailListView () |
| ShowListViewItem * | insertMail (TQString &number, TQString &account, TQString &from, TQString &to, TQString &subject, TQString &date, TQString &size, TQString &content, TQString &state, TQString &time) |
| void | refreshSetup () |
Public Attributes | |
| TDEListView * | m_pListAccounts |
| TDEListView * | m_pListMessages |
Private Slots | |
| void | slotMessageContext (TQListViewItem *, const TQPoint &, int) |
| void | slotMessageDoubleClicked (TQListViewItem *) |
| void | slotMessageClicked (TQListViewItem *) |
| void | slotAccountContext (TQListViewItem *, const TQPoint &, int) |
| void | slotAccountClicked (TQListViewItem *, const TQPoint &point, int col) |
Private Member Functions | |
| void | readOptions () |
Private Attributes | |
| TQPixmap * | m_pixOk |
| TDEConfig * | config |
| KshowmailView::KshowmailView | ( | TQWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Constructor for the main view
| KshowmailView::~KshowmailView | ( | ) |
Destructor for the main view
| void KshowmailView::saveOptions | ( | TDEConfig * | config | ) |
| void KshowmailView::clearMailListView | ( | ) |
Clears the mail list view.
| ShowListViewItem * KshowmailView::insertMail | ( | TQString & | number, | |
| TQString & | account, | |||
| TQString & | from, | |||
| TQString & | to, | |||
| TQString & | subject, | |||
| TQString & | date, | |||
| TQString & | size, | |||
| TQString & | content, | |||
| TQString & | state, | |||
| TQString & | 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 | ( | TQListViewItem * | , | |
| const TQPoint & | , | |||
| 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 | ( | TQListViewItem * | ) | [private, slot] |
| void KshowmailView::slotMessageClicked | ( | TQListViewItem * | ) | [private, slot] |
| void KshowmailView::slotAccountContext | ( | TQListViewItem * | , | |
| const TQPoint & | , | |||
| 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 | ( | TQListViewItem * | , | |
| const TQPoint & | 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] |
| TDEListView* KshowmailView::m_pListAccounts |
| TDEListView* KshowmailView::m_pListMessages |
TQPixmap* KshowmailView::m_pixOk [private] |
TDEConfig* KshowmailView::config [private] |
Connector to the configuration file
1.5.0