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 83 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) |
void | onlineStatusChanged (GlobalSettings::EnumNetworkState::type) |
Public Member Functions | |
KMKernel (QObject *parent=0, const char *name=0) | |
~KMKernel () | |
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, const QCStringList &customHeaders) |
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, const QCStringList &customHeaders) |
void | byteArrayToRemoteFile (const QByteArray &, const KURL &, bool overwrite=FALSE) |
bool | folderIsDraftOrOutbox (const KMFolder *) |
bool | folderIsDrafts (const KMFolder *) |
bool | folderIsTemplates (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 () |
KMFolder * | templatesFolder () |
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 2294 of file kmkernel.cpp. |
|
Definition at line 2358 of file kmkernel.cpp. |
|
A static helper function that asks the user if they want to go online.
Definition at line 1229 of file kmkernel.cpp. |
|
dcop callable stuff
Implements KMailIface. Definition at line 317 of file kmkernel.cpp. |
|
Compact all folders, used for the gui action (and from DCOP).
Implements KMailIface. Definition at line 2260 of file kmkernel.cpp. |
|
Implements KMailIface. Definition at line 762 of file kmkernel.cpp. |
|
add messages without rejecting duplicates
Implements KMailIface. Definition at line 943 of file kmkernel.cpp. |
|
Clears the list of added message ids which is used to filter out duplicates.
Implements KMailIface. Definition at line 937 of file kmkernel.cpp. |
|
Save contents of all open composer widnows to ~/dead.letter.
Definition at line 1852 of file kmkernel.cpp. |
|
Set the state of the abort requested variable to false, i.e. enable mail checking again Definition at line 2284 of file kmkernel.cpp. |
|
Expire all folders, used for the gui action.
Definition at line 2253 of file kmkernel.cpp. |
|
Find a folder by ID string in all folder managers.
Definition at line 2267 of file kmkernel.cpp. |
|
Returns true if the folder is either the outbox or one of the drafts-folders.
Definition at line 2022 of file kmkernel.cpp. |
|
Returns true if the folder is one of the sent-mail folders.
Definition at line 2080 of file kmkernel.cpp. |
|
DCOP-enabled for use in kaddressbook drop.
Implements KMailIface. Definition at line 1128 of file kmkernel.cpp. |
|
Get first mainwidget.
Definition at line 2202 of file kmkernel.cpp. |
|
Returns a message serial number that hasn't been used yet.
|
|
Reimplemented from KMailIface.
Implements KMailIface. Definition at line 194 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 1976 of file kmkernel.cpp. |
|
return the pointer to the identity manager
Definition at line 2096 of file kmkernel.cpp. |
|
Get a reference to KMail's KIMProxy instance.
Definition at line 2279 of file kmkernel.cpp. |
|
Checks if the current network state is online or offline.
Definition at line 1221 of file kmkernel.cpp. |
|
Returns the full path of the user's local data directory for KMail. The path ends with '/'. Definition at line 1969 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 2289 of file kmkernel.cpp. |
|
returns a reference to the first Mainwin or a temporary Mainwin
Definition at line 2109 of file kmkernel.cpp. |
|
Called by the folder tree if the count of unread/total messages changed.
Definition at line 2319 of file kmkernel.cpp. |
|
DCOP call used by the Kontact plugin to create a new message.
Definition at line 609 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 576 of file kmkernel.cpp. |
|
For backward compatibility.
Implements KMailIface. Definition at line 443 of file kmkernel.cpp. |
|
For backward compatibility.
Implements KMailIface. Definition at line 117 of file kmkernel.h. |
|
For backward compatibility.
Implements KMailIface. Definition at line 110 of file kmkernel.h. |
|
For backward compatibility.
Implements KMailIface. Definition at line 102 of file kmkernel.h. |
|
returns id of composer if more are opened
Definition at line 369 of file kmkernel.cpp. |
|
Pauses all background jobs and does not allow new background jobs to be started.
Implements KMailIface. Definition at line 1185 of file kmkernel.cpp. |
|
Resumes all background jobs and allows new jobs to be started.
Implements KMailIface. Definition at line 1191 of file kmkernel.cpp. |
|
Resumes all network related jobs and enter online mode New network jobs can be started.
Implements KMailIface. Definition at line 1207 of file kmkernel.cpp. |
|
normal control stuff
Definition at line 232 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 669 of file kmkernel.cpp. |
|
DCOP call used to set the default transport.
Implements KMailIface. Definition at line 565 of file kmkernel.cpp. |
|
Shows the specified message in a separate message window.
Implements KMailIface. Definition at line 1078 of file kmkernel.cpp. |
|
empty all the trash bins
Definition at line 2140 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 1942 of file kmkernel.cpp. |
|
Stops all network related jobs and enter offline mode New network jobs cannot be started.
Implements KMailIface. Definition at line 1197 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 1731 of file kmkernel.cpp. |
|
Open KDE wallet and set it to kmail folder.
Definition at line 2329 of file kmkernel.cpp. |
The documentation for this class was generated from the following files: