main class More...
#include <kshowmail.h>
main class
This class serves as the main window for kshowmail. For my lovely Stephie!
Definition at line 72 of file kshowmail.h.
KShowmail::KShowmail | ( | ) |
Default Constructor
Definition at line 20 of file kshowmail.cpp.
KShowmail::~KShowmail | ( | ) | [virtual] |
Default Destructor
Definition at line 115 of file kshowmail.cpp.
bool KShowmail::askCloseConfirmation | ( | ) | [protected] |
Asks the user to confirm the closing
Definition at line 797 of file kshowmail.cpp.
void KShowmail::handleNewMails | ( | ) | [protected] |
Handles all actions for new mails
Definition at line 716 of file kshowmail.cpp.
void KShowmail::handleNoNewMails | ( | ) | [protected] |
Handles all actions when no new mails are arrived
Definition at line 779 of file kshowmail.cpp.
void KShowmail::initActions | ( | ) | [protected] |
sets up the actions.
Definition at line 119 of file kshowmail.cpp.
void KShowmail::initStatusBar | ( | ) | [protected] |
Initializes the statusbar
Definition at line 515 of file kshowmail.cpp.
bool KShowmail::queryClose | ( | ) | [protected, virtual] |
Called before the main window is closed. Reimplemented methode of KMainWindow.
Definition at line 457 of file kshowmail.cpp.
void KShowmail::refreshFilterStatusBar | ( | ) | [protected] |
Refreshes the status bar filter field.
Definition at line 611 of file kshowmail.cpp.
void KShowmail::showStatusMessage | ( | const QString & | text | ) | [protected] |
Shows a message in the status bar
text | text which shall be shown |
Definition at line 509 of file kshowmail.cpp.
void KShowmail::slotAddToBlacklist | ( | ) | [protected, slot] |
Adds the sender of the selected mails to the blacklist
Definition at line 361 of file kshowmail.cpp.
void KShowmail::slotAddToWhitelist | ( | ) | [protected, slot] |
Adds the sender of the selected mails to the whitelist
Definition at line 385 of file kshowmail.cpp.
void KShowmail::slotConfChanged | ( | ) | [protected, slot] |
Connected with the setup dialog. Reloads the configuration, if it was changed from the dialog.
Definition at line 494 of file kshowmail.cpp.
void KShowmail::slotDelete | ( | ) | [protected, slot] |
Connected with action m_actionDelete. Deletes all selected mails.
Definition at line 284 of file kshowmail.cpp.
void KShowmail::slotDeletionReady | ( | ) | [protected, slot] |
Connected with signal sigDeleteReady of account list. 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.
Definition at line 595 of file kshowmail.cpp.
void KShowmail::slotFileQuit | ( | ) | [protected, slot] |
Calls the close() method of KShowmail to exit the application.
Definition at line 441 of file kshowmail.cpp.
void KShowmail::slotMailDoubleClicked | ( | ) | [protected, slot] |
Connected with Signal sidMailDoubleClicked of the mail list view. Calls slotShowMessage() or slotShowHeader according with the configuration
Definition at line 803 of file kshowmail.cpp.
void KShowmail::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.
Definition at line 580 of file kshowmail.cpp.
void KShowmail::slotRefresh | ( | ) | [protected, slot] |
Connected with m_actionRefresh. Refreshes the mail list.
Definition at line 190 of file kshowmail.cpp.
void KShowmail::slotRefreshReady | ( | ) | [protected, slot] |
Connected with signal sigRefreshReady of the account list. This signal will be emitted when all accounts have refreshed their mail list.
Definition at line 532 of file kshowmail.cpp.
void KShowmail::slotRefreshTimer | ( | ) | [protected, slot] |
This will be called by the refresh timer every second.
It decreases timeToRefresh and calls slotRefresh when it is zero.
Definition at line 667 of file kshowmail.cpp.
void KShowmail::slotSendFeedbackMail | ( | ) | [protected, slot] |
Opens the feedback dialog
Definition at line 437 of file kshowmail.cpp.
void KShowmail::slotSetup | ( | ) | [protected, slot] |
Connected with the standard setup action. If the application state is "idle" (m_state == idle) it will open the configuration dialog.
Definition at line 408 of file kshowmail.cpp.
void KShowmail::slotSetupAccount | ( | ) | [protected, slot] |
Connected with action actionSetupAccount
shows the setup dialog for the selected account
Definition at line 694 of file kshowmail.cpp.
void KShowmail::slotShowFilterLog | ( | ) | [protected, slot] |
Shows the filter log.
Definition at line 350 of file kshowmail.cpp.
void KShowmail::slotShowHeader | ( | ) | [protected, slot] |
Shows the headers of all selected mails.
Definition at line 217 of file kshowmail.cpp.
void KShowmail::slotShowMainWindow | ( | ) | [protected, slot] |
Connected with newMailDlg, signal cancelClicked
Shows the main window
Definition at line 773 of file kshowmail.cpp.
void KShowmail::slotShowMessage | ( | ) | [protected, slot] |
Connected with action m_actionShowMessage. Shows all selected mails.
Definition at line 246 of file kshowmail.cpp.
void KShowmail::slotShowMessageReady | ( | ) | [protected, slot] |
Connected with signal sigShowBodiesReady of account list. 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.
Definition at line 626 of file kshowmail.cpp.
void KShowmail::slotStop | ( | ) | [protected, slot] |
If the application state is not "idle" it will stop all current running POP3 jobs. Connected with m_actionStop().
Definition at line 346 of file kshowmail.cpp.
void KShowmail::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 if the application state is not "idle"
Definition at line 588 of file kshowmail.cpp.
void KShowmail::startAutomaticRefresh | ( | bool | initiate = false |
) | [protected] |
Starts the refresh timer.
initiate | TRUE - this is the first automatic refresh (use initiate time) |
Definition at line 641 of file kshowmail.cpp.
void KShowmail::stopAutomaticRefresh | ( | ) | [protected] |
Stops the refresh timer.
Definition at line 687 of file kshowmail.cpp.
AccountViewModel* KShowmail::accountModel [private] |
The model of the account view
Definition at line 386 of file kshowmail.h.
AccountList* KShowmail::accounts [private] |
account list
Definition at line 346 of file kshowmail.h.
QItemSelectionModel* KShowmail::accountSelectModel [private] |
The selection model of the account view
Definition at line 376 of file kshowmail.h.
KAction* KShowmail::actionAddBlacklist [private] |
Add to black list action; connected with slotAddToBlacklist()
Definition at line 335 of file kshowmail.h.
KAction* KShowmail::actionAddWhitelist [private] |
Add to white list action, connected with slotAddToWhitelist()
Definition at line 329 of file kshowmail.h.
KAction* KShowmail::actionDelete [private] |
delete mail action; connected with slotDelete()
Definition at line 311 of file kshowmail.h.
KAction* KShowmail::actionRefresh [private] |
refresh messages action; connected with slotRefresh()
Definition at line 293 of file kshowmail.h.
KAction* KShowmail::actionSetupAccount [private] |
setup account action; connected with slotSetupAccount()
Definition at line 341 of file kshowmail.h.
KAction* KShowmail::actionShowFilterLog [private] |
Show filter log action; connected with slotShowFilterLog()
Definition at line 323 of file kshowmail.h.
KAction* KShowmail::actionShowHeader [private] |
Show header action; connected with slotShowHeader()
Definition at line 299 of file kshowmail.h.
KAction* KShowmail::actionShowMessage [private] |
Show mail action; connected with slotShowMessage()
Definition at line 305 of file kshowmail.h.
KAction* KShowmail::actionStop [private] |
stop action; connected with slotStop().
Definition at line 317 of file kshowmail.h.
Phonon::AudioOutput* KShowmail::audioOutput [private] |
This is to play a sound for new mails
Definition at line 413 of file kshowmail.h.
KSharedConfigPtr KShowmail::config [private] |
application config
Definition at line 356 of file kshowmail.h.
KConfigGroup* KShowmail::configGeneral [private] |
config group of general preferences
Definition at line 361 of file kshowmail.h.
FilterLog KShowmail::fLog [protected] |
The filter log.
Definition at line 120 of file kshowmail.h.
bool KShowmail::forceExit [private] |
This is to avoid a confirm close dialog
Definition at line 424 of file kshowmail.h.
MailViewModel* KShowmail::mailModel [private] |
The model of the mail view
Definition at line 381 of file kshowmail.h.
QItemSelectionModel* KShowmail::mailSelectModel [private] |
The selection model of the mail view
Definition at line 371 of file kshowmail.h.
Phonon::MediaObject* KShowmail::mediaObject [private] |
This is to play a sound for new mails
Definition at line 407 of file kshowmail.h.
NewMailDialog* KShowmail::newMailDlg [private] |
QTimer* KShowmail::refreshTimer [private] |
The refresh timer. It times out every second and calls slotRefreshTimer().
Definition at line 396 of file kshowmail.h.
KCMultiDialog* KShowmail::setupDialog [private] |
The setup dialog. Created and used by slotSetup().
Definition at line 351 of file kshowmail.h.
State_Type KShowmail::state [private] |
Working state
Definition at line 366 of file kshowmail.h.
unsigned int KShowmail::timeToRefresh [private] |
Number of seconds until the next refresh
Definition at line 401 of file kshowmail.h.
SystemTrayIcon* KShowmail::trayIcon [private] |
The system tray icon
Definition at line 391 of file kshowmail.h.
KShowmailView* KShowmail::view [private] |
This view is the central widget of KShowmail
Definition at line 288 of file kshowmail.h.