kmail
KMKernel Class Reference
#include <kmkernel.h>
Inheritance diagram for KMKernel:

Detailed Description
Central point of coordination in KMail.The KMKernel class represents the core of KMail, where the different parts come together and are coordinated. It is currently also the class which exports KMail's main DCOP interfaces. The kernel is responsible for creating various (singleton) objects such as the UndoStack, the folder managers and filter manager, etc.
Definition at line 82 of file kmkernel.h.
Public Slots | |
void | dumpDeadLetters () |
void | slotRequestConfigSync () |
void | slotEmptyTrash () |
void | slotShowConfigurationDialog () |
void | slotRunBackgroundTasks () |
void | slotConfigChanged () |
Signals | |
void | configChanged () |
void | folderRemoved (KMFolder *aFolder) |
Public Member Functions | |
KMKernel (QObject *parent=0, const char *name=0) | |
void | checkMail () |
QStringList | accounts () |
void | checkAccount (const QString &account) |
int | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const KURL &messageFile, const KURL::List &attachURLs) |
int | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const KURL &messageFile, const KURL &attachURL) |
int | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const KURL &messageFile) |
int | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const QString &attachName, const QCString &attachCte, const QCString &attachData, const QCString &attachType, const QCString &attachSubType, const QCString &attachParamAttr, const QString &attachParamValue, const QCString &attachContDisp) |
int | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const QString &attachName, const QCString &attachCte, const QCString &attachData, const QCString &attachType, const QCString &attachSubType, const QCString &attachParamAttr, const QString &attachParamValue, const QCString &attachContDisp, const QCString &attachCharset) |
DCOPRef | openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden) |
void | setDefaultTransport (const QString &transport) |
DCOPRef | newMessage (const QString &to, const QString &cc, const QString &bcc, bool hidden, bool useFolderId, const KURL &messageFile, const KURL &attachURL) |
int | sendCertificate (const QString &to, const QByteArray &certData) |
void | openReader () |
int | dcopAddMessage (const QString &foldername, const QString &messagefile, const QString &MsgStatusFlags=QString()) |
int | dcopAddMessage (const QString &foldername, const KURL &messagefile, const QString &MsgStatusFlags=QString()) |
void | dcopResetAddMessage () |
int | dcopAddMessage_fastImport (const QString &foldername, const QString &messagefile, const QString &MsgStatusFlags=QString()) |
int | dcopAddMessage_fastImport (const QString &foldername, const KURL &messagefile, const QString &MsgStatusFlags=QString()) |
QStringList | folderList () const |
DCOPRef | getFolder (const QString &vpath) |
void | selectFolder (QString folder) |
int | timeOfLastMessageCountChange () const |
virtual bool | showMail (Q_UINT32 serialNumber, QString messageId) |
virtual QString | getFrom (Q_UINT32 serialNumber) |
virtual QString | debugScheduler () |
virtual QString | debugSernum (Q_UINT32 serialNumber) |
int | viewMessage (const KURL &messageFile) |
virtual void | pauseBackgroundJobs () |
virtual void | resumeBackgroundJobs () |
void | stopNetworkJobs () |
void | resumeNetworkJobs () |
void | init () |
void | readConfig () |
void | cleanupImapFolders () |
void | testDir (const char *_name) |
void | recoverDeadLetters () |
void | initFolders (KConfig *cfg) |
void | closeAllKMailWindows () |
void | cleanup (void) |
void | quit () |
bool | transferMail (QString &destinationDir) |
void | ungrabPtrKb (void) |
void | kmailMsgHandler (QtMsgType aType, const char *aMsg) |
bool | doSessionManagement () |
bool | firstInstance () |
void | setFirstInstance (bool value) |
void | action (bool mailto, bool check, const QString &to, const QString &cc, const QString &bcc, const QString &subj, const QString &body, const KURL &messageFile, const KURL::List &attach) |
void | byteArrayToRemoteFile (const QByteArray &, const KURL &, bool overwrite=FALSE) |
bool | folderIsDraftOrOutbox (const KMFolder *) |
bool | folderIsDrafts (const KMFolder *) |
bool | folderIsTrash (KMFolder *) |
bool | folderIsSentMailFolder (const KMFolder *) |
KMFolder * | findFolderById (const QString &idString) |
KInstance * | xmlGuiInstance () |
void | setXmlGuiInstance (KInstance *instance) |
KMFolder * | inboxFolder () |
KMFolder * | outboxFolder () |
KMFolder * | sentFolder () |
KMFolder * | trashFolder () |
KMFolder * | draftsFolder () |
KMFolderMgr * | folderMgr () |
KMFolderMgr * | imapFolderMgr () |
KMFolderMgr * | dimapFolderMgr () |
KMFolderMgr * | searchFolderMgr () |
UndoStack * | undoStack () |
AccountManager * | acctMgr () |
KMFilterMgr * | filterMgr () |
KMFilterMgr * | popFilterMgr () |
KMFilterActionDict * | filterActionDict () |
KMail::MessageSender * | msgSender () |
KMMsgIndex * | msgIndex () |
KPIM::ThreadWeaver::Weaver * | weaver () |
KPIM::IdentityManager * | identityManager () |
JobScheduler * | jobScheduler () |
void | compactAllFolders () |
void | expireAllFoldersNow () |
KMailICalIfaceImpl & | iCalIface () |
bool | firstStart () |
QString | previousVersion () |
bool | startingUp () |
void | setStartingUp (bool flag) |
bool | shuttingDown () |
void | setShuttingDown (bool flag) |
void | serverReady (bool flag) |
bool | haveSystemTrayApplet () |
bool | registerSystemTrayApplet (const KSystemTray *) |
bool | unregisterSystemTrayApplet (const KSystemTray *) |
bool | handleCommandLine (bool noArgsOpensReader) |
void | emergencyExit (const QString &reason) |
unsigned long | getNextMsgSerNum () |
QTextCodec * | networkCodec () |
KMainWindow * | mainWin () |
void | setContextMenuShown (bool flag) |
bool | contextMenuShown () const |
::KIMProxy * | imProxy () |
bool | mailCheckAborted () const |
void | enableMailCheck () |
void | abortMailCheck () |
bool | canQueryClose () |
void | messageCountChanged () |
KWallet::Wallet * | wallet () |
KMMainWidget * | getKMMainWidget () |
QValueList< QGuardedPtr< KMFolder > > | allFolders () |
void | raise () |
Static Public Member Functions | |
static bool | askToGoOnline () |
static bool | isOffline () |
static KMKernel * | self () |
static KConfig * | config () |
static QString | localDataPath () |
Protected Slots | |
void | slotDataReq (KIO::Job *, QByteArray &) |
void | slotResult (KIO::Job *) |
Member Function Documentation
|
Set the state of the abort requested variable to true, (to let the current jobs run, but stop when possible). This is used to cancel mail checks when closing the last mainwindow Definition at line 2198 of file kmkernel.cpp. |
|
Definition at line 2256 of file kmkernel.cpp. |
|
A static helper function that asks the user if they want to go online.
Definition at line 1168 of file kmkernel.cpp. |
|
dcop callable stuff
Implements KMailIface. Definition at line 310 of file kmkernel.cpp. |
|
Compact all folders, used for the gui action (and from DCOP).
Implements KMailIface. Definition at line 2164 of file kmkernel.cpp. |
|
Implements KMailIface. Definition at line 700 of file kmkernel.cpp. |
|
add messages without rejecting duplicates
Implements KMailIface. Definition at line 883 of file kmkernel.cpp. |
|
Clears the list of added message ids which is used to filter out duplicates.
Implements KMailIface. Definition at line 877 of file kmkernel.cpp. |
|
Save contents of all open composer widnows to ~/dead.letter.
Definition at line 1776 of file kmkernel.cpp. |
|
Set the state of the abort requested variable to false, i.e. enable mail checking again Definition at line 2188 of file kmkernel.cpp. |
|
Expire all folders, used for the gui action.
Definition at line 2157 of file kmkernel.cpp. |
|
Find a folder by ID string in all folder managers.
Definition at line 2171 of file kmkernel.cpp. |
|
Returns true if the folder is either the outbox or one of the drafts-folders.
Definition at line 1946 of file kmkernel.cpp. |
|
Returns true if the folder is one of the sent-mail folders.
Definition at line 1984 of file kmkernel.cpp. |
|
DCOP-enabled for use in kaddressbook drop Implements KMailIface. Definition at line 1070 of file kmkernel.cpp. |
|
Get first mainwidget.
Definition at line 2106 of file kmkernel.cpp. |
|
Returns a message serial number that hasn't been used yet.
|
|
Reimplemented from KMailIface.
Implements KMailIface. Definition at line 190 of file kmkernel.cpp. |
|
Returns true if we have a system tray applet. This is needed in order to know whether the application should be allowed to exit in case the last visible composer or separate message window is closed. Definition at line 1899 of file kmkernel.cpp. |
|
return the pointer to the identity manager
Definition at line 2000 of file kmkernel.cpp. |
|
Get a reference to KMail's KIMProxy instance.
Definition at line 2183 of file kmkernel.cpp. |
|
Checks if the current network state is online or offline.
Definition at line 1160 of file kmkernel.cpp. |
|
Returns the full path of the user's local data directory for KMail. The path ends with '/'. Definition at line 1892 of file kmkernel.cpp. |
|
Returns true IFF the user has requested that the current mail checks should be aborted. Needs to be periodically polled. Definition at line 2193 of file kmkernel.cpp. |
|
returns a reference to the first Mainwin or a temporary Mainwin
Definition at line 2013 of file kmkernel.cpp. |
|
Called by the folder tree if the count of unread/total messages changed.
Definition at line 2223 of file kmkernel.cpp. |
|
DCOP call used by the Kontact plugin to create a new message.
Definition at line 560 of file kmkernel.cpp. |
|
Open composer and return reference to DCOP interface of composer window. If hidden is true, the window will not be shown. If you use that option, it's your responsibility to call the send() function of the composer in order to actually send the mail. Implements KMailIface. Definition at line 533 of file kmkernel.cpp. |
|
For backward compatibility.
Implements KMailIface. Definition at line 406 of file kmkernel.cpp. |
|
For backward compatibility.
Implements KMailIface. Definition at line 107 of file kmkernel.h. |
|
For backward compatibility.
Implements KMailIface. Definition at line 100 of file kmkernel.h. |
|
returns id of composer if more are opened
Implements KMailIface. Definition at line 363 of file kmkernel.cpp. |
|
Pauses all background jobs and does not allow new background jobs to be started.
Implements KMailIface. Definition at line 1127 of file kmkernel.cpp. |
|
Resumes all background jobs and allows new jobs to be started.
Implements KMailIface. Definition at line 1133 of file kmkernel.cpp. |
|
Resumes all network related jobs and enter online mode New network jobs can be started.
Implements KMailIface. Definition at line 1148 of file kmkernel.cpp. |
|
normal control stuff
Definition at line 222 of file kmkernel.h. |
|
Send a certificate request to the CA specified in to. The certificate is stored in the byte array certData. It needs to stored according to BER and PKCS#10. This method will set content type encoding, mime types, etc. as per the MailTT specification. Implements KMailIface. Definition at line 607 of file kmkernel.cpp. |
|
DCOP call used to set the default transport.
Implements KMailIface. Definition at line 522 of file kmkernel.cpp. |
|
Shows the specified message in a separate message window.
Implements KMailIface. Definition at line 1020 of file kmkernel.cpp. |
|
empty all the trash bins
Definition at line 2044 of file kmkernel.cpp. |
|
Call this slot instead of directly KConfig::sync() to minimize the overall config writes. Calling this slot will schedule a sync of the application config file using a timer, so that many consecutive calls can be condensed into a single sync, which is more efficient. Definition at line 1865 of file kmkernel.cpp. |
|
Stops all network related jobs and enter offline mode New network jobs cannot be started.
Implements KMailIface. Definition at line 1139 of file kmkernel.cpp. |
|
Returns true if the transfer was successful, otherwise false. In any case destinationDir contains the path to the current mail storage when the method returns. Definition at line 1654 of file kmkernel.cpp. |
|
Open KDE wallet and set it to kmail folder.
Definition at line 2233 of file kmkernel.cpp. |
The documentation for this class was generated from the following files: