ConfigList Class Reference

#include <configlist.h>

List of all members.

Signals

void sigConfigChanged ()
void sigDeleteReady ()
void sigShowBodiesReady ()
void sigMessageWindowOpened ()
void sigAllMessageWindowsClosed ()
void sigRefreshReady ()

Public Member Functions

 ConfigList ()
virtual ~ConfigList ()
void refreshSetup (KListView *view)
int getRefreshTimeInterval () const
void setRefreshTimeInterval (unsigned int interval)
bool AutoRefreshOn () const
void setConfirmDeletion (bool confirm)
bool confirmDeletion ()
bool confirmClose () const
bool startMinimized () const
bool closeToTray () const
bool minimizesToTray () const
bool showConnectionErrors () const
void setAllowHTML (bool allowHTML)
bool allowHTML () const
bool hasActiveAccounts ()
uint getTimeoutTime () const
void setTimeoutTime (uint time)
ConfigElemgetSelectedAccount ()
void deleteSelectedMails ()
void connectAccounts ()
QStringList getSelectedSubjects () const
bool hasSelectedMails ()
void showSelectedMails ()
void refreshMailLists ()
int getNumberNewMails ()
int getNumberMails ()
long getTotalSize ()
void fillMailListView (KshowmailView *view)
bool showMainWindowForNewMails ()
bool showAlertMessageForNewMails ()
bool quitNoNewMails ()
bool minimizeMainWindowNoNewMails ()
int getInitTime ()
void setInitTime (int time)
bool hasInitTime ()
void refreshAccountList ()
void killPOP3Jobs ()
void showSelectedHeaders ()
void executeNewMailCommand ()
bool keepNew ()
void printSetup ()
void saveOptions ()
void readStoredMails ()
bool setItem (const char *item)
void setList (QListView *list)
void beep ()
void playSound ()
void playSound (const char *file)
void applyFilters ()

Protected Slots

void slotAccountConfigChanged ()
void slotCheckDeletionState (QString account)
void slotCheckShowBodiesState (QString account)
void slotMessageWindowOpened ()
void slotMessageWindowClosed ()
void slotCheckRefreshState (QString account)

Protected Member Functions

virtual QCollection::Item newItem (QCollection::Item item)
virtual int compareItems (QCollection::Item item1, QCollection::Item item2)
bool hasAccount (const QString &name) const
ConfigElemgetAccount (const QString &name) const

Private Attributes

KConfig * config
int m_nIntervalTimer
uint m_nPop3Timer
AccountTaskMap_Type AccountDeletionMap
AccountTaskMap_Type AccountShowBodiesMap
AccountTaskMap_Type AccountRefreshMap
bool m_bConfirmDelete
bool m_bAllowHTML
int ctrOpenMessageWindows
int m_nInitTimer
bool m_bShowMessage
bool m_bShowMainWindow
bool m_bBeep
bool m_bSound
QString m_strSoundFile
bool m_bCommand
QString m_strCommandPath
bool m_bTerminate
bool m_bMinimize
bool m_bShowConnectionErrors
bool m_bConfirmClose
bool m_bStartMinimized
bool m_bCloseMinimizes
bool m_bMinimizeToTray
bool m_bKeepNew


Detailed Description

Contains the application and account settings. The account settings are stored in ConfigElem objects.
Author:
Eggert Ehmke

Ulrich Weigelt

Definition at line 57 of file configlist.h.


Constructor & Destructor Documentation

ConfigList::ConfigList (  ) 

Constructor.

Definition at line 34 of file configlist.cpp.

References ctrOpenMessageWindows, m_bBeep, m_bCloseMinimizes, m_bCommand, m_bConfirmClose, m_bConfirmDelete, m_bKeepNew, m_bMinimize, m_bMinimizeToTray, m_bShowConnectionErrors, m_bShowMainWindow, m_bShowMessage, m_bSound, m_bStartMinimized, m_bTerminate, m_nInitTimer, m_nIntervalTimer, and m_nPop3Timer.

virtual ConfigList::~ConfigList (  )  [inline, virtual]

Destructor

Definition at line 72 of file configlist.h.


Member Function Documentation

void ConfigList::refreshSetup ( KListView *  view  ) 

Reads the setup from the configuration file (kshowmailrc) and sets the properties.

Parameters:
view pointer to the account list view

Definition at line 751 of file configlist.cpp.

References config, connectAccounts(), Encryption::decrypt(), getAccount(), ConfigElem::getAccountName(), KWalletAccess::getPassword(), hasAccount(), m_bAllowHTML, m_bBeep, m_bCloseMinimizes, m_bCommand, m_bConfirmClose, m_bConfirmDelete, m_bKeepNew, m_bMinimize, m_bMinimizeToTray, m_bShowConnectionErrors, m_bShowMainWindow, m_bShowMessage, m_bSound, m_bStartMinimized, m_bTerminate, m_nInitTimer, m_nIntervalTimer, m_nPop3Timer, m_strCommandPath, m_strSoundFile, ConfigElem::setActive(), ConfigElem::setHost(), setList(), ConfigElem::setPassword(), ConfigElem::setPasswordStorage(), ConfigElem::setPort(), ConfigElem::setProtocol(), and ConfigElem::setUser().

Referenced by KShowMailApp::KShowMailApp(), and KShowMailApp::slotConfChanged().

int ConfigList::getRefreshTimeInterval (  )  const

Returns the auto refresh time interval.

Returns:
refresh time interval [minutes]

Definition at line 200 of file configlist.cpp.

References m_nIntervalTimer.

Referenced by KShowMailApp::initNextRefresh().

void ConfigList::setRefreshTimeInterval ( unsigned int  interval  ) 

Sets the auto refresh time interval.

Parameters:
interval the new time interval [minutes]

Definition at line 205 of file configlist.cpp.

References m_nIntervalTimer.

bool ConfigList::AutoRefreshOn (  )  const

Returns whether auto refresh is on.

Returns:
TRUE - auto refresh is on; FALSE - auto refresh is off

Definition at line 210 of file configlist.cpp.

References m_nIntervalTimer.

Referenced by KShowMailApp::initFirstRefresh(), and KShowMailApp::initNextRefresh().

void ConfigList::setConfirmDeletion ( bool  confirm  ) 

Sets whether the user has to confirm a deletion.

Parameters:
confirm TRUE - user has to confirm; FALSE - the user does not have to confirm

Definition at line 379 of file configlist.cpp.

References m_bConfirmDelete.

bool ConfigList::confirmDeletion (  ) 

Returns whether the user has to confirm a deletion.

Returns:
TRUE - the user has to confirm

FALSE - the user does not have to confirm

Definition at line 384 of file configlist.cpp.

References m_bConfirmDelete.

Referenced by KShowMailApp::slotDelete().

bool ConfigList::confirmClose (  )  const

Returns whether the user has to confirm window close.

Returns:
TRUE - user has to confirm

FALSE - user does not have to confirm

Definition at line 895 of file configlist.cpp.

References m_bConfirmClose.

Referenced by KShowMailApp::askCloseConfirmation().

bool ConfigList::startMinimized (  )  const

Returns whether the app shall start minimized.

Returns:
TRUE - start minimized

FALSE - don't start minimized

Definition at line 900 of file configlist.cpp.

References m_bStartMinimized.

Referenced by UniqueApp::newInstance().

bool ConfigList::closeToTray (  )  const

Returns whether the close button leaves the application running in tray.

Returns:
TRUE - leaves running

FALSE - app will be closed

Definition at line 905 of file configlist.cpp.

References m_bCloseMinimizes.

Referenced by KShowMailApp::queryClose().

bool ConfigList::minimizesToTray (  )  const

Returns whether minimizes to the tray rather than to the taskbar.

Returns:
TRUE - minimizes to the tray

FALSE - minimizes to the taskbar

Definition at line 910 of file configlist.cpp.

References m_bMinimizeToTray.

Referenced by KShowMailApp::event().

bool ConfigList::showConnectionErrors (  )  const

Returns whether connection errors will be shown during refresh.

Returns:
TRUE - show errors

FALSE - don't show errors

Definition at line 915 of file configlist.cpp.

References m_bShowConnectionErrors.

Referenced by ConfigElem::slotHeaderDownloaded(), ConfigElem::slotSizesReceived(), ConfigElem::slotTimeout(), and ConfigElem::slotUIDsReceived().

void ConfigList::setAllowHTML ( bool  allowHTML  ) 

Sets whether the mail show dialog has to use HTML.

Parameters:
allowHTML TRUE - the dialog has to use HTML; FALSE - the dialog must not use HTML
See also:
m_bAllowHTML

Definition at line 487 of file configlist.cpp.

References m_bAllowHTML.

bool ConfigList::allowHTML (  )  const

Returns whether the mail show dialog has to use HTML.

Returns:
TRUE - the dialog has to use HTML

FALSE - the dialog must not use HTML

See also:
m_bAllowHTML

Definition at line 492 of file configlist.cpp.

References m_bAllowHTML.

Referenced by ConfigElem::slotBodyDownloaded().

bool ConfigList::hasActiveAccounts (  ) 

Returns whether there are active accounts. Doesn't set the current account.

Returns:
TRUE - Yes, there are active accounts (at least one :o) ); FALSE - no active accounts

Definition at line 215 of file configlist.cpp.

References ConfigElem::isActive().

uint ConfigList::getTimeoutTime (  )  const

Returns the number of seconds the application will be wait for a pop3 job.

Returns:
seconds to timeout

Definition at line 246 of file configlist.cpp.

References m_nPop3Timer.

Referenced by ConfigElem::getTimeoutTime().

void ConfigList::setTimeoutTime ( uint  time  ) 

Sets the number of seconds the application will be wait for a pop3 job. Minimum time is POP3_MINIMUM_TIMEOUT_TIME seconds.

Parameters:
time seconds to timeout
See also:
constants.h

Definition at line 251 of file configlist.cpp.

References m_nPop3Timer.

ConfigElem * ConfigList::getSelectedAccount (  ) 

Returns the first account, for which an appropriate item is selected in the account list view.

Returns:
pointer to the selected account object

NULL - no account is selected

Definition at line 259 of file configlist.cpp.

References ConfigElem::isSelected().

Referenced by KshowmailView::slotAccountClicked(), and KShowMailApp::slotSetupAccount().

void ConfigList::deleteSelectedMails (  ) 

Deletes all selected mails from the servers and the mail lists. This just starts the deletion and returns after then. When all accounts are ready the signal sigDeleteReady will be emitted.

Definition at line 294 of file configlist.cpp.

References AccountDeletionMap, connectAccounts(), ConfigElem::deleteSelectedMails(), and ConfigElem::getAccountName().

Referenced by KShowMailApp::slotDelete().

void ConfigList::connectAccounts (  ) 

Connects the signals of the accounts with the slots of this class. It is necessary to do this after an account has been appended to the list and it is a good idea to call this method before you invoke an operation on an account that may emit a signal. The reason is that the pointer list seemingly often changes the adresses of the inserted accounts. After that the connections are corrupt.

Definition at line 356 of file configlist.cpp.

References sigConfigChanged(), sigDeleteReady(), sigMessageWindowOpened(), sigRefreshReady(), sigShowBodiesReady(), slotAccountConfigChanged(), slotCheckDeletionState(), slotCheckRefreshState(), slotCheckShowBodiesState(), slotMessageWindowClosed(), and slotMessageWindowOpened().

Referenced by deleteSelectedMails(), refreshMailLists(), refreshSetup(), and showSelectedMails().

QStringList ConfigList::getSelectedSubjects (  )  const

Returns the subjects of the selected mails.

Returns:
subjects of selected mails

Definition at line 389 of file configlist.cpp.

References ConfigElem::getSelectedSubjects().

Referenced by KShowMailApp::slotDelete().

bool ConfigList::hasSelectedMails (  ) 

Returns whether there are mails in this list which are selected in the list view.

Returns:
TRUE - there are selected mails

FALSE - there aren't selected mails

Definition at line 407 of file configlist.cpp.

References ConfigElem::hasSelectedMails().

Referenced by KShowMailApp::slotDelete(), and KShowMailApp::slotShowMessage().

void ConfigList::showSelectedMails (  ) 

Downloads and shows the bodies of the selected mails. This just starts the download and returns after then. When all bodies are downloaded and shown the signal sigShowBodiesReady will be emitted.

Definition at line 425 of file configlist.cpp.

References AccountShowBodiesMap, connectAccounts(), ConfigElem::getAccountName(), and ConfigElem::showSelectedMails().

Referenced by KShowMailApp::slotShowMessage().

void ConfigList::refreshMailLists (  ) 

Refreshes the mail list of all accounts. This just starts the refresh and returns after then. When all accounts have refreshed their mail list the signal sigRefreshReady will be emitted.

Definition at line 522 of file configlist.cpp.

References AccountRefreshMap, connectAccounts(), ConfigElem::getAccountName(), ConfigElem::refreshMailList(), and sigRefreshReady().

Referenced by KShowMailApp::slotRefresh().

int ConfigList::getNumberNewMails (  ) 

Returns the number of new mails.

Returns:
number of new mails

Definition at line 590 of file configlist.cpp.

References ConfigElem::getNumberNewMails().

Referenced by KShowMailApp::slotRefreshReady(), and KShowMailApp::slotRefreshView().

int ConfigList::getNumberMails (  ) 

Returns the number of mails.

Returns:
number of mails

Definition at line 608 of file configlist.cpp.

References ConfigElem::getNumberMails().

Referenced by KShowMailApp::slotRefreshView().

long ConfigList::getTotalSize (  ) 

Returns the total size of all mails.

Returns:
total size

Definition at line 626 of file configlist.cpp.

References ConfigElem::getTotalSize().

Referenced by KShowMailApp::slotRefreshView().

void ConfigList::fillMailListView ( KshowmailView view  ) 

Creates for every mail a list view item and inserts it into the mail list view.

Parameters:
view pointer to the application view

Definition at line 644 of file configlist.cpp.

References ConfigElem::fillMailListView(), and ConfigElem::isActive().

Referenced by KShowMailApp::slotRefreshView().

bool ConfigList::showMainWindowForNewMails (  ) 

Returns whether the main window will be shown, if new mails was received.

Returns:
TRUE - main window will be shown

FALSE - main window will not be shown

Definition at line 662 of file configlist.cpp.

References m_bShowMainWindow.

Referenced by KShowMailApp::slotRefreshReady().

bool ConfigList::showAlertMessageForNewMails (  ) 

Returns whether an alert message will be shown if new mails were received.

Returns:
TRUE - will be shown

FALSE - will not be shown

Definition at line 667 of file configlist.cpp.

References m_bShowMessage.

Referenced by KShowMailApp::slotRefreshReady().

bool ConfigList::quitNoNewMails (  ) 

Returns whether the app will be terminated if no new mails were received.

Returns:
TRUE - will be terminated

FALSE - will not be terminated

Definition at line 672 of file configlist.cpp.

References m_bTerminate.

Referenced by KShowMailApp::slotRefreshReady().

bool ConfigList::minimizeMainWindowNoNewMails (  ) 

Returns whether the main window will be minimized, if no new mails were received.

Returns:
TRUE - main window will be minimized

FALSE - main window will not be minimized

Definition at line 677 of file configlist.cpp.

References m_bMinimize.

Referenced by KShowMailApp::slotRefreshReady().

int ConfigList::getInitTime (  ) 

Returns the configured time to the first refresh.

Returns:
time to the first refresh (seconds)

Definition at line 682 of file configlist.cpp.

References m_nInitTimer.

Referenced by KShowMailApp::initFirstRefresh().

void ConfigList::setInitTime ( int  time  ) 

Sets the time to the first refresh.

Parameters:
time time (seconds) to the first refresh

Definition at line 687 of file configlist.cpp.

References m_nInitTimer.

bool ConfigList::hasInitTime (  ) 

Returns whether a time to first refresh is configured.

Returns:
TRUE - init time configured

FALSE - no init time configured

Definition at line 695 of file configlist.cpp.

References m_nInitTimer.

Referenced by KShowMailApp::initFirstRefresh().

void ConfigList::refreshAccountList (  ) 

Refreshes the account list (number of mails and total size).

Definition at line 700 of file configlist.cpp.

References ConfigElem::refreshAccountListItem().

Referenced by KShowMailApp::slotRefreshView().

void ConfigList::killPOP3Jobs (  ) 

Kills all running pop3 jobs.

Definition at line 717 of file configlist.cpp.

References ConfigElem::killPOP3Job().

Referenced by KShowMailApp::slotStop().

void ConfigList::showSelectedHeaders (  ) 

Shows the headers of all selected mails.

Definition at line 733 of file configlist.cpp.

References ConfigElem::continueShowHeaders, ConfigElem::hasSelectedMails(), and ConfigElem::showSelectedHeaders().

Referenced by KShowMailApp::slotShowHeader().

void ConfigList::executeNewMailCommand (  ) 

Executes the configure new mail command. Does nothing, if the command option is switched off (m_bCommand == false).

Definition at line 875 of file configlist.cpp.

References m_bCommand, and m_strCommandPath.

Referenced by KShowMailApp::slotRefreshReady().

bool ConfigList::keepNew (  ) 

Returns whether all new mails will keep new status until the app is closed.

Returns:
TRUE - mails keep new status at next refresh

FALSE - mails don't keep new status at next refresh

Definition at line 890 of file configlist.cpp.

References m_bKeepNew.

Referenced by ConfigElem::slotUIDsReceived().

void ConfigList::printSetup (  ) 

Prints the setup.

Definition at line 964 of file configlist.cpp.

References ConfigElem::printSetup().

void ConfigList::saveOptions (  ) 

Saves the current mails data and the account setups. The mails data will be saved into an XML file (kshowmail.xml). The account setups will be saved into the application config file (kshowmailrc).

Definition at line 75 of file configlist.cpp.

References ConfigElem::saveOptions().

Referenced by KShowMailApp::slotSaveOptions().

void ConfigList::readStoredMails (  ) 

Reads stored mails data. At every setup saving (e.g. at exit) the mails data will be stored into the file kshowmail.xml. At application start we read this file to identify mails which are not new at first refresh.

Definition at line 980 of file configlist.cpp.

References getAccount(), and ConfigElem::readStoredMails().

Referenced by KShowMailApp::KShowMailApp().

QCollection::Item ConfigList::newItem ( QCollection::Item  item  )  [protected, virtual]

Makes a copy from the given account object and returns the pointer to it. Reimplementation of QPtrList::newItem(). Used by QPtrList to add new items.

Parameters:
item account object
Returns:
pointer to the new account object

Definition at line 70 of file configlist.cpp.

int ConfigList::compareItems ( QCollection::Item  item1,
QCollection::Item  item2 
) [protected, virtual]

Compares two ConfigElem objects. Reimplementation of QPtrList::compareItems(). Used by inSort().

Parameters:
item1 account 1
item2 account 2
Returns:
0 if account name 1 == account name 2

nonzero if account name 2 != account name 2

Definition at line 62 of file configlist.cpp.

References ConfigElem::getAccountName().

bool ConfigList::hasAccount ( const QString &  name  )  const [protected]

Returns whether the given account is in the list

Parameters:
name name of the searched account
Returns:
TRUE - account is existent

FALSE - account is not existent

Definition at line 920 of file configlist.cpp.

References ConfigElem::getAccountName().

Referenced by refreshSetup().

ConfigElem * ConfigList::getAccount ( const QString &  name  )  const [protected]

Returns the pointer to the account named like the given name.

Parameters:
name of the searched account
Returns:
account or NULL, if the account was not found

Definition at line 940 of file configlist.cpp.

References ConfigElem::getAccountName().

Referenced by readStoredMails(), and refreshSetup().

void ConfigList::slotAccountConfigChanged (  )  [protected, slot]

Connected with signal sigConfigChanged of all accounts. Emits the signal sigConfigChanged.

Definition at line 330 of file configlist.cpp.

References sigConfigChanged().

Referenced by connectAccounts().

void ConfigList::slotCheckDeletionState ( QString  account  )  [protected, slot]

Connected with signal sigDeleteReady of all accounts. When an account has sent this signal its appropriate item in AccountDeletionMap will set to FALSE. When all accounts have done the deletion it will emit signal sigDeleteReady.

Parameters:
account name of the account which has emitted the signal
See also:
AccountDeletionMap

Definition at line 335 of file configlist.cpp.

References AccountDeletionMap, and sigDeleteReady().

Referenced by connectAccounts().

void ConfigList::slotCheckShowBodiesState ( QString  account  )  [protected, slot]

Connected with signal sigShowBodiesReady of all accounts. When an account has sent this signal its appropriate item in AccountShowBodiesMap will set to FALSE. When all accounts have shown the mail it will emit signal sigShowBodiesReady.

Parameters:
account name of the account which has emitted the signal
See also:
AccountShowBodiesMap

Definition at line 462 of file configlist.cpp.

References AccountShowBodiesMap, ctrOpenMessageWindows, and sigShowBodiesReady().

Referenced by connectAccounts().

void ConfigList::slotMessageWindowOpened (  )  [protected, slot]

Connected with signal sigMessageWindowOpened of all accounts. When an account has sent this signal the counter ctrOpenMessageWindows will be incremented. When the counter was incremented from zero (the first window was opened) the signal sigMessageWindowOpened will be emitted.

See also:
ctrOpenMessageWindows

sigMessageWindowOpened

Definition at line 497 of file configlist.cpp.

References ctrOpenMessageWindows, and sigMessageWindowOpened().

Referenced by connectAccounts().

void ConfigList::slotMessageWindowClosed (  )  [protected, slot]

Connected with signal sigMessageWindowClosed of all accounts. When an account has sent this signal the counter ctrOpenMessageWindows will be decremented. When the counter has reached zero the signal sigAllMessageWindowsClosed will be emitted.

See also:
ctrOpenMessageWindows

sigAllMessageWindowsClosed

Definition at line 509 of file configlist.cpp.

References ctrOpenMessageWindows, and sigAllMessageWindowsClosed().

Referenced by connectAccounts().

void ConfigList::slotCheckRefreshState ( QString  account  )  [protected, slot]

Connected with signal sigRefreshReady of all accounts. When an account has sent this signal its appropriate item in AccountRefreshMap will set to FALSE. When all accounts have refreshed their mail list it will emit signal sigRefreshReady.

Parameters:
account name of the account which has emitted the signal
See also:
AccountRefreshMap

Definition at line 566 of file configlist.cpp.

References AccountRefreshMap, and sigRefreshReady().

Referenced by connectAccounts().

void ConfigList::sigConfigChanged (  )  [signal]

Will be emitted when the configuration of an account or of the app was changed.

Definition at line 115 of file configlist.moc.cpp.

Referenced by connectAccounts(), and slotAccountConfigChanged().

void ConfigList::sigDeleteReady (  )  [signal]

Will be emitted when all selected mails are deleted.

Definition at line 121 of file configlist.moc.cpp.

Referenced by connectAccounts(), and slotCheckDeletionState().

void ConfigList::sigShowBodiesReady (  )  [signal]

Will be emitted when all selected mails are shown.

Definition at line 127 of file configlist.moc.cpp.

Referenced by connectAccounts(), and slotCheckShowBodiesState().

void ConfigList::sigMessageWindowOpened (  )  [signal]

Will be emitted by slotMessageWindowOpened when an account has opened a window to show a mail.

See also:
slotMessageWindowOpened

Definition at line 133 of file configlist.moc.cpp.

Referenced by connectAccounts(), and slotMessageWindowOpened().

void ConfigList::sigAllMessageWindowsClosed (  )  [signal]

Will be emitted by slotMessageWindowClosed when all accounts have closed their windows to show mails.

See also:
slotMessageWindowClosed

Definition at line 139 of file configlist.moc.cpp.

Referenced by slotMessageWindowClosed().

void ConfigList::sigRefreshReady (  )  [signal]

Will be emitted, when all accounts have refreshed their mail list.

Definition at line 145 of file configlist.moc.cpp.

Referenced by connectAccounts(), refreshMailLists(), and slotCheckRefreshState().


Member Data Documentation

KConfig* ConfigList::config [private]

Connector to the configuration file

Definition at line 377 of file configlist.h.

Referenced by refreshSetup().

int ConfigList::m_nIntervalTimer [private]

Time in minutes to the next automatic refresh.

Definition at line 382 of file configlist.h.

Referenced by AutoRefreshOn(), ConfigList(), getRefreshTimeInterval(), refreshSetup(), and setRefreshTimeInterval().

uint ConfigList::m_nPop3Timer [private]

Number of seconds the application will wait for a pop3 job to complete.

Definition at line 387 of file configlist.h.

Referenced by ConfigList(), getTimeoutTime(), refreshSetup(), and setTimeoutTime().

AccountTaskMap_Type ConfigList::AccountDeletionMap [private]

This map is used by the delete methods. deleteSelectedMails() clears it and after that inserts for every account an item. The Key is the account name and the data is TRUE. When slotCheckDeletionState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have ended the deletion and will emit sigDeleteReady.

See also:
deleteSelectedMails()

slotCheckDeletionState()

Definition at line 400 of file configlist.h.

Referenced by deleteSelectedMails(), and slotCheckDeletionState().

AccountTaskMap_Type ConfigList::AccountShowBodiesMap [private]

This map is used by the methods to show the mail body. showSelectedMails() clears it and after that inserts for every account an item. The Key is the account name and the data is TRUE. When slotCheckShowBodiesState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have shown the mail body and will emit sigShowBodiesReady.

See also:
showSelectedMails()

slotCheckShowBodiesState()

Definition at line 413 of file configlist.h.

Referenced by showSelectedMails(), and slotCheckShowBodiesState().

AccountTaskMap_Type ConfigList::AccountRefreshMap [private]

This map is used by the methods to refresh the account mail lists. refreshMailLists() clears it and after that inserts for every account an item. The Key ist the account name and the data is TRUE. When slotCheckRefreshState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have refreshed their mail list and will emit sigRefreshReady.

See also:
refreshMailLists()

slotCheckRefreshState()

Definition at line 426 of file configlist.h.

Referenced by refreshMailLists(), and slotCheckRefreshState().

bool ConfigList::m_bConfirmDelete [private]

TRUE - the user has to confirm a deletion, FALSE - the user does not have to confirm a deletion

Definition at line 432 of file configlist.h.

Referenced by ConfigList(), confirmDeletion(), refreshSetup(), and setConfirmDeletion().

bool ConfigList::m_bAllowHTML [private]

TRUE - allow HTML formatting in the mail show dialog box FALSE - don't allow HTML formatting

See also:
setAllowHTML()

allowHTML()

Definition at line 440 of file configlist.h.

Referenced by allowHTML(), refreshSetup(), and setAllowHTML().

int ConfigList::ctrOpenMessageWindows [private]

Number of windows, which have been opened by the accounts to show mails. Used by slotMessageWindowOpened() and slotMessageWindowClosed().

See also:
slotMessageWindowOpened

slotMessageWindowClosed

Definition at line 448 of file configlist.h.

Referenced by ConfigList(), slotCheckShowBodiesState(), slotMessageWindowClosed(), and slotMessageWindowOpened().

int ConfigList::m_nInitTimer [private]

Contains the time (seconds) to first refresh.

See also:
setInitTime()

getInitTime()

Definition at line 455 of file configlist.h.

Referenced by ConfigList(), getInitTime(), hasInitTime(), refreshSetup(), and setInitTime().

bool ConfigList::m_bShowMessage [private]

TRUE - If a new mail is arrived an alert window will be shown.

Definition at line 460 of file configlist.h.

Referenced by ConfigList(), refreshSetup(), and showAlertMessageForNewMails().

bool ConfigList::m_bShowMainWindow [private]

TRUE - If a new mail is arrived the main window will be shown.

Definition at line 465 of file configlist.h.

Referenced by ConfigList(), refreshSetup(), and showMainWindowForNewMails().

bool ConfigList::m_bBeep [private]

TRUE - If a new mail is arrived the system will beep.

Definition at line 470 of file configlist.h.

Referenced by beep(), ConfigList(), and refreshSetup().

bool ConfigList::m_bSound [private]

TRUE - If a new mail is arrived a sound will be played.

Definition at line 475 of file configlist.h.

Referenced by ConfigList(), playSound(), and refreshSetup().

QString ConfigList::m_strSoundFile [private]

Sound file which will be played if a new mail is arrived.

Definition at line 480 of file configlist.h.

Referenced by playSound(), and refreshSetup().

bool ConfigList::m_bCommand [private]

TRUE - If a new mail is arrived a command will be executed.

Definition at line 485 of file configlist.h.

Referenced by ConfigList(), executeNewMailCommand(), and refreshSetup().

QString ConfigList::m_strCommandPath [private]

Path to command which will be executed if a new mail is arrived.

Definition at line 490 of file configlist.h.

Referenced by executeNewMailCommand(), and refreshSetup().

bool ConfigList::m_bTerminate [private]

TRUE - If no new mail is arrived the application will be ended.

Definition at line 495 of file configlist.h.

Referenced by ConfigList(), quitNoNewMails(), and refreshSetup().

bool ConfigList::m_bMinimize [private]

TRUE - If no new mail is arrived the main window will be minimized.

Definition at line 500 of file configlist.h.

Referenced by ConfigList(), minimizeMainWindowNoNewMails(), and refreshSetup().

bool ConfigList::m_bShowConnectionErrors [private]

TRUE - If a connection error occures during refresh an error message will be shown.

Definition at line 505 of file configlist.h.

Referenced by ConfigList(), refreshSetup(), and showConnectionErrors().

bool ConfigList::m_bConfirmClose [private]

TRUE - The user has to confirm window close.

Definition at line 510 of file configlist.h.

Referenced by ConfigList(), confirmClose(), and refreshSetup().

bool ConfigList::m_bStartMinimized [private]

TRUE - the app starts minimized.

Definition at line 515 of file configlist.h.

Referenced by ConfigList(), refreshSetup(), and startMinimized().

bool ConfigList::m_bCloseMinimizes [private]

TRUE - the close button leaves the application running in tray

Definition at line 520 of file configlist.h.

Referenced by closeToTray(), ConfigList(), and refreshSetup().

bool ConfigList::m_bMinimizeToTray [private]

TRUE - minimizes to the tray rather than to the taskbar

Definition at line 525 of file configlist.h.

Referenced by ConfigList(), minimizesToTray(), and refreshSetup().

bool ConfigList::m_bKeepNew [private]

TRUE - mails keep new until termination

Definition at line 530 of file configlist.h.

Referenced by ConfigList(), keepNew(), and refreshSetup().


The documentation for this class was generated from the following files:
Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  doxygen 1.5.0