kmail

KMKernel Class Reference

Central point of coordination in KMail. More...

#include <kmkernel.h>

Inheritance diagram for KMKernel:

List of all members.


Public Slots

void dumpDeadLetters ()
void slotConfigChanged ()
void slotEmptyTrash ()
void slotRequestConfigSync ()
void slotRunBackgroundTasks ()
void slotShowConfigurationDialog ()

Signals

void configChanged ()
void folderRemoved (KMFolder *aFolder)
void onlineStatusChanged (GlobalSettings::EnumNetworkState::type)

Public Member Functions

void abortMailCheck ()
QStringList accounts ()
AccountManageracctMgr ()
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)
QValueList< QGuardedPtr
< KMFolder > > 
allFolders ()
void byteArrayToRemoteFile (const QByteArray &, const KURL &, bool overwrite=FALSE)
bool canQueryClose ()
void checkAccount (const QString &account)
void checkMail ()
void cleanup (void)
void cleanupImapFolders ()
void closeAllKMailWindows ()
void compactAllFolders ()
bool contextMenuShown () const
int dcopAddMessage (const QString &foldername, const KURL &messagefile, const QString &MsgStatusFlags=QString())
int dcopAddMessage (const QString &foldername, const QString &messagefile, const QString &MsgStatusFlags=QString())
int dcopAddMessage_fastImport (const QString &foldername, const KURL &messagefile, const QString &MsgStatusFlags=QString())
int dcopAddMessage_fastImport (const QString &foldername, const QString &messagefile, const QString &MsgStatusFlags=QString())
void dcopResetAddMessage ()
virtual QString debugScheduler ()
virtual QString debugSernum (Q_UINT32 serialNumber)
KMFolderMgrdimapFolderMgr ()
bool doSessionManagement ()
KMFolderdraftsFolder ()
void emergencyExit (const QString &reason)
void enableMailCheck ()
void expireAllFoldersNow ()
KMFilterActionDictfilterActionDict ()
KMFilterMgrfilterMgr ()
KMFolderfindFolderById (const QString &idString)
bool firstInstance ()
bool firstStart ()
bool folderIsDraftOrOutbox (const KMFolder *)
bool folderIsDrafts (const KMFolder *)
bool folderIsSentMailFolder (const KMFolder *)
bool folderIsTemplates (const KMFolder *)
bool folderIsTrash (KMFolder *)
QStringList folderList () const
KMFolderMgrfolderMgr ()
DCOPRef getFolder (const QString &vpath)
virtual QString getFrom (Q_UINT32 serialNumber)
KMMainWidgetgetKMMainWidget ()
unsigned long getNextMsgSerNum ()
bool handleCommandLine (bool noArgsOpensReader)
bool haveSystemTrayApplet ()
KMailICalIfaceImpliCalIface ()
KPIM::IdentityManager * identityManager ()
KMFolderMgrimapFolderMgr ()
::KIMProxy * imProxy ()
KMFolderinboxFolder ()
void init ()
void initFolders (KConfig *cfg)
JobSchedulerjobScheduler ()
void kmailMsgHandler (QtMsgType aType, const char *aMsg)
 KMKernel (QObject *parent=0, const char *name=0)
void loadProfile (const QString &path)
bool mailCheckAborted () const
KMainWindowmainWin ()
void messageCountChanged ()
KMMsgIndexmsgIndex ()
KMail::MessageSendermsgSender ()
QTextCodecnetworkCodec ()
DCOPRef newMessage (const QString &to, const QString &cc, const QString &bcc, bool hidden, bool useFolderId, const KURL &messageFile, const KURL &attachURL)
DCOPRef openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden)
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)
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 KURL &messageFile)
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, 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::List &attachURLs, const QCStringList &customHeaders)
void openReader ()
KMFolderoutboxFolder ()
virtual void pauseBackgroundJobs ()
KMFilterMgrpopFilterMgr ()
QString previousVersion ()
void quit ()
void raise ()
void readConfig ()
void recoverDeadLetters ()
bool registerSystemTrayApplet (const KSystemTray *)
virtual void resumeBackgroundJobs ()
void resumeNetworkJobs ()
void saveToProfile (const QString &path) const
KMFolderMgrsearchFolderMgr ()
void selectFolder (QString folder)
int sendCertificate (const QString &to, const QByteArray &certData)
KMFoldersentFolder ()
void serverReady (bool flag)
void setContextMenuShown (bool flag)
void setDefaultTransport (const QString &transport)
void setFirstInstance (bool value)
void setShuttingDown (bool flag)
void setStartingUp (bool flag)
void setXmlGuiInstance (KInstance *instance)
virtual bool showMail (Q_UINT32 serialNumber, QString messageId)
bool shuttingDown ()
bool startingUp ()
void stopNetworkJobs ()
KMFoldertemplatesFolder ()
void testDir (const char *_name)
int timeOfLastMessageCountChange () const
bool transferMail (QString &destinationDir)
KMFoldertrashFolder ()
UndoStackundoStack ()
void ungrabPtrKb (void)
bool unregisterSystemTrayApplet (const KSystemTray *)
int viewMessage (const KURL &messageFile)
KWallet::Wallet * wallet ()
KPIM::ThreadWeaver::Weaver * weaver ()
KInstance * xmlGuiInstance ()
 ~KMKernel ()

Static Public Member Functions

static bool askToGoOnline ()
static KConfig * config ()
static bool isOffline ()
static QString localDataPath ()
static KMKernelself ()

Protected Slots

void slotDataReq (KIO::Job *, QByteArray &)
void slotResult (KIO::Job *)

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.


Constructor & Destructor Documentation

KMKernel::KMKernel ( QObject parent = 0,
const char *  name = 0 
)

Definition at line 98 of file kmkernel.cpp.

KMKernel::~KMKernel (  ) 

Definition at line 171 of file kmkernel.cpp.


Member Function Documentation

void KMKernel::abortMailCheck (  ) 

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 2310 of file kmkernel.cpp.

QStringList KMKernel::accounts (  )  [virtual]

Implements KMailIface.

Definition at line 322 of file kmkernel.cpp.

AccountManager* KMKernel::acctMgr (  )  [inline]

Definition at line 289 of file kmkernel.h.

void KMKernel::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 
)

Definition at line 1875 of file kmkernel.cpp.

QValueList< QGuardedPtr< KMFolder > > KMKernel::allFolders (  ) 

Returns:
a list of all folders from all folder managers.

Definition at line 2376 of file kmkernel.cpp.

bool KMKernel::askToGoOnline (  )  [static]

A static helper function that asks the user if they want to go online.

Returns:
true if the user wants to go online

false if the user wants to stay offline

Definition at line 1236 of file kmkernel.cpp.

void KMKernel::byteArrayToRemoteFile ( const QByteArray aData,
const KURL &  aURL,
bool  overwrite = FALSE 
)

Definition at line 1892 of file kmkernel.cpp.

bool KMKernel::canQueryClose (  )  [virtual]

Implements KMailIface.

Definition at line 2315 of file kmkernel.cpp.

void KMKernel::checkAccount ( const QString account  )  [virtual]

Implements KMailIface.

Definition at line 327 of file kmkernel.cpp.

void KMKernel::checkMail (  )  [virtual]

dcop callable stuff

Implements KMailIface.

Definition at line 317 of file kmkernel.cpp.

void KMKernel::cleanup ( void   ) 

Definition at line 1657 of file kmkernel.cpp.

void KMKernel::cleanupImapFolders (  ) 

Definition at line 1545 of file kmkernel.cpp.

void KMKernel::closeAllKMailWindows (  ) 

Definition at line 1644 of file kmkernel.cpp.

void KMKernel::compactAllFolders (  )  [virtual]

Compact all folders, used for the gui action (and from DCOP).

Implements KMailIface.

Definition at line 2276 of file kmkernel.cpp.

KConfig * KMKernel::config (  )  [static]

Definition at line 2177 of file kmkernel.cpp.

void KMKernel::configChanged (  )  [signal]

bool KMKernel::contextMenuShown (  )  const [inline]

Definition at line 347 of file kmkernel.h.

int KMKernel::dcopAddMessage ( const QString foldername,
const KURL &  messagefile,
const QString MsgStatusFlags = QString() 
) [virtual]

Implements KMailIface.

Definition at line 778 of file kmkernel.cpp.

int KMKernel::dcopAddMessage ( const QString foldername,
const QString messagefile,
const QString MsgStatusFlags = QString() 
) [virtual]

Parameters:
foldername the requested foldername in kmail (at the zero level in the foldertree.
messagefile the name of the filename (local) with the message to be added.
MsgStatusFlags a string coding the status of the message with a char for each status e.g. a 'N' for new this param is optional
Returns:
=1, message added to folder, if folder doesn't exist, folder has been created. =0, an error occurred. =-1, couldn't create folder and it didn't exist =-2, couldn't read messageFile. =-3, Can't allocate memory. =-4, Message already exists in folder.

Implements KMailIface.

Definition at line 772 of file kmkernel.cpp.

int KMKernel::dcopAddMessage_fastImport ( const QString foldername,
const KURL &  messagefile,
const QString MsgStatusFlags = QString() 
) [virtual]

Implements KMailIface.

Definition at line 960 of file kmkernel.cpp.

int KMKernel::dcopAddMessage_fastImport ( const QString foldername,
const QString messagefile,
const QString MsgStatusFlags = QString() 
) [virtual]

add messages without rejecting duplicates

Implements KMailIface.

Definition at line 953 of file kmkernel.cpp.

void KMKernel::dcopResetAddMessage (  )  [virtual]

Clears the list of added message ids which is used to filter out duplicates.

Implements KMailIface.

Definition at line 947 of file kmkernel.cpp.

QString KMKernel::debugScheduler (  )  [virtual]

Implements KMailIface.

Definition at line 1156 of file kmkernel.cpp.

QString KMKernel::debugSernum ( Q_UINT32  serialNumber  )  [virtual]

Implements KMailIface.

Definition at line 1162 of file kmkernel.cpp.

KMFolderMgr* KMKernel::dimapFolderMgr (  )  [inline]

Definition at line 286 of file kmkernel.h.

bool KMKernel::doSessionManagement (  ) 

Definition at line 1627 of file kmkernel.cpp.

KMFolder* KMKernel::draftsFolder (  )  [inline]

Definition at line 281 of file kmkernel.h.

void KMKernel::dumpDeadLetters (  )  [slot]

Save contents of all open composer widnows to ~/dead.letter.

Definition at line 1859 of file kmkernel.cpp.

void KMKernel::emergencyExit ( const QString reason  ) 

Definition at line 2019 of file kmkernel.cpp.

void KMKernel::enableMailCheck (  ) 

Set the state of the abort requested variable to false, i.e.

enable mail checking again

Definition at line 2300 of file kmkernel.cpp.

void KMKernel::expireAllFoldersNow (  ) 

Expire all folders, used for the gui action.

Definition at line 2269 of file kmkernel.cpp.

KMFilterActionDict* KMKernel::filterActionDict (  )  [inline]

Definition at line 292 of file kmkernel.h.

KMFilterMgr* KMKernel::filterMgr (  )  [inline]

Definition at line 290 of file kmkernel.h.

KMFolder * KMKernel::findFolderById ( const QString idString  ) 

Find a folder by ID string in all folder managers.

Definition at line 2283 of file kmkernel.cpp.

bool KMKernel::firstInstance (  )  [inline]

Definition at line 253 of file kmkernel.h.

bool KMKernel::firstStart (  )  [inline, virtual]

Implements KMailIface.

Definition at line 309 of file kmkernel.h.

bool KMKernel::folderIsDraftOrOutbox ( const KMFolder folder  ) 

Returns true if the folder is either the outbox or one of the drafts-folders.

Definition at line 2038 of file kmkernel.cpp.

bool KMKernel::folderIsDrafts ( const KMFolder folder  ) 

Definition at line 2046 of file kmkernel.cpp.

bool KMKernel::folderIsSentMailFolder ( const KMFolder folder  ) 

Returns true if the folder is one of the sent-mail folders.

Definition at line 2096 of file kmkernel.cpp.

bool KMKernel::folderIsTemplates ( const KMFolder folder  ) 

Definition at line 2064 of file kmkernel.cpp.

bool KMKernel::folderIsTrash ( KMFolder folder  ) 

Definition at line 2082 of file kmkernel.cpp.

QStringList KMKernel::folderList (  )  const [virtual]

Implements KMailIface.

Definition at line 1056 of file kmkernel.cpp.

KMFolderMgr* KMKernel::folderMgr (  )  [inline]

Definition at line 284 of file kmkernel.h.

void KMKernel::folderRemoved ( KMFolder aFolder  )  [signal]

DCOPRef KMKernel::getFolder ( const QString vpath  )  [virtual]

Implements KMailIface.

Definition at line 1067 of file kmkernel.cpp.

QString KMKernel::getFrom ( Q_UINT32  serialNumber  )  [virtual]

DCOP-enabled for use in kaddressbook drop.

Implements KMailIface.

Definition at line 1137 of file kmkernel.cpp.

KMMainWidget * KMKernel::getKMMainWidget (  ) 

Get first mainwidget.

Definition at line 2218 of file kmkernel.cpp.

unsigned long KMKernel::getNextMsgSerNum (  ) 

Returns a message serial number that hasn't been used yet.

bool KMKernel::handleCommandLine ( bool  noArgsOpensReader  )  [virtual]

Reimplemented from KMailIface.

Implements KMailIface.

Definition at line 194 of file kmkernel.cpp.

bool KMKernel::haveSystemTrayApplet (  ) 

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 1992 of file kmkernel.cpp.

KMailICalIfaceImpl & KMKernel::iCalIface (  ) 

Definition at line 2189 of file kmkernel.cpp.

KPIM::IdentityManager * KMKernel::identityManager (  ) 

return the pointer to the identity manager

Definition at line 2112 of file kmkernel.cpp.

KMFolderMgr* KMKernel::imapFolderMgr (  )  [inline]

Definition at line 285 of file kmkernel.h.

KIMProxy * KMKernel::imProxy (  ) 

Get a reference to KMail's KIMProxy instance.

Returns:
a pointer to a valid KIMProxy

Definition at line 2295 of file kmkernel.cpp.

KMFolder* KMKernel::inboxFolder (  )  [inline]

Definition at line 277 of file kmkernel.h.

void KMKernel::init ( void   ) 

Definition at line 1446 of file kmkernel.cpp.

void KMKernel::initFolders ( KConfig *  cfg  ) 

Definition at line 1364 of file kmkernel.cpp.

bool KMKernel::isOffline (  )  [static]

Checks if the current network state is online or offline.

Returns:
true if the network state is offline

false if the network state is online

Definition at line 1228 of file kmkernel.cpp.

JobScheduler* KMKernel::jobScheduler (  )  [inline]

Definition at line 300 of file kmkernel.h.

void KMKernel::kmailMsgHandler ( QtMsgType  aType,
const char *  aMsg 
)

Definition at line 1834 of file kmkernel.cpp.

void KMKernel::loadProfile ( const QString path  )  [virtual]

Implements KMailIface.

Definition at line 336 of file kmkernel.cpp.

QString KMKernel::localDataPath (  )  [static]

Returns the full path of the user's local data directory for KMail.

The path ends with '/'.

Definition at line 1985 of file kmkernel.cpp.

bool KMKernel::mailCheckAborted (  )  const

Returns true IFF the user has requested that the current mail checks should be aborted.

Needs to be periodically polled.

Definition at line 2305 of file kmkernel.cpp.

KMainWindow * KMKernel::mainWin (  ) 

returns a reference to the first Mainwin or a temporary Mainwin

Definition at line 2125 of file kmkernel.cpp.

void KMKernel::messageCountChanged (  ) 

Called by the folder tree if the count of unread/total messages changed.

Definition at line 2337 of file kmkernel.cpp.

KMMsgIndex * KMKernel::msgIndex (  ) 

Definition at line 2120 of file kmkernel.cpp.

KMail::MessageSender * KMKernel::msgSender (  ) 

Definition at line 2399 of file kmkernel.cpp.

QTextCodec* KMKernel::networkCodec (  )  [inline]

Definition at line 337 of file kmkernel.h.

DCOPRef KMKernel::newMessage ( const QString to,
const QString cc,
const QString bcc,
bool  hidden,
bool  useFolderId,
const KURL &  messageFile,
const KURL &  attachURL 
)

DCOP call used by the Kontact plugin to create a new message.

Definition at line 619 of file kmkernel.cpp.

void KMKernel::onlineStatusChanged ( GlobalSettings::EnumNetworkState::type   )  [signal]

DCOPRef KMKernel::openComposer ( const QString to,
const QString cc,
const QString bcc,
const QString subject,
const QString body,
bool  hidden 
) [virtual]

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 586 of file kmkernel.cpp.

int KMKernel::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 
) [virtual]

Implements KMailIface.

Definition at line 471 of file kmkernel.cpp.

int KMKernel::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 
) [virtual]

For backward compatibility.

Deprecated:

Implements KMailIface.

Definition at line 451 of file kmkernel.cpp.

int KMKernel::openComposer ( const QString to,
const QString cc,
const QString bcc,
const QString subject,
const QString body,
int  hidden,
const KURL &  messageFile 
) [inline, virtual]

For backward compatibility.

Implements KMailIface.

Definition at line 117 of file kmkernel.h.

int KMKernel::openComposer ( const QString to,
const QString cc,
const QString bcc,
const QString subject,
const QString body,
int  hidden,
const KURL &  messageFile,
const KURL &  attachURL 
) [inline, virtual]

For backward compatibility.

Implements KMailIface.

Definition at line 110 of file kmkernel.h.

int KMKernel::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 
) [inline, virtual]

For backward compatibility.

Implements KMailIface.

Definition at line 102 of file kmkernel.h.

int KMKernel::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 
)

returns id of composer if more are opened

Definition at line 377 of file kmkernel.cpp.

void KMKernel::openReader (  )  [inline, virtual]

Implements KMailIface.

Definition at line 170 of file kmkernel.h.

KMFolder* KMKernel::outboxFolder (  )  [inline]

Definition at line 278 of file kmkernel.h.

void KMKernel::pauseBackgroundJobs (  )  [virtual]

Pauses all background jobs and does not allow new background jobs to be started.

Implements KMailIface.

Definition at line 1192 of file kmkernel.cpp.

KMFilterMgr* KMKernel::popFilterMgr (  )  [inline]

Definition at line 291 of file kmkernel.h.

QString KMKernel::previousVersion (  )  [inline]

Definition at line 310 of file kmkernel.h.

void KMKernel::quit (  ) 

Definition at line 1260 of file kmkernel.cpp.

void KMKernel::raise (  ) 

Definition at line 1082 of file kmkernel.cpp.

void KMKernel::readConfig ( void   ) 

Definition at line 1538 of file kmkernel.cpp.

void KMKernel::recoverDeadLetters (  ) 

Definition at line 1337 of file kmkernel.cpp.

bool KMKernel::registerSystemTrayApplet ( const KSystemTray applet  ) 

Definition at line 1997 of file kmkernel.cpp.

void KMKernel::resumeBackgroundJobs (  )  [virtual]

Resumes all background jobs and allows new jobs to be started.

Implements KMailIface.

Definition at line 1198 of file kmkernel.cpp.

void KMKernel::resumeNetworkJobs (  )  [virtual]

Resumes all network related jobs and enter online mode New network jobs can be started.

Implements KMailIface.

Definition at line 1214 of file kmkernel.cpp.

void KMKernel::saveToProfile ( const QString path  )  const [virtual]

Implements KMailIface.

Definition at line 340 of file kmkernel.cpp.

KMFolderMgr* KMKernel::searchFolderMgr (  )  [inline]

Definition at line 287 of file kmkernel.h.

void KMKernel::selectFolder ( QString  folder  )  [virtual]

Implements KMailIface.

Definition at line 2195 of file kmkernel.cpp.

static KMKernel* KMKernel::self (  )  [inline, static]

normal control stuff

Definition at line 232 of file kmkernel.h.

int KMKernel::sendCertificate ( const QString to,
const QByteArray certData 
) [virtual]

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 679 of file kmkernel.cpp.

KMFolder* KMKernel::sentFolder (  )  [inline]

Definition at line 279 of file kmkernel.h.

void KMKernel::serverReady ( bool  flag  )  [inline]

Definition at line 315 of file kmkernel.h.

void KMKernel::setContextMenuShown ( bool  flag  )  [inline]

Definition at line 346 of file kmkernel.h.

void KMKernel::setDefaultTransport ( const QString transport  )  [virtual]

DCOP call used to set the default transport.

Implements KMailIface.

Definition at line 575 of file kmkernel.cpp.

void KMKernel::setFirstInstance ( bool  value  )  [inline]

Definition at line 254 of file kmkernel.h.

void KMKernel::setShuttingDown ( bool  flag  )  [inline]

Definition at line 314 of file kmkernel.h.

void KMKernel::setStartingUp ( bool  flag  )  [inline]

Definition at line 312 of file kmkernel.h.

void KMKernel::setXmlGuiInstance ( KInstance *  instance  )  [inline]

Definition at line 275 of file kmkernel.h.

bool KMKernel::showMail ( Q_UINT32  serialNumber,
QString  messageId 
) [virtual]

Shows the specified message in a separate message window.

Parameters:
serialNumber the serial number of the message to be shown.
messageId this parameter is ignored.

Implements KMailIface.

Definition at line 1088 of file kmkernel.cpp.

bool KMKernel::shuttingDown (  )  [inline]

Definition at line 313 of file kmkernel.h.

void KMKernel::slotConfigChanged (  )  [slot]

Definition at line 1977 of file kmkernel.cpp.

void KMKernel::slotDataReq ( KIO::Job *  job,
QByteArray data 
) [protected, slot]

Definition at line 1905 of file kmkernel.cpp.

void KMKernel::slotEmptyTrash (  )  [slot]

empty all the trash bins

Empties all trash folders.

Definition at line 2156 of file kmkernel.cpp.

void KMKernel::slotRequestConfigSync (  )  [slot]

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 1949 of file kmkernel.cpp.

void KMKernel::slotResult ( KIO::Job *  job  )  [protected, slot]

Definition at line 1930 of file kmkernel.cpp.

void KMKernel::slotRunBackgroundTasks (  )  [slot]

Definition at line 2241 of file kmkernel.cpp.

void KMKernel::slotShowConfigurationDialog (  )  [slot]

Definition at line 1954 of file kmkernel.cpp.

bool KMKernel::startingUp (  )  [inline]

Definition at line 311 of file kmkernel.h.

void KMKernel::stopNetworkJobs (  )  [virtual]

Stops all network related jobs and enter offline mode New network jobs cannot be started.

Implements KMailIface.

Definition at line 1204 of file kmkernel.cpp.

KMFolder* KMKernel::templatesFolder (  )  [inline]

Definition at line 282 of file kmkernel.h.

void KMKernel::testDir ( const char *  _name  ) 

Definition at line 1311 of file kmkernel.cpp.

int KMKernel::timeOfLastMessageCountChange (  )  const [virtual]

Implements KMailIface.

Definition at line 2342 of file kmkernel.cpp.

bool KMKernel::transferMail ( QString destinationDir  ) 

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 1738 of file kmkernel.cpp.

KMFolder* KMKernel::trashFolder (  )  [inline]

Definition at line 280 of file kmkernel.h.

UndoStack* KMKernel::undoStack (  )  [inline]

Definition at line 288 of file kmkernel.h.

void KMKernel::ungrabPtrKb ( void   ) 

Definition at line 1820 of file kmkernel.cpp.

bool KMKernel::unregisterSystemTrayApplet ( const KSystemTray applet  ) 

Definition at line 2007 of file kmkernel.cpp.

int KMKernel::viewMessage ( const KURL &  messageFile  ) 

Definition at line 670 of file kmkernel.cpp.

Wallet * KMKernel::wallet (  ) 

Open KDE wallet and set it to kmail folder.

Definition at line 2347 of file kmkernel.cpp.

KPIM::ThreadWeaver::Weaver* KMKernel::weaver (  )  [inline]

Definition at line 296 of file kmkernel.h.

KInstance* KMKernel::xmlGuiInstance (  )  [inline]

Definition at line 274 of file kmkernel.h.


The documentation for this class was generated from the following files: