kmail

KMail::ImapAccountBase Class Reference

#include <imapaccountbase.h>

Inheritance diagram for KMail::ImapAccountBase:

List of all members.


Classes

struct  jobData
 Info Data for the Job. More...

Public Types

enum  ConnectionState { Error = 0, Connected, Connecting }
enum  imapNamespace { PersonalNS = 0, OtherUsersNS = 1, SharedNS = 2 }
typedef QMap< KIO::Job
*, jobData >::Iterator 
JobIterator
enum  ListType {
  List, ListSubscribed, ListSubscribedNoCheck, ListFolderOnly,
  ListFolderOnlySubscribed
}
typedef QMap< QString, QStringnamespaceDelim
typedef QMap< imapNamespace,
namespaceDelim
nsDelimMap
typedef QMap< imapNamespace,
QStringList
nsMap

Public Slots

void getNamespaces ()

Signals

void connectionResult (int errorCode, const QString &errorMsg)
void imapStatusChanged (KMFolder *, const QString &imapPath, bool cont)
void namespacesFetched ()
void namespacesFetched (const ImapAccountBase::nsDelimMap &)
void receivedACL (KMFolder *folder, KIO::Job *job, const KMail::ACLList &entries)
void receivedStorageQuotaInfo (KMFolder *folder, KIO::Job *job, const KMail::QuotaInfo &entries)
void receivedUserRights (KMFolder *folder)
void subscriptionChanged (const QString &imapPath, bool subscribed)

Public Member Functions

QString addPathToNamespace (const QString &ns)
bool autoExpunge () const
virtual void cancelMailCheck ()
void changeLocalSubscription (const QString &imapPath, bool subscribe)
void changeSubscription (bool subscribe, const QString &imapPath)
bool checkingMail ()
bool checkingMail (KMFolder *folder)
bool checkingSingleFolder ()
QString createImapPath (const QString &parent, const QString &folderName)
QString createImapPath (FolderStorage *parent, const QString &folderName)
QString delimiterForFolder (FolderStorage *)
QString delimiterForNamespace (const QString &prefix)
JobIterator findJob (KIO::Job *job)
virtual unsigned int folderCount () const
void getACL (KMFolder *folder, const QString &imapPath)
void getStorageQuotaInfo (KMFolder *folder, const QString &imapPath)
void getUserRights (KMFolder *folder, const QString &imapPath)
void handleBodyStructure (QDataStream &stream, KMMessage *msg, const AttachmentStrategy *as)
bool handleJobError (KIO::Job *job, const QString &context, bool abortSync=false)
bool hasACLSupport () const
bool hasAnnotationSupport () const
bool hasCapability (const QString &capa)
bool hasQuotaSupport () const
bool hiddenFolders () const
virtual void init ()
void insertJob (KIO::Job *job, const jobData &data)
bool isNamespaceFolder (QString &name)
JobIterator jobsEnd ()
void killAllJobs (bool disconnectSlave=false)=0
KPIM::ProgressItem * listDirProgressItem ()
bool listOnlyOpenFolders () const
bool loadOnDemand () const
bool locallySubscribedTo (const QString &imapPath)
ConnectionState makeConnection ()
QString namespaceForFolder (FolderStorage *)
nsMap namespaces () const
nsDelimMap namespacesWithDelimiter ()
namespaceDelim namespaceToDelimiter () const
bool onlyLocallySubscribedFolders () const
bool onlySubscribedFolders () const
void postProcessNewMail (bool setStatusMsg=true)
void processNewMailSingleFolder (KMFolder *folder)
virtual void pseudoAssign (const KMAccount *a)
virtual void readConfig (KConfig &config)
void removeJob (KIO::Job *job)
void removeJob (JobIterator &it)
virtual FolderStorage *const rootFolder () const =0
virtual void setAutoExpunge (bool expunge)
virtual void setFolder (KMFolder *, bool addAccount=false)
void setHasNoAnnotationSupport ()
void setHasNoQuotaSupport ()
virtual void setHiddenFolders (bool show)
void setImapSeenStatus (KMFolder *folder, const QString &path, bool seen)
void setImapStatus (KMFolder *folder, const QString &path, const QCString &flags)
virtual void setListOnlyOpenFolders (bool only)
virtual void setLoadOnDemand (bool load)
virtual void setNamespaces (nsMap map)
void setNamespaceToDelimiter (namespaceDelim map)
virtual void setOnlyLocallySubscribedFolders (bool show)
virtual void setOnlySubscribedFolders (bool show)
virtual KIO::MetaData slaveConfig () const
void slaveDied ()
virtual void writeConfig (KConfig &config)
virtual ~ImapAccountBase ()

Protected Slots

void slotAbortRequested (KPIM::ProgressItem *)
void slotCapabilitiesResult (KIO::Job *, const QString &result)
virtual void slotCheckQueuedFolders ()
void slotGetACLResult (KIO::Job *_job)
void slotGetStorageQuotaInfoResult (KIO::Job *_job)
void slotGetUserRightsResult (KIO::Job *_job)
void slotIdleTimeout ()
void slotNamespaceResult (KIO::Job *, const QString &str)
void slotNoopTimeout ()
void slotSaveNamespaces (const ImapAccountBase::nsDelimMap &map)
void slotSchedulerSlaveConnected (KIO::Slave *aSlave)
void slotSchedulerSlaveError (KIO::Slave *aSlave, int, const QString &errorMsg)
void slotSetStatusResult (KIO::Job *job)
void slotSimpleResult (KIO::Job *job)

Protected Member Functions

void constructParts (QDataStream &stream, int count, KMMessagePart *parentKMPart, DwBodyPart *parent, const DwMessage *dwmsg)
virtual unsigned short int defaultPort () const
virtual bool handleError (int error, const QString &errorMsg, KIO::Job *job, const QString &context, bool abortSync=false)
bool handlePutError (KIO::Job *job, jobData &jd, KMFolder *folder)
 ImapAccountBase (AccountManager *parent, const QString &name, uint id)
void localBlacklistFromStringList (const QStringList &)
QStringList locallyBlacklistedFolders () const
void migratePrefix ()
QString prettifyQuotaError (const QString &_error, KIO::Job *job)
virtual QString protocol () const

Protected Attributes

bool mACLSupport: 1
bool mAnnotationSupport: 1
QMap< KIO::Job *, jobDatamapJobData
bool mAutoExpunge: 1
QPtrList< KMMessagePartmBodyPartList
QStringList mCapabilities
bool mCheckingSingleFolder: 1
int mCountLastUnread
int mCountUnread
KMMessagemCurrentMsg
bool mErrorDialogIsActive: 1
QValueList< QGuardedPtr
< KMFolder > > 
mFoldersQueuedForChecking
bool mHiddenFolders: 1
QTimer mIdleTimer
QGuardedPtr< KPIM::ProgressItem > mListDirProgressItem
bool mListOnlyOpenFolders: 1
bool mLoadOnDemand: 1
std::set< QStringmLocalSubscriptionBlackList
QValueList< QGuardedPtr
< KMFolder > > 
mMailCheckFolders
nsMap mNamespaces
namespaceDelim mNamespaceToDelimiter
QTimer mNoopTimer
QString mOldPrefix
bool mOnlyLocallySubscribedFolders: 1
bool mOnlySubscribedFolders: 1
QPtrList< QGuardedPtr< KMFolder > > mOpenFolders
bool mPasswordDialogIsActive: 1
bool mProgressEnabled: 1
bool mQuotaSupport: 1
bool mSlaveConnected: 1
bool mSlaveConnectionError: 1
QStringList mSubfolderAttributes
QStringList mSubfolderMimeTypes
QStringList mSubfolderNames
QStringList mSubfolderPaths
int mTotal
QMap< QString, int > mUnreadBeforeCheck

Detailed Description

Definition at line 59 of file imapaccountbase.h.


Member Typedef Documentation

typedef QMap<KIO::Job *, jobData>::Iterator KMail::ImapAccountBase::JobIterator

Definition at line 166 of file imapaccountbase.h.


Member Enumeration Documentation

The state of the kioslave connection.

Enumerator:
Error 
Connected 
Connecting 

Definition at line 107 of file imapaccountbase.h.

Enumerator:
PersonalNS 
OtherUsersNS 
SharedNS 

Definition at line 127 of file imapaccountbase.h.

Enumerator:
List 
ListSubscribed 
ListSubscribedNoCheck 
ListFolderOnly 
ListFolderOnlySubscribed 

Definition at line 110 of file imapaccountbase.h.


Constructor & Destructor Documentation

KMail::ImapAccountBase::ImapAccountBase ( AccountManager parent,
const QString name,
uint  id 
) [protected]

Definition at line 82 of file imapaccountbase.cpp.

KMail::ImapAccountBase::~ImapAccountBase (  )  [virtual]

Definition at line 116 of file imapaccountbase.cpp.


Member Function Documentation

QString KMail::ImapAccountBase::addPathToNamespace ( const QString ns  ) 

Adds "/" as needed to the given namespace.

Definition at line 1315 of file imapaccountbase.cpp.

bool KMail::ImapAccountBase::autoExpunge (  )  const [inline]

Returns:
whether to automatically expunge deleted messages when leaving the folder

Definition at line 74 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 990 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 1416 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 360 of file imapaccountbase.cpp.

bool KMail::ImapAccountBase::checkingMail (  )  [inline]

Set/Get if this account is currently checking mail.

Reimplemented from KMAccount.

Definition at line 276 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 1050 of file imapaccountbase.cpp.

bool KMail::ImapAccountBase::checkingSingleFolder (  )  [inline]

Return true if we are processing a mailcheck for a single folder.

Definition at line 262 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 1133 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 1365 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 1394 of file imapaccountbase.cpp.

unsigned short int KMail::ImapAccountBase::defaultPort (  )  const [protected, virtual]

Implements KMail::NetworkAccount.

Definition at line 148 of file imapaccountbase.cpp.

QString KMail::ImapAccountBase::delimiterForFolder ( FolderStorage storage  ) 

Returns:
the delimiter for the folderstorage

Definition at line 834 of file imapaccountbase.cpp.

QString KMail::ImapAccountBase::delimiterForNamespace ( const QString prefix  ) 

Returns:
the delimiter for the namespace

Definition at line 803 of file imapaccountbase.cpp.

JobIterator KMail::ImapAccountBase::findJob ( KIO::Job *  job  )  [inline]

Look for the jobData related to a given job.

Compare with end()

Definition at line 176 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 1307 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::getACL ( KMFolder folder,
const QString imapPath 
)

Retrieve the complete list of ACLs on the folder identified by imapPath.

Emits receivedACL signal on success/error.

Definition at line 466 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 614 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::getStorageQuotaInfo ( KMFolder folder,
const QString imapPath 
)

Retrieve the the quota inforamiton on the folder identified by imapPath.

Emits receivedQuotaInfo signal on success/error.

Definition at line 493 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::getUserRights ( KMFolder folder,
const QString imapPath 
)

Retrieve the users' right on the folder identified by folder and imapPath.

Emits receivedUserRights signal on success/error.

Definition at line 411 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::handleBodyStructure ( QDataStream stream,
KMMessage msg,
const AttachmentStrategy as 
)

Handles the result from a BODYSTRUCTURE fetch.

Definition at line 1058 of file imapaccountbase.cpp.

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 912 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 330 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 868 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 293 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 299 of file imapaccountbase.h.

bool KMail::ImapAccountBase::hasCapability ( const QString capa  )  [inline]

Returns true if the account has the given capability.

Definition at line 396 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 310 of file imapaccountbase.h.

bool KMail::ImapAccountBase::hiddenFolders (  )  const [inline]

Returns:
whether to show hidden files on the server

Definition at line 78 of file imapaccountbase.h.

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 121 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::insertJob ( KIO::Job *  job,
const jobData data 
) [inline]

Call this when starting a new job.

Definition at line 170 of file imapaccountbase.h.

bool KMail::ImapAccountBase::isNamespaceFolder ( QString name  ) 

Returns true if the given string is a namespace.

Definition at line 1329 of file imapaccountbase.cpp.

JobIterator KMail::ImapAccountBase::jobsEnd (  )  [inline]

Definition at line 177 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 (  ) 

Progress item for listDir.

Definition at line 1283 of file imapaccountbase.cpp.

bool KMail::ImapAccountBase::listOnlyOpenFolders (  )  const [inline]

Returns:
whether to list only open folders

Definition at line 95 of file imapaccountbase.h.

bool KMail::ImapAccountBase::loadOnDemand (  )  const [inline]

Returns:
whether to load attachments on demand

Definition at line 91 of file imapaccountbase.h.

void KMail::ImapAccountBase::localBlacklistFromStringList ( const QStringList list  )  [protected]

Definition at line 1438 of file imapaccountbase.cpp.

QStringList KMail::ImapAccountBase::locallyBlacklistedFolders (  )  const [protected]

Definition at line 1428 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 1411 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 272 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::migratePrefix (  )  [protected]

Migrate the prefix.

Definition at line 707 of file imapaccountbase.cpp.

QString KMail::ImapAccountBase::namespaceForFolder ( FolderStorage storage  ) 

Returns:
the namespace for the folder

Definition at line 773 of file imapaccountbase.cpp.

nsMap KMail::ImapAccountBase::namespaces (  )  const [inline]

Returns:
defined namespaces

Definition at line 342 of file imapaccountbase.h.

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 1345 of file imapaccountbase.cpp.

namespaceDelim KMail::ImapAccountBase::namespaceToDelimiter (  )  const [inline]

Returns:
the namespace - delimiter map

Definition at line 379 of file imapaccountbase.h.

bool KMail::ImapAccountBase::onlyLocallySubscribedFolders (  )  const [inline]

Returns:
whether to show only locally subscribed folders

Definition at line 86 of file imapaccountbase.h.

bool KMail::ImapAccountBase::onlySubscribedFolders (  )  const [inline]

Returns:
whether to show only subscribed folders

Definition at line 82 of file imapaccountbase.h.

void KMail::ImapAccountBase::postProcessNewMail ( bool  setStatusMsg = true  ) 

Called when we're completely done checking mail for this account When setStatusMsg is true a status msg is shown.

Definition at line 342 of file imapaccountbase.cpp.

QString KMail::ImapAccountBase::prettifyQuotaError ( const QString _error,
KIO::Job *  job 
) [protected]

Definition at line 886 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::processNewMailSingleFolder ( KMFolder folder  ) 

Init a new-mail-check for a single folder.

Definition at line 1018 of file imapaccountbase.cpp.

QString KMail::ImapAccountBase::protocol (  )  const [protected, virtual]

Implements KMail::NetworkAccount.

Definition at line 152 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::pseudoAssign ( const KMAccount a  )  [virtual]

A weak assignment operator.

Reimplemented from KMail::NetworkAccount.

Reimplemented in KMAcctCachedImap, and KMAcctImap.

Definition at line 131 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::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::NetworkAccount.

Reimplemented in KMAcctCachedImap, and KMAcctImap.

Definition at line 192 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::receivedACL ( KMFolder folder,
KIO::Job *  job,
const KMail::ACLList entries 
) [signal]

Emitted when the get-the-ACLs job is done, as a result of a getACL call.

Parameters:
folder the folder for which we were listing the ACLs (can be 0)
job the job that was used for doing so (can be used to display errors)
entries the ACL list. Make your copy of it, it comes from the job.

void KMail::ImapAccountBase::receivedStorageQuotaInfo ( KMFolder folder,
KIO::Job *  job,
const KMail::QuotaInfo entries 
) [signal]

Emitted when the getQuotaInfo job is done, as a result of a getQuotaInfo call.

Parameters:
folder The folder for which we were getting quota info (can be 0)
job The job that was used for doing so (can be used to display errors)
info The quota information for this folder. Make your copy of it, it comes from the job.

void KMail::ImapAccountBase::receivedUserRights ( KMFolder folder  )  [signal]

Emitted when the get-user-rights job is done, as a result of a getUserRights call.

Use userRights() to retrieve them, they will still be on 0 if the job failed.

void KMail::ImapAccountBase::removeJob ( KIO::Job *  job  ) 

Definition at line 1277 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::removeJob ( JobIterator it  ) 

Call this when a job is finished.

Don't use *it afterwards!

Definition at line 1267 of file imapaccountbase.cpp.

virtual FolderStorage* const KMail::ImapAccountBase::rootFolder (  )  const [pure virtual]

Returns the root folder of this account.

Implemented in KMAcctCachedImap, and KMAcctImap.

void KMail::ImapAccountBase::setAutoExpunge ( bool  expunge  )  [virtual]

Reimplemented in KMAcctCachedImap.

Definition at line 162 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setFolder ( KMFolder folder,
bool  addAccount = false 
) [virtual]

Reimplemented.

Additionally set the folder label

Reimplemented from KMAccount.

Definition at line 1256 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setHasNoAnnotationSupport (  )  [inline]

Called if the annotation command failed due to 'unsupported'.

Definition at line 304 of file imapaccountbase.h.

void KMail::ImapAccountBase::setHasNoQuotaSupport (  )  [inline]

Called if the quota command failed due to 'unsupported'.

Definition at line 315 of file imapaccountbase.h.

void KMail::ImapAccountBase::setHiddenFolders ( bool  show  )  [virtual]

Definition at line 166 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setImapSeenStatus ( KMFolder folder,
const QString path,
bool  seen 
)

Set seen status on the server.

Emits imapStatusChanged signal on success/error.

Definition at line 1213 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setImapStatus ( KMFolder folder,
const QString path,
const QCString flags 
)

Set the status on the server Emits imapStatusChanged signal on success/error.

Definition at line 1189 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setListOnlyOpenFolders ( bool  only  )  [virtual]

Definition at line 182 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setLoadOnDemand ( bool  load  )  [virtual]

Definition at line 178 of file imapaccountbase.cpp.

virtual void KMail::ImapAccountBase::setNamespaces ( nsMap  map  )  [inline, virtual]

Set defined namespaces.

Definition at line 347 of file imapaccountbase.h.

void KMail::ImapAccountBase::setNamespaceToDelimiter ( namespaceDelim  map  )  [inline]

Set the namespace - delimiter map.

Definition at line 385 of file imapaccountbase.h.

void KMail::ImapAccountBase::setOnlyLocallySubscribedFolders ( bool  show  )  [virtual]

Definition at line 174 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::setOnlySubscribedFolders ( bool  show  )  [virtual]

Definition at line 170 of file imapaccountbase.cpp.

MetaData KMail::ImapAccountBase::slaveConfig (  )  const [virtual]

Configure the slave by adding to the meta data map.

Reimplemented from KMail::NetworkAccount.

Definition at line 262 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slaveDied (  )  [inline]

The KIO-Slave died.

Definition at line 242 of file imapaccountbase.h.

void KMail::ImapAccountBase::slotAbortRequested ( KPIM::ProgressItem *  item  )  [protected, slot]

Kills all jobs.

Definition at line 552 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotCapabilitiesResult ( KIO::Job *  ,
const QString result 
) [protected, slot]

Saves the capabilities list.

Definition at line 607 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotCheckQueuedFolders (  )  [protected, virtual, slot]

Reimplemented in KMAcctCachedImap.

Definition at line 1036 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotGetACLResult ( KIO::Job *  _job  )  [protected, slot]

Result of getACL() job.

Definition at line 480 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotGetStorageQuotaInfoResult ( KIO::Job *  _job  )  [protected, slot]

Result of getStorageQuotaInfo() job.

Definition at line 508 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotGetUserRightsResult ( KIO::Job *  _job  )  [protected, slot]

Result of getUserRights() job.

Definition at line 439 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotIdleTimeout (  )  [protected, slot]

Log out when idle.

Definition at line 540 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotNamespaceResult ( KIO::Job *  job,
const QString str 
) [protected, slot]

Gets and parses the namespaces.

Definition at line 652 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotNoopTimeout (  )  [protected, slot]

Send a NOOP command regularly to keep the slave from disconnecting.

Definition at line 521 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotSaveNamespaces ( const ImapAccountBase::nsDelimMap map  )  [protected, slot]

Saves the fetched namespaces.

Definition at line 680 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotSchedulerSlaveConnected ( KIO::Slave *  aSlave  )  [protected, slot]

Handle a message coming from the KIO scheduler saying that the slave is now connected.

Definition at line 583 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotSchedulerSlaveError ( KIO::Slave *  aSlave,
int  errorCode,
const QString errorMsg 
) [protected, slot]

Handle an error coming from the KIO scheduler.

Definition at line 561 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotSetStatusResult ( KIO::Job *  job  )  [protected, slot]

Only delete information about the job and ignore write errors.

Definition at line 1236 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::slotSimpleResult ( KIO::Job *  job  )  [protected, slot]

Only delete information about the job.

Definition at line 842 of file imapaccountbase.cpp.

void KMail::ImapAccountBase::subscriptionChanged ( const QString imapPath,
bool  subscribed 
) [signal]

Emitted when the subscription has changed, as a result of a changeSubscription call.

void KMail::ImapAccountBase::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::NetworkAccount.

Reimplemented in KMAcctCachedImap.

Definition at line 231 of file imapaccountbase.cpp.


Member Data Documentation

Definition at line 541 of file imapaccountbase.h.

Definition at line 542 of file imapaccountbase.h.

Definition at line 524 of file imapaccountbase.h.

Definition at line 531 of file imapaccountbase.h.

Definition at line 546 of file imapaccountbase.h.

Definition at line 529 of file imapaccountbase.h.

Definition at line 529 of file imapaccountbase.h.

Definition at line 555 of file imapaccountbase.h.

Definition at line 539 of file imapaccountbase.h.

Definition at line 532 of file imapaccountbase.h.

used to detect when the slave has not been used for a while

Definition at line 526 of file imapaccountbase.h.

Definition at line 557 of file imapaccountbase.h.

Definition at line 536 of file imapaccountbase.h.

Definition at line 535 of file imapaccountbase.h.

Definition at line 571 of file imapaccountbase.h.

Definition at line 560 of file imapaccountbase.h.

used to send a noop to the slave in regular intervals to keep it from disonnecting

Definition at line 528 of file imapaccountbase.h.

Definition at line 566 of file imapaccountbase.h.

Definition at line 534 of file imapaccountbase.h.

Definition at line 533 of file imapaccountbase.h.

Definition at line 540 of file imapaccountbase.h.

Definition at line 537 of file imapaccountbase.h.

Definition at line 543 of file imapaccountbase.h.

Definition at line 544 of file imapaccountbase.h.

Definition at line 545 of file imapaccountbase.h.

Definition at line 529 of file imapaccountbase.h.

Definition at line 530 of file imapaccountbase.h.


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