#include <kshowmail.h>
Public Member Functions | |
KShowmail () | |
virtual | ~KShowmail () |
Protected Slots | |
void | slotRefresh () |
void | slotShowHeader () |
void | slotShowMessage () |
void | slotDelete () |
void | slotStop () |
void | slotShowFilterLog () |
void | slotAddToWhitelist () |
void | slotAddToBlacklist () |
void | slotSetup () |
void | slotSendFeedbackMail () |
void | slotFileQuit () |
void | slotConfChanged () |
void | slotRefreshReady () |
void | slotNormalCursor () |
void | slotWaitingCursor () |
void | slotDeletionReady () |
void | slotShowMessageReady () |
void | slotRefreshTimer () |
void | slotSetupAccount () |
void | slotShowMainWindow () |
Protected Member Functions | |
void | initActions () |
void | showStatusMessage (const QString &text) |
virtual bool | queryClose () |
void | initStatusBar () |
void | refreshFilterStatusBar () |
void | startAutomaticRefresh (bool initiate=false) |
void | stopAutomaticRefresh () |
void | handleNewMails () |
void | handleNoNewMails () |
bool | askCloseConfirmation () |
Protected Attributes | |
FilterLog | fLog |
This class serves as the main window for kshowmail. For my lovely Stephie!
Definition at line 70 of file kshowmail.h.
KShowmail::KShowmail | ( | ) |
Default Constructor
Definition at line 20 of file kshowmail.cpp.
KShowmail::~KShowmail | ( | ) | [virtual] |
Default Destructor
Definition at line 110 of file kshowmail.cpp.
void KShowmail::initActions | ( | ) | [protected] |
sets up the actions.
Definition at line 114 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 495 of file kshowmail.cpp.
bool KShowmail::queryClose | ( | ) | [protected, virtual] |
Called before the main window is closed. Reimplemented methode of KMainWindow.
Definition at line 450 of file kshowmail.cpp.
void KShowmail::initStatusBar | ( | ) | [protected] |
Initializes the statusbar
Definition at line 501 of file kshowmail.cpp.
void KShowmail::refreshFilterStatusBar | ( | ) | [protected] |
Refreshes the status bar filter field.
Definition at line 589 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 619 of file kshowmail.cpp.
void KShowmail::stopAutomaticRefresh | ( | ) | [protected] |
Stops the refresh timer.
Definition at line 665 of file kshowmail.cpp.
void KShowmail::handleNewMails | ( | ) | [protected] |
Handles all actions for new mails
Definition at line 694 of file kshowmail.cpp.
void KShowmail::handleNoNewMails | ( | ) | [protected] |
Handles all actions when no new mails are arrived
Definition at line 757 of file kshowmail.cpp.
bool KShowmail::askCloseConfirmation | ( | ) | [protected] |
Asks the user to confirm the closing
Definition at line 775 of file kshowmail.cpp.
void KShowmail::slotRefresh | ( | ) | [protected, slot] |
Connected with m_actionRefresh. Refreshes the mail list.
Definition at line 185 of file kshowmail.cpp.
void KShowmail::slotShowHeader | ( | ) | [protected, slot] |
Shows the headers of all selected mails.
Definition at line 212 of file kshowmail.cpp.
void KShowmail::slotShowMessage | ( | ) | [protected, slot] |
Connected with action m_actionShowMessage. Shows all selected mails.
Definition at line 241 of file kshowmail.cpp.
void KShowmail::slotDelete | ( | ) | [protected, slot] |
Connected with action m_actionDelete. Deletes all selected mails.
Definition at line 279 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 341 of file kshowmail.cpp.
void KShowmail::slotShowFilterLog | ( | ) | [protected, slot] |
Shows the filter log.
Definition at line 345 of file kshowmail.cpp.
void KShowmail::slotAddToWhitelist | ( | ) | [protected, slot] |
Adds the sender of the selected mails to the whitelist
Definition at line 380 of file kshowmail.cpp.
void KShowmail::slotAddToBlacklist | ( | ) | [protected, slot] |
Adds the sender of the selected mails to the blacklist
Definition at line 356 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 403 of file kshowmail.cpp.
void KShowmail::slotSendFeedbackMail | ( | ) | [protected, slot] |
Opens the feedback dialog
Definition at line 430 of file kshowmail.cpp.
void KShowmail::slotFileQuit | ( | ) | [protected, slot] |
Calls the close() method of KShowmail to exit the application.
Definition at line 434 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 480 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 518 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 558 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 566 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 573 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 604 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 645 of file kshowmail.cpp.
void KShowmail::slotSetupAccount | ( | ) | [protected, slot] |
Connected with action actionSetupAccount
shows the setup dialog for the selected account
Definition at line 672 of file kshowmail.cpp.
void KShowmail::slotShowMainWindow | ( | ) | [protected, slot] |
Connected with newMailDlg, signal cancelClicked
Shows the main window
Definition at line 751 of file kshowmail.cpp.
FilterLog KShowmail::fLog [protected] |
The filter log.
Definition at line 118 of file kshowmail.h.