#include <kshowmail.h>
TDEApplication
TDEConfig
TDEAccel
KShowMailApp::KShowMailApp | ( | ) |
Constructor of KShowMailApp, calls all init functions to create the application.
KShowMailApp::~KShowMailApp | ( | ) |
Destructor
void KShowMailApp::delayNextRefresh | ( | ) |
Delays the next refresh for one minute.
void KShowMailApp::initStatusBar | ( | ) | [protected] |
sets up the statusbar for the main window by initialzing a statuslabel.
void KShowMailApp::initActions | ( | ) | [protected] |
sets up the actions.
void KShowMailApp::initDocument | ( | ) | [protected] |
initializes the document object of the main window that is connected to the view in initView().
void KShowMailApp::initView | ( | ) | [protected] |
creates the centerwidget of the TDEMainWindow instance and sets it as the view
bool KShowMailApp::queryClose | ( | ) | [protected, virtual] |
queryClose is called by TDEMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calles saveModified() on the document object to ask if the document should be saved if Modified; on cancel the closeEvent is rejected.
TDEMainWindow::closeEvent
bool KShowMailApp::queryExit | ( | ) | [protected, virtual] |
queryExit is called by TDEMainWindow when the last window of the app is going to be closed during the closeEvent(). Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's properties.
TDEMainWindow::closeEvent
void KShowMailApp::timerEvent | ( | TQTimerEvent * | ) | [protected, virtual] |
overwrite method of TQObject; will be invoked by the internal TQObject-Timer the timer is set to 1 second in the construtor; this method sets the time to the next refresh in the statusbar and animates the "?" in the traybar, when the refresh is working
bool KShowMailApp::event | ( | TQEvent * | e | ) | [protected, virtual] |
overwrite method of TQWidget; to hide the taskbar button
void KShowMailApp::initFirstRefresh | ( | ) | [protected] |
Starts the first refresh or starts the refresh timer with the configured init time.
void KShowMailApp::stopRefreshTimer | ( | ) | [protected] |
Stops the refresh timer.
void KShowMailApp::initNextRefresh | ( | ) | [protected] |
Starts the refresh timer for the next refresh.
void KShowMailApp::slotStatusHelpMsg | ( | const TQString & | text | ) | [protected, slot] |
Changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display statusbar messages that give information about actions for toolbar icons and menu entries.
text | the text that is displayed in the statusbar |
void KShowMailApp::slotStatusMsg | ( | const TQString & | text | ) | [protected, slot] |
Changes the contents in the left status bar item permanently, used to indicate current actions. And sets the current time in the right item.
text | the text that is displayed in the statusbar |
void KShowMailApp::slotConfChanged | ( | ) | [protected, slot] |
Connected with the setup dialog. Reloads the configuration, if it was changed from the dialog.
void KShowMailApp::slotDelete | ( | ) | [protected, slot] |
Connected with action m_actionDelete. Deletes all selected mails.
void KShowMailApp::slotDeletionReady | ( | ) | [protected, slot] |
Connected with signal sigDeleteReady of m_ConfigList. This signal will be emitted when one or many accounts have ended a deletion. This slot refreshes the view, sets the state to idle and sets a normal cursor.
void KShowMailApp::slotShowMessage | ( | ) | [protected, slot] |
Connected with action m_actionShowMessage. Shows all selected mails.
void KShowMailApp::slotShowMessageReady | ( | ) | [protected, slot] |
Connected with signal sigShowBodiesReady of m_ConfigList. This signal will be emitted when all accounts have downloaded and shown the selected messages. This slot sets the state to idle and sets a normal cursor.
void KShowMailApp::slotNormalCursor | ( | ) | [protected, slot] |
Connected with signal sigMessageWindowOpened of m_ConfigList. This signal will be emitted when a window to show a mail body was opened. Switches the cursor to normal view.
void KShowMailApp::slotWaitingCursor | ( | ) | [protected, slot] |
Connected with signal sigAllMessageWindowsClosed of m_ConfigList. This signal will be emitted when all windows to show a mail body have been closed. Switches the cursor to waiting view.
void KShowMailApp::slotRefresh | ( | ) | [protected, slot] |
Connected with m_actionRefresh. Refreshes the mail list.
void KShowMailApp::slotRefreshReady | ( | ) | [protected, slot] |
Connected with signal sigRefreshReady of m_ConfigList. This signal will be emitted when all accounts have refreshed their mail list. This slot refreshes the mail view.
void KShowMailApp::slotAlertDestroyed | ( | ) | [protected, slot] |
Connected with signal destroyed of the alert message dialog. Sets m_pAlertDialog to NULL, if the dialog was destroyed. If m_pAlertDialog == NULL, slotRefreshReady will create a new instance of it.
void KShowMailApp::slotAlertOk | ( | ) | [protected, slot] |
Connected with signal signalOk of the alert message dialog. Switches the main window to normal view.
void KShowMailApp::slotRefreshView | ( | ) | [protected, slot] |
Refreshes the account and messages list view.
void KShowMailApp::slotStop | ( | ) | [protected, slot] |
If the application state is not "idle" it will stop all current running POP3 jobs. Connected with m_actionStop().
void KShowMailApp::slotShowHeader | ( | ) | [protected, slot] |
Shows the headers of all selected mails. Connected with action m_actionShowHeader.
void KShowMailApp::slotEditToolbars | ( | ) | [protected, slot] |
Connected with standard action configureToolbars. Opens a dialog to configure the icons of the toolbar.
void KShowMailApp::slotSaveOptions | ( | ) | [protected, slot] |
Saves GUI options, account and filter settings to the configuration file.
void KShowMailApp::slotFileQuit | ( | ) | [protected, slot] |
Calls the close() method of KShowMailApp to exit the application. Uses askCloseConfirmation() to ask the user (if configured). Sets m_bForceClose to TRUE, therefore queryClose() will be passed without anything to do. After that in queryExit() slotSaveOptions() will be invoked.
void KShowMailApp::slotSetupAccount | ( | ) | [protected, slot] |
Opens the setup dialog for the highlighted account. Connected with m_actionSetupAccount.
void KShowMailApp::slotSetup | ( | ) | [protected, slot] |
Connected with the standard setup action. If the application state is "idle" (m_state == idle) it will open the configuration dialog.
void KShowMailApp::slotShowFilterLog | ( | ) | [protected, slot] |
Shows the filter log.
void KShowMailApp::slotAccountActivated | ( | TQListViewItem * | ) | [protected, slot] |
void KShowMailApp::slotSendFeedbackMail | ( | ) | [protected, slot] |
void KShowMailApp::slotForceClose | ( | ) | [protected, slot] |
void KShowMailApp::addFeatureList | ( | KFeedbackQuestion * | question | ) | [protected] |
bool KShowMailApp::askCloseConfirmation | ( | ) | [protected] |
friend class KshowmailView [friend] |
friend class KshowmailDock [friend] |
friend class UniqueApp [friend] |
KshowmailDoc* KShowMailApp::m_pDoc [private] |
The central document of our application. Just contains the view (m_pView).
KshowmailView* KShowMailApp::m_pView [private] |
Contains the account and messages list views.
KCMultiDialog* KShowMailApp::SetupDialog [private] |
The setup dialog. Created and used by slotSetup().
TDEAction* KShowMailApp::m_actionRefresh [private] |
refresh messages action; connected with slotRefresh()
ConfigList KShowMailApp::m_ConfigList [private] |
Contains the application and account settings. The account settings are stored in ConfigElem objects.
AlertDialog* KShowMailApp::m_pAlertDialog [private] |
Message box which will be shown, when new mail has arrived.
KShowMailDock* KShowMailApp::m_pDockWindow [private] |
The window into the system tray.
TQTimer* KShowMailApp::m_pTimer [private] |
The refresh timer. Its timeout signal is connected with slotRefresh().
Types::State_Type KShowMailApp::m_state [private] |
Application state during the run time. Shows what KShowMail is doing :-) .
unsigned long KShowMailApp::m_nSecondsToGo [private] |
Number of seconds until the next refresh
FilterLog KShowMailApp::fLog [private] |
The filter log.
TDEAboutData * KShowMailApp::m_pAbout [static] |
Contains information about KShowMail, including author, license, version etc. This is accessed in main() when calling KShowMailApp::initMenuBar() to create the help menu.
bool KShowMailApp::m_bForceClose [private] |