kmail
KMAcctCachedImap Class Reference
Inheritance diagram for KMAcctCachedImap:

Detailed Description
Definition at line 54 of file kmacctcachedimap.h.
Public Types | |
enum | GroupwareType { GroupwareNone, GroupwareKolab, GroupwareScalix } |
Public Member Functions | |
virtual | ~KMAcctCachedImap () |
virtual void | init () |
virtual void | pseudoAssign (const KMAccount *a) |
virtual void | setAutoExpunge (bool) |
virtual QString | type () const |
virtual void | processNewMail (bool interactive) |
void | killJobsForItem (KMFolderTreeItem *fti) |
virtual void | killAllJobs (bool disconnectSlave=false) |
virtual void | cancelMailCheck () |
virtual void | setImapFolder (KMFolderCachedImap *) |
KMFolderCachedImap * | imapFolder () const |
virtual void | readConfig (KConfig &config) |
virtual void | writeConfig (KConfig &config) |
virtual void | invalidateIMAPFolders () |
virtual void | invalidateIMAPFolders (KMFolderCachedImap *) |
void | addDeletedFolder (KMFolder *folder) |
void | addDeletedFolder (const QString &imapPath) |
bool | isDeletedFolder (const QString &subFolderPath) const |
bool | isPreviouslyDeletedFolder (const QString &subFolderPath) const |
QStringList | deletedFolderPaths (const QString &subFolderPath) const |
void | removeDeletedFolder (const QString &subFolderPath) |
void | addRenamedFolder (const QString &subFolderPath, const QString &oldLabel, const QString &newName) |
void | removeRenamedFolder (const QString &subFolderPath) |
QString | renamedFolder (const QString &imapPath) const |
const QMap< QString, RenamedFolder > & | renamedFolders () const |
void | addUnreadMsgCount (const KMFolderCachedImap *folder, int countUnread) |
void | addLastUnreadMsgCount (const KMFolderCachedImap *folder, int countLastUnread) |
virtual FolderStorage *const | rootFolder () const |
bool | annotationCheckPassed () |
void | setAnnotationCheckPassed (bool a) |
void | setGroupwareType (GroupwareType type) |
GroupwareType | groupwareType () const |
void | setSentCustomLoginCommand (bool value) |
bool | sentCustomLoginCommand () const |
Protected Slots | |
void | postProcessNewMail (KMFolderCachedImap *, bool) |
void | slotProgressItemCanceled (KPIM::ProgressItem *) |
virtual void | slotCheckQueuedFolders () |
Protected Member Functions | |
KMAcctCachedImap (AccountManager *owner, const QString &accountName, uint id) | |
Friends | |
class | ::KMail::ImapJob |
class | ::KMail::CachedImapJob |
class | ::AccountManager |
Classes | |
struct | RenamedFolder |
Member Enumeration Documentation
Describes whether the account is a groupware account.
- Enumerator:
-
GroupwareNone Normal IMAP account. GroupwareKolab A Kolab groupware account. GroupwareScalix A Scalix groupware account.
Definition at line 189 of file kmacctcachedimap.h.
Member Function Documentation
void KMAcctCachedImap::init | ( | ) | [virtual] |
Set the config options to a decent state.
Reimplemented from KMail::ImapAccountBase.
Definition at line 83 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::pseudoAssign | ( | const KMAccount * | a | ) | [virtual] |
A weak assignment operator.
Reimplemented from KMail::ImapAccountBase.
Definition at line 88 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::setAutoExpunge | ( | bool | ) | [virtual] |
Overloaded to make sure it's never set for cached IMAP.
Reimplemented from KMail::ImapAccountBase.
Definition at line 108 of file kmacctcachedimap.cpp.
QString KMAcctCachedImap::type | ( | ) | const [virtual] |
Inherited methods.
Reimplemented from KMAccount.
Definition at line 78 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::processNewMail | ( | bool | interactive | ) | [virtual] |
Process new mail for this account if one arrived.
Returns TRUE if new mail has been found. Whether the mail is automatically loaded to an associated folder or not depends on the type of the account.
Implements KMAccount.
Definition at line 211 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::killJobsForItem | ( | KMFolderTreeItem * | fti | ) |
Kill all jobs related the the specified folder.
Definition at line 183 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::killAllJobs | ( | bool | disconnectSlave = false |
) | [virtual] |
Kill the slave if any jobs are active.
Implements KMail::ImapAccountBase.
Definition at line 115 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::cancelMailCheck | ( | ) | [virtual] |
Abort running mail checks.
Reimplemented from KMail::ImapAccountBase.
Definition at line 160 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::setImapFolder | ( | KMFolderCachedImap * | ) | [virtual] |
void KMAcctCachedImap::readConfig | ( | KConfig & | config | ) | [virtual] |
Read config file entries.
This method is called by the account manager when a new account is created. The config group is already properly set by the caller.
Reimplemented from KMail::ImapAccountBase.
Definition at line 326 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::writeConfig | ( | KConfig & | config | ) | [virtual] |
Write all account information to given config file.
The config group is already properly set by the caller.
Reimplemented from KMail::ImapAccountBase.
Definition at line 341 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::invalidateIMAPFolders | ( | ) | [virtual] |
Invalidate the local cache.
Reimplemented from KMAccount.
Definition at line 354 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::addDeletedFolder | ( | KMFolder * | folder | ) |
Remember that a folder got explicitely deleted - including all child folders.
Definition at line 391 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::addDeletedFolder | ( | const QString & | imapPath | ) |
Remember that a folder got explicitely deleted - NOT including all child folders This is used when renaming a folder.
Definition at line 411 of file kmacctcachedimap.cpp.
bool KMAcctCachedImap::isDeletedFolder | ( | const QString & | subFolderPath | ) | const |
Ask if a folder was explicitely deleted in this session.
Definition at line 433 of file kmacctcachedimap.cpp.
bool KMAcctCachedImap::isPreviouslyDeletedFolder | ( | const QString & | subFolderPath | ) | const |
Ask if a folder was explicitely deleted in a previous session.
Definition at line 438 of file kmacctcachedimap.cpp.
QStringList KMAcctCachedImap::deletedFolderPaths | ( | const QString & | subFolderPath | ) | const |
return the imap path to the deleted folder, as well as the paths for any child folders
Definition at line 416 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::removeDeletedFolder | ( | const QString & | subFolderPath | ) |
void KMAcctCachedImap::addRenamedFolder | ( | const QString & | subFolderPath, | |
const QString & | oldLabel, | |||
const QString & | newName | |||
) |
void KMAcctCachedImap::removeRenamedFolder | ( | const QString & | subFolderPath | ) |
Remove folder from "renamed folders" list Warning: subFolderPath
is the OLD path.
Definition at line 454 of file kmacctcachedimap.cpp.
QString KMAcctCachedImap::renamedFolder | ( | const QString & | imapPath | ) | const |
const QMap<QString, RenamedFolder>& KMAcctCachedImap::renamedFolders | ( | ) | const [inline] |
void KMAcctCachedImap::addUnreadMsgCount | ( | const KMFolderCachedImap * | folder, | |
int | countUnread | |||
) |
Add a folder's unread count to the new "unread messages count", done during a sync after getting new mail.
Definition at line 297 of file kmacctcachedimap.cpp.
void KMAcctCachedImap::addLastUnreadMsgCount | ( | const KMFolderCachedImap * | folder, | |
int | countLastUnread | |||
) |
Add a folder's unread count to the last "unread messages count", i.e.
the counts before getting new mail
Definition at line 313 of file kmacctcachedimap.cpp.
FolderStorage *const KMAcctCachedImap::rootFolder | ( | ) | const [virtual] |
Returns the root folder of this account.
Implements KMail::ImapAccountBase.
Definition at line 469 of file kmacctcachedimap.cpp.
bool KMAcctCachedImap::annotationCheckPassed | ( | ) | [inline] |
void KMAcctCachedImap::postProcessNewMail | ( | KMFolderCachedImap * | , | |
bool | ||||
) | [protected, slot] |
new-mail-notification for the current folder (is called via folderComplete)
Definition at line 273 of file kmacctcachedimap.cpp.
The documentation for this class was generated from the following files: