kmail
KMail::ImapAccountBase Class Reference
#include <imapaccountbase.h>

Detailed Description
Definition at line 63 of file imapaccountbase.h.
Member Typedef Documentation
| typedef QMap<KJob *, jobData>::Iterator KMail::ImapAccountBase::JobIterator |
Definition at line 170 of file imapaccountbase.h.
Definition at line 137 of file imapaccountbase.h.
Definition at line 140 of file imapaccountbase.h.
Definition at line 134 of file imapaccountbase.h.
Member Enumeration Documentation
Definition at line 114 of file imapaccountbase.h.
Constructor & Destructor Documentation
| KMail::ImapAccountBase::ImapAccountBase | ( | AccountManager * | parent, | |
| const QString & | name, | |||
| uint | id | |||
| ) | [protected] |
Definition at line 79 of file imapaccountbase.cpp.
| KMail::ImapAccountBase::~ImapAccountBase | ( | ) | [virtual] |
Definition at line 111 of file imapaccountbase.cpp.
Member Function Documentation
| bool KMail::ImapAccountBase::autoExpunge | ( | ) | const [inline] |
- Returns:
- whether to automatically expunge deleted messages when leaving the folder
Definition at line 78 of file imapaccountbase.h.
| void KMail::ImapAccountBase::cancelMailCheck | ( | ) | [virtual] |
Abort all running mail checks.
Used when exiting.
Reimplemented from KMAccount.
Reimplemented in KMAcctCachedImap, and KMAcctImap.
Definition at line 1090 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::changeLocalSubscription | ( | const QString & | imapPath, | |
| bool | subscribe | |||
| ) |
Locally subscribe (subscribe = TRUE) / Unsubscribe the folder identified by imapPath.
Definition at line 1505 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::changeSubscription | ( | bool | subscribe, | |
| const QString & | imapPath | |||
| ) |
Subscribe (subscribe = true) / Unsubscribe the folder identified by imapPath.
Emits subscriptionChanged signal on success.
Definition at line 391 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::checkingMail | ( | ) | [inline] |
Set/Get if this account is currently checking mail.
Reimplemented from KMAccount.
Definition at line 280 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::checkingMail | ( | KMFolder * | folder | ) |
Check whether we're checking for new mail and the folder is included.
Definition at line 1153 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::checkingSingleFolder | ( | ) | [inline] |
Return true if we are processing a mailcheck for a single folder.
Definition at line 266 of file imapaccountbase.h.
| void KMail::ImapAccountBase::connectionResult | ( | int | errorCode, | |
| const QString & | errorMsg | |||
| ) | [signal] |
Emitted when the slave managed or failed to connect This is always emitted at some point after makeConnection returned Connecting.
- Parameters:
-
errorCode 0 for success, != 0 in case of error errorMsg if errorCode is != 0, this goes with errorCode to call KIO::buildErrorString
| void KMail::ImapAccountBase::constructParts | ( | QDataStream & | stream, | |
| int | count, | |||
| KMMessagePart * | parentKMPart, | |||
| DwBodyPart * | parent, | |||
| const DwMessage * | dwmsg | |||
| ) | [protected] |
Build KMMessageParts and DwBodyParts from the bodystructure-stream.
Definition at line 1230 of file imapaccountbase.cpp.
| QString KMail::ImapAccountBase::createImapPath | ( | const QString & | parent, | |
| const QString & | folderName | |||
| ) |
Create an IMAP path for a parent imapPath and a folderName.
Definition at line 1456 of file imapaccountbase.cpp.
| QString KMail::ImapAccountBase::createImapPath | ( | FolderStorage * | parent, | |
| const QString & | folderName | |||
| ) |
Create an IMAP path for a parent folder and a foldername Parent and folder are separated with the delimiter of the account The path starts and ends with '/'.
Definition at line 1484 of file imapaccountbase.cpp.
| unsigned short int KMail::ImapAccountBase::defaultPort | ( | ) | const [protected, virtual] |
| QString KMail::ImapAccountBase::delimiterForFolder | ( | FolderStorage * | storage | ) |
| JobIterator KMail::ImapAccountBase::findJob | ( | KJob * | job | ) | [inline] |
Look for the jobData related to a given job.
Compare with end()
Definition at line 180 of file imapaccountbase.h.
| unsigned int KMail::ImapAccountBase::folderCount | ( | ) | const [virtual] |
- Returns:
- the number of (subscribed, if applicable) folders in this account.
Definition at line 1399 of file imapaccountbase.cpp.
Retrieve the complete list of ACLs on the folder identified by imapPath.
Emits receivedACL signal on success/error.
Definition at line 517 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::getNamespaces | ( | ) | [slot] |
Call this to get the namespaces You are notified by the signal namespacesFetched.
Definition at line 682 of file imapaccountbase.cpp.
Retrieve the quota information on the folder identified by imapPath.
Emits receivedQuotaInfo signal on success/error.
Definition at line 548 of file imapaccountbase.cpp.
Retrieve the users' right on the folder identified by folder and imapPath.
Emits receivedUserRights signal on success/error.
Definition at line 449 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::handleBodyStructure | ( | QDataStream & | stream, | |
| KMMessage * | msg, | |||
| const AttachmentStrategy * | as | |||
| ) |
| bool KMail::ImapAccountBase::handleError | ( | int | error, | |
| const QString & | errorMsg, | |||
| KIO::Job * | job, | |||
| const QString & | context, | |||
| bool | abortSync = false | |||
| ) | [protected, virtual] |
Handle an error coming from a KIO job or from a KIO slave (via the scheduler) and abort everything (in all cases) if abortSync is true [this is for slotSchedulerSlaveError].
Otherwise (abortSync==false), dimap will only abort in case of severe errors (connection broken), but on "normal" errors (no permission to delete, etc.) it will ask the user.
- Parameters:
-
error the error code, usually job->error()) errorMsg the error message, usually job->errorText() job the kio job (can be 0). If set, removeJob will be called automatically. This is important! It means you should not call removeJob yourself in case of errors. We can't let the caller do that, since it should only be done afterwards, and only if we didn't abort. context a sentence that gives some context to the error, e.g. i18n("Error while uploading message [...]") abortSync if true, abort sync in all cases (see above). If false, ask the user (when possible).
- Returns:
- false when aborting, true when continuing
Reimplemented in KMAcctImap.
Definition at line 989 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::handleJobError | ( | KIO::Job * | job, | |
| const QString & | context, | |||
| bool | abortSync = false | |||
| ) |
React to an error from the job.
Uses job->error and job->errorString and calls the protected virtual handleJobError with them. See handleError below for details.
Definition at line 360 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::handlePutError | ( | KIO::Job * | job, | |
| jobData & | jd, | |||
| KMFolder * | folder | |||
| ) | [protected] |
Handle an error during KIO::put - helper method.
Definition at line 937 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::hasACLSupport | ( | ) | const [inline] |
Returns false if the IMAP server for this account doesn't support ACLs.
(and true if it does, or if we didn't try yet).
Definition at line 297 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::hasAnnotationSupport | ( | ) | const [inline] |
Returns false if the IMAP server for this account doesn't support annotations.
(and true if it does, or if we didn't try yet).
Definition at line 303 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::hasCapability | ( | const QString & | capa | ) | [inline] |
Returns true if the account has the given capability.
Definition at line 400 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::hasQuotaSupport | ( | ) | const [inline] |
Returns false if the IMAP server for this account doesn't support quotas.
(and true if it does, or if we didn't try yet).
Definition at line 314 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::hiddenFolders | ( | ) | const [inline] |
| void KMail::ImapAccountBase::imapStatusChanged | ( | KMFolder * | , | |
| const QString & | imapPath, | |||
| bool | cont | |||
| ) | [signal] |
Emitted upon completion of the job for setting the status for a group of UIDs, as a result of a setImapStatus call.
On error, if the user chooses abort (not continue), cont is set to false.
| void KMail::ImapAccountBase::init | ( | void | ) | [virtual] |
Set the config options to a decent state.
Reimplemented from KMail::NetworkAccount.
Reimplemented in KMAcctCachedImap.
Definition at line 118 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::insertJob | ( | KJob * | job, | |
| const jobData & | data | |||
| ) | [inline] |
| bool KMail::ImapAccountBase::isNamespaceFolder | ( | QString & | name | ) |
Returns true if the given string is a namespace.
Definition at line 1422 of file imapaccountbase.cpp.
| JobIterator KMail::ImapAccountBase::jobsEnd | ( | ) | [inline] |
Definition at line 181 of file imapaccountbase.h.
| void KMail::ImapAccountBase::killAllJobs | ( | bool | disconnectSlave = false |
) | [pure virtual] |
Kill the slave if any jobs are active.
Implements KMail::NetworkAccount.
Implemented in KMAcctCachedImap, and KMAcctImap.
| KPIM::ProgressItem * KMail::ImapAccountBase::listDirProgressItem | ( | ) |
| bool KMail::ImapAccountBase::listOnlyOpenFolders | ( | ) | const [inline] |
| bool KMail::ImapAccountBase::loadOnDemand | ( | ) | const [inline] |
| void KMail::ImapAccountBase::localBlacklistFromStringList | ( | const QStringList & | list | ) | [protected] |
Definition at line 1531 of file imapaccountbase.cpp.
| QStringList KMail::ImapAccountBase::locallyBlacklistedFolders | ( | ) | const [protected] |
Definition at line 1520 of file imapaccountbase.cpp.
| bool KMail::ImapAccountBase::locallySubscribedTo | ( | const QString & | imapPath | ) |
Returns whether the account is locally subscribed to the folder.
- Parameters:
-
imapPath. No relation to server side subscription above.
Definition at line 1500 of file imapaccountbase.cpp.
| ImapAccountBase::ConnectionState KMail::ImapAccountBase::makeConnection | ( | ) |
Connect to the server, if no connection is active Returns Connected (ok), Error (ko) or Connecting - which means that one should wait for the slaveConnected signal from KIO::Scheduler before proceeding.
Reimplemented in KMAcctImap.
Definition at line 288 of file imapaccountbase.cpp.
| void KMail::ImapAccountBase::migratePrefix | ( | ) | [protected] |
| QString KMail::ImapAccountBase::namespaceForFolder | ( | FolderStorage * | storage | ) |
| nsMap KMail::ImapAccountBase::namespaces | ( | ) | const [inline] |
| void KMail::ImapAccountBase::namespacesFetched | ( | ) | [signal] |
Emitted when we got the namespaces, and they were set on the object.
| void KMail::ImapAccountBase::namespacesFetched | ( | const ImapAccountBase::nsDelimMap & | ) | [signal] |
Emitted when we got the namespaces.
| ImapAccountBase::nsDelimMap KMail::ImapAccountBase::namespacesWithDelimiter | ( | ) |
Full blown section - namespace - delimiter map Do not call this very often as the map is constructed on the fly.
Definition at line 1438 of file imapaccountbase.cpp.
| namespaceDelim KMail::ImapAccountBase::namespaceToDelimiter | ( | ) | const [inline] |
| bool KMail::ImapAccountBase::onlyLocallySubscribedFolders | ( | ) | const [inline] |
- Returns:
- whether to show only locally subscribed folders
Definition at line 90 of file imapaccountbase.h.
| bool KMail::ImapAccountBase::onlySubscribedFolders | ( | ) |
KDE 4.2 API Reference