• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

KMFolderImap Class Reference

#include <kmfolderimap.h>

Inheritance diagram for KMFolderImap:
Inheritance graph
[legend]

List of all members.

Public Types

enum  imapState { imapNoInformation = 0, imapListingInProgress = 1, imapDownloadInProgress = 2, imapFinished = 3 }

Public Slots

virtual int addMsg (QList< KMMessage * > &, QList< int > &index_return)
virtual int addMsg (KMMessage *msg, int *index_return=0)
virtual void addMsgQuiet (QList< KMMessage * >)
virtual void addMsgQuiet (KMMessage *)
void copyMsg (QList< KMMessage * > &msgList)
static void flagsToStatus (KMMsgBase *msg, int flags, bool newMsg=true, int supportedFalgs=31)
static void seenFlagToStatus (KMMsgBase *msg, int flags, bool newMsg=true)
void slotCheckNamespace (const QStringList &, const QStringList &, const QStringList &, const QStringList &, const ImapAccountBase::jobData &)
void slotCopyMsgResult (KMail::FolderJob *job)
void slotListResult (const QStringList &, const QStringList &, const QStringList &, const QStringList &, const ImapAccountBase::jobData &)
void slotSearchDone (quint32 serNum, const KMSearchPattern *pattern, bool matches)
void slotSearchDone (QList< quint32 > serNums, const KMSearchPattern *pattern, bool complete)
void slotSimpleData (KIO::Job *job, const QByteArray &data)
virtual void take (const QList< KMMessage * > &)
virtual KMMessage * take (int idx)

Signals

void deleted (KMFolderImap *)
void directoryListingFinished (KMFolderImap *)
void folderComplete (KMFolderImap *folder, bool success)
void folderCreationResult (const QString &name, bool success)

Public Member Functions

 KMFolderImap (KMFolder *folder, const char *name=0)
virtual ~KMFolderImap ()
KMAcctImap * account () const
bool autoExpunge ()
bool canDeleteMessages () const
virtual int compact (bool)
virtual int create ()
void createFolder (const QString &name, const QString &imapPath=QString(), bool askUser=true)
void deleteMessage (const QList< KMMessage * > &msgList)
void deleteMessage (KMMessage *msg)
void expungeFolder (KMFolderImap *aFolder, bool quiet)
virtual QString fileName () const
virtual KMFolderType folderType () const
void getAndCheckFolder (bool force=false)
virtual imapState getContentState ()
void getFolder (bool force=false)
virtual KMMessage * getMsg (int idx)
virtual imapState getSubfolderState ()
void getUids (const QList< KMMessage * > &msgList, QList< ulong > &uids)
void getUids (QList< int > &ids, QList< ulong > &uids)
virtual void ignoreJobsForMessage (KMMessage *)
QString imapPath () const
bool includeInMailCheck ()
void initializeFrom (KMFolderImap *parent, const QString &path, const QString &mimeType)
virtual bool isAutoExpire () const
virtual bool isMoveable () const
bool isReadOnly () const
bool isSelected ()
ulong lastUid ()
virtual bool listDirectory ()
int permanentFlags () const
bool processNewMail (bool interactive)
virtual void readConfig ()
virtual void reallyDoClose ()
virtual void remove ()
virtual void removeMsg (const QList< KMMessage * > &msgList, bool quiet=false)
virtual void removeMsg (int i, bool quiet=false)
virtual int rename (const QString &newName, KMFolderDir *aParent=0)
void saveMsgMetaData (KMMessage *msg, ulong uid=0)
virtual void search (const KMSearchPattern *, quint32 serNum)
virtual void search (const KMSearchPattern *)
void sendFolderComplete (bool success)
ulong serNumForUID (ulong uid)
void setAccount (KMAcctImap *acct)
void setAlreadyRemoved (bool removed)
void setCheckingValidity (bool val)
virtual void setContentState (imapState state)
void setImapPath (const QString &path)
void setIncludeInMailCheck (bool check)
void setSelected (bool selected)
virtual void setStatus (QList< int > &_ids, const MessageStatus &status, bool toggle)
virtual void setStatus (int idx, const MessageStatus &status, bool toggle)
virtual void setSubfolderState (imapState state)
void setUidValidity (const QString &validity)
void setUserRights (unsigned int userRights)
KMFolder * trashFolder () const
QString uidValidity ()
unsigned int userRights () const
virtual void writeConfig ()

Static Public Member Functions

static QString cacheLocation ()
static QString decodeFileName (const QString &)
static QString encodeFileName (const QString &)
static QStringList makeSets (const QStringList &, bool sort=true)
static QStringList makeSets (QList< ulong > &, bool sort=true)
static QList< KMMessage * > splitMessageList (const QString &set, QList< KMMessage * > &msgList)
static QList< ulong > splitSets (const QString &)
static QString statusToFlags (const KPIM::MessageStatus &status, int supportedFalgs)

Protected Slots

void checkValidity ()
void reallyGetFolder (const QString &startUid=QString())
void rememberSerialNumber (const KMMessage *msg)
void slotCheckValidityResult (KJob *job)
void slotCompleteMailCheckProgress ()
void slotCreateFolderResult (KJob *job)
void slotCreatePendingFolders (int errorCode, const QString &errorMsg)
void slotGetLastMessagesResult (KJob *job)
void slotGetMessagesData (KIO::Job *job, const QByteArray &data)
void slotGetMessagesResult (KJob *job)
void slotListFolderEntries (KIO::Job *job, const KIO::UDSEntryList &uds)
void slotListFolderResult (KJob *job)
void slotListNamespaces ()
void slotProcessNewMail (int errorCode, const QString &errorMsg)
void slotRemoveFolderResult (KJob *job)
void slotStatResult (KJob *job)

Protected Member Functions

void checkFolders (const QStringList &folderNames, const QString &ns)
virtual FolderJob * doCreateJob (QList< KMMessage * > &msgList, const QString &sets, FolderJob::JobType jt, KMFolder *folder) const
virtual FolderJob * doCreateJob (KMMessage *msg, FolderJob::JobType jt, KMFolder *folder, const QString &partSpecifier, const AttachmentStrategy *as) const
virtual qint64 doFolderSize () const
virtual int expungeContents ()
KMFolderImap * findParent (const QString &path, const QString &name)
void finishMailCheck (const char *func, imapState state)
void getMessagesResult (KIO::Job *job, bool lastSet)
void initInbox ()
void setChildrenState (const QString &attributes)

Protected Attributes

QPointer< KMAcctImap > mAccount
bool mCheckFlags
bool mCheckMail
imapState mContentState
QString mImapPath
bool mIsSelected
ulong mLastUid
bool mReadOnly
imapState mSubfolderState
QString mUidValidity
unsigned int mUserRights

Detailed Description

Definition at line 77 of file kmfolderimap.h.


Member Enumeration Documentation

enum KMFolderImap::imapState
Enumerator:
imapNoInformation 
imapListingInProgress 
imapDownloadInProgress 
imapFinished 

Definition at line 87 of file kmfolderimap.h.


Constructor & Destructor Documentation

KMFolderImap::KMFolderImap ( KMFolder *  folder,
const char *  name = 0 
) [explicit]

Usually a parent is given.

But in some cases there is no fitting parent object available. Then the name of the folder is used as the absolute path to the folder file.

Definition at line 62 of file kmfolderimap.cpp.

KMFolderImap::~KMFolderImap (  )  [virtual]

Definition at line 86 of file kmfolderimap.cpp.


Member Function Documentation

KMAcctImap * KMFolderImap::account (  )  const [virtual]

Reimplemented from FolderStorage.

Definition at line 160 of file kmfolderimap.cpp.

int KMFolderImap::addMsg ( QList< KMMessage * > &  msgList,
QList< int > &  index_return 
) [virtual, slot]

Definition at line 402 of file kmfolderimap.cpp.

int KMFolderImap::addMsg ( KMMessage *  msg,
int *  index_return = 0 
) [virtual, slot]

Add the given message to the folder.

Usually the message is added at the end of the folder. Returns zero on success and an errno error code on failure. The index of the new message is stored in index_return if given. Please note that the message is added as is to the folder and the folder takes ownership of the message (deleting it in the destructor).

Reimplemented from KMFolderMbox.

Definition at line 391 of file kmfolderimap.cpp.

void KMFolderImap::addMsgQuiet ( QList< KMMessage * >  msgList  )  [virtual, slot]

Definition at line 354 of file kmfolderimap.cpp.

void KMFolderImap::addMsgQuiet ( KMMessage *  aMsg  )  [virtual, slot]

Add a message to a folder after is has been added on an IMAP server.

Definition at line 327 of file kmfolderimap.cpp.

bool KMFolderImap::autoExpunge (  ) 

Automatically expunge deleted messages when leaving the folder.

Definition at line 1864 of file kmfolderimap.cpp.

static QString KMFolderImap::cacheLocation (  )  [inline, static]

Definition at line 83 of file kmfolderimap.h.

bool KMFolderImap::canDeleteMessages (  )  const [virtual]

Can messages in this folder be deleted?

Reimplemented from FolderStorage.

Definition at line 2496 of file kmfolderimap.cpp.

void KMFolderImap::checkFolders ( const QStringList &  folderNames,
const QString &  ns 
) [protected]

See if all folders are still present on server, otherwise delete them.

Definition at line 964 of file kmfolderimap.cpp.

void KMFolderImap::checkValidity (  )  [protected, slot]

Retrieve the whole folder or only the changes.

Definition at line 1043 of file kmfolderimap.cpp.

virtual int KMFolderImap::compact ( bool  silent  )  [inline, virtual]

Remove deleted messages from the folder.

Returns zero on success and an errno on failure.

Reimplemented from KMFolderMbox.

Definition at line 206 of file kmfolderimap.h.

void KMFolderImap::copyMsg ( QList< KMMessage * > &  msgList  )  [slot]

Copy the messages to this folder.

Definition at line 529 of file kmfolderimap.cpp.

int KMFolderImap::create (  )  [virtual]

Inherited.

Reimplemented from KMFolderMbox.

Definition at line 2221 of file kmfolderimap.cpp.

void KMFolderImap::createFolder ( const QString &  name,
const QString &  imapPath = QString(),
bool  askUser = true 
)

Create a new subfolder You may specify the root imap path or this folder will be used If you set askUser to false and the server can only handle folders that contain messages _or_ folders the new folder is set to "contains messages" by default.

Definition at line 1796 of file kmfolderimap.cpp.

QString KMFolderImap::decodeFileName ( const QString &  name  )  [static]

Definition at line 1858 of file kmfolderimap.cpp.

void KMFolderImap::deleted ( KMFolderImap *   )  [signal]

Emitted, when the account is deleted.

void KMFolderImap::deleteMessage ( const QList< KMMessage * > &  msgList  ) 

Definition at line 1914 of file kmfolderimap.cpp.

void KMFolderImap::deleteMessage ( KMMessage *  msg  ) 

Delete a message.

Definition at line 1886 of file kmfolderimap.cpp.

void KMFolderImap::directoryListingFinished ( KMFolderImap *   )  [signal]

Emitted at the end of the directory listing.

FolderJob * KMFolderImap::doCreateJob ( QList< KMMessage * > &  msgList,
const QString &  sets,
FolderJob::JobType  jt,
KMFolder *  folder 
) const [protected, virtual]

Reimplemented from KMFolderMbox.

Definition at line 1752 of file kmfolderimap.cpp.

FolderJob * KMFolderImap::doCreateJob ( KMMessage *  msg,
FolderJob::JobType  jt,
KMFolder *  folder,
const QString &  partSpecifier,
const AttachmentStrategy *  as 
) const [protected, virtual]

These two methods actually create the jobs.

They have to be implemented in all folders.

See also:
createJob

Reimplemented from KMFolderMbox.

Definition at line 1717 of file kmfolderimap.cpp.

qint64 KMFolderImap::doFolderSize (  )  const [protected, virtual]

reimp

Reimplemented from KMFolderMbox.

Definition at line 2309 of file kmfolderimap.cpp.

QString KMFolderImap::encodeFileName ( const QString &  name  )  [static]

Encode the given string in a filename save 7 bit string.

Definition at line 1850 of file kmfolderimap.cpp.

int KMFolderImap::expungeContents (  )  [protected, virtual]

Called by KMFolder::expunge() to delete the actual contents.

At the time of the call the folder has already been closed, and the various index files deleted. Returns 0 on success.

Reimplemented from KMFolderMbox.

Definition at line 2280 of file kmfolderimap.cpp.

void KMFolderImap::expungeFolder ( KMFolderImap *  aFolder,
bool  quiet 
)

Expunge deleted messages from the folder.

Definition at line 2117 of file kmfolderimap.cpp.

virtual QString KMFolderImap::fileName (  )  const [inline, virtual]

Return the filename of the folder (reimplemented from KFolder).

Reimplemented from FolderStorage.

Definition at line 241 of file kmfolderimap.h.

KMFolderImap * KMFolderImap::findParent ( const QString &  path,
const QString &  name 
) [protected]

See if there is a better parent then this folder.

Definition at line 938 of file kmfolderimap.cpp.

void KMFolderImap::finishMailCheck ( const char *  func,
imapState  state 
) [protected]

Definition at line 2486 of file kmfolderimap.cpp.

void KMFolderImap::flagsToStatus ( KMMsgBase *  msg,
int  flags,
bool  newMsg = true,
int  supportedFalgs = 31 
) [static, slot]

Convert IMAP flags to a message status.

Parameters:
newMsg specifies whether unseen messages are new or unread

Definition at line 1452 of file kmfolderimap.cpp.

void KMFolderImap::folderComplete ( KMFolderImap *  folder,
bool  success 
) [signal]
void KMFolderImap::folderCreationResult ( const QString &  name,
bool  success 
) [signal]

Emitted when a folder creation has finished.

Parameters:
name The name of the folder that should have been created.
success True if the folder was created, false otherwise.
virtual KMFolderType KMFolderImap::folderType (  )  const [inline, virtual]

Returns the type of this folder.

Reimplemented from KMFolderMbox.

Definition at line 107 of file kmfolderimap.h.

void KMFolderImap::getAndCheckFolder ( bool  force = false  ) 

same as above but also checks for new mails

Definition at line 1217 of file kmfolderimap.cpp.

virtual imapState KMFolderImap::getContentState (  )  [inline, virtual]

Definition at line 94 of file kmfolderimap.h.

void KMFolderImap::getFolder ( bool  force = false  ) 

Retrieve all mails in a folder.

Definition at line 1233 of file kmfolderimap.cpp.

void KMFolderImap::getMessagesResult ( KIO::Job *  job,
bool  lastSet 
) [protected]

Definition at line 1762 of file kmfolderimap.cpp.

KMMessage * KMFolderImap::getMsg ( int  idx  )  [virtual]

Read message at given index.

Indexing starts at zero

Reimplemented from FolderStorage.

Definition at line 141 of file kmfolderimap.cpp.

virtual imapState KMFolderImap::getSubfolderState (  )  [inline, virtual]

Definition at line 97 of file kmfolderimap.h.

void KMFolderImap::getUids ( const QList< KMMessage * > &  msgList,
QList< ulong > &  uids 
)

same as above but accepts a Message-List

Definition at line 2106 of file kmfolderimap.cpp.

void KMFolderImap::getUids ( QList< int > &  ids,
QList< ulong > &  uids 
)

gets the uids of the given ids

Definition at line 2094 of file kmfolderimap.cpp.

void KMFolderImap::ignoreJobsForMessage ( KMMessage *  msg  )  [virtual]

Removes and deletes all jobs associated with the particular message.

Reimplemented from FolderStorage.

Definition at line 1555 of file kmfolderimap.cpp.

QString KMFolderImap::imapPath (  )  const [inline]

Definition at line 112 of file kmfolderimap.h.

bool KMFolderImap::includeInMailCheck (  )  [inline]

If this folder should be included in new-mail-check.

Definition at line 265 of file kmfolderimap.h.

void KMFolderImap::initializeFrom ( KMFolderImap *  parent,
const QString &  path,
const QString &  mimeType 
)

Initialize this storage from another one.

Used when creating a child folder

Definition at line 1012 of file kmfolderimap.cpp.

void KMFolderImap::initInbox (  )  [protected]

Create or find the INBOX and initialize it.

Definition at line 899 of file kmfolderimap.cpp.

virtual bool KMFolderImap::isAutoExpire (  )  const [inline, virtual]

imap folders cannot expire

Definition at line 272 of file kmfolderimap.h.

bool KMFolderImap::isMoveable (  )  const [virtual]

Returns true if this folder can be moved.

Reimplemented from FolderStorage.

Definition at line 2446 of file kmfolderimap.cpp.

bool KMFolderImap::isReadOnly (  )  const [inline, virtual]

Is the folder readonly?

Reimplemented from KMFolderMbox.

Definition at line 290 of file kmfolderimap.h.

bool KMFolderImap::isSelected (  )  [inline]

Definition at line 225 of file kmfolderimap.h.

ulong KMFolderImap::lastUid (  ) 

The highest UID in the folder.

Definition at line 1107 of file kmfolderimap.cpp.

bool KMFolderImap::listDirectory (  )  [virtual]

List a directory and add the contents to kmfoldermgr It uses a ListJob to get the folders returns false if the connection failed.

Definition at line 743 of file kmfolderimap.cpp.

QStringList KMFolderImap::makeSets ( const QStringList &  uids,
bool  sort = true 
) [static]

Definition at line 2032 of file kmfolderimap.cpp.

QStringList KMFolderImap::makeSets ( QList< ulong > &  uids,
bool  sort = true 
) [static]

generates sets of uids

Definition at line 2040 of file kmfolderimap.cpp.

int KMFolderImap::permanentFlags (  )  const [inline]

Returns the IMAP flags that can be stored on the server.

Definition at line 317 of file kmfolderimap.h.

bool KMFolderImap::processNewMail ( bool  interactive  ) 

Refresh the number of unseen mails Returns false in an error condition.

Definition at line 2146 of file kmfolderimap.cpp.

void KMFolderImap::readConfig ( void   )  [virtual]

Read the config file.

Reimplemented from FolderStorage.

Definition at line 194 of file kmfolderimap.cpp.

void KMFolderImap::reallyDoClose (  )  [virtual]

Closes and cancels all pending jobs.

Reimplemented from KMFolderMbox.

Definition at line 108 of file kmfolderimap.cpp.

void KMFolderImap::reallyGetFolder ( const QString &  startUid = QString()  )  [protected, slot]

Get the folder now (internal).

Definition at line 1254 of file kmfolderimap.cpp.

void KMFolderImap::rememberSerialNumber ( const KMMessage *  msg  )  [protected, slot]

Puts the serial number and other metadata of the message into a map.

When the same message later is added to the folder, for example by calling addMsg(), slotGetMessagesData() then examines the metadata map and assigns the old serial number to the new message.

Definition at line 1568 of file kmfolderimap.cpp.

void KMFolderImap::remove (  )  [virtual]

Remove the IMAP folder on the server and if successful also locally.

Reimplemented from FolderStorage.

Definition at line 233 of file kmfolderimap.cpp.

void KMFolderImap::removeMsg ( const QList< KMMessage * > &  msgList,
bool  quiet = false 
) [virtual]

Definition at line 295 of file kmfolderimap.cpp.

void KMFolderImap::removeMsg ( int  i,
bool  quiet = false 
) [virtual]

Remove (first occurrence of) given message from the folder.

Reimplemented from FolderStorage.

Definition at line 280 of file kmfolderimap.cpp.

int KMFolderImap::rename ( const QString &  newName,
KMFolderDir *  aParent = 0 
) [virtual]

Physically rename the folder.

Returns zero on success and an errno on failure.

Reimplemented from FolderStorage.

Definition at line 318 of file kmfolderimap.cpp.

void KMFolderImap::saveMsgMetaData ( KMMessage *  msg,
ulong  uid = 0 
)

Save the metadata for the UID If the UID is not supplied the one from the message is taken.

Definition at line 2465 of file kmfolderimap.cpp.

void KMFolderImap::search ( const KMSearchPattern *  pattern,
quint32  serNum 
) [virtual]

Check if the message matches the search criteria The end is signaled with searchDone().

Reimplemented from FolderStorage.

Definition at line 2424 of file kmfolderimap.cpp.

void KMFolderImap::search ( const KMSearchPattern *  pattern  )  [virtual]

Search for messages The actual search is done in slotSearch and the end is signaled with searchDone().

Reimplemented from FolderStorage.

Definition at line 2400 of file kmfolderimap.cpp.

void KMFolderImap::seenFlagToStatus ( KMMsgBase *  msg,
int  flags,
bool  newMsg = true 
) [static, slot]

Convert IMAP seen flag to a message status.

Parameters:
newMsg specifies whether unseen messages are new or unread

Definition at line 1504 of file kmfolderimap.cpp.

void KMFolderImap::sendFolderComplete ( bool  success  )  [inline]

Emit the folderComplete signal.

Definition at line 211 of file kmfolderimap.h.

ulong KMFolderImap::serNumForUID ( ulong  uid  ) 

Get the serial number for the given UID (if available).

Definition at line 2453 of file kmfolderimap.cpp.

void KMFolderImap::setAccount ( KMAcctImap *  acct  ) 

The imap account associated with this folder.

Definition at line 180 of file kmfolderimap.cpp.

void KMFolderImap::setAlreadyRemoved ( bool  removed  ) 

Mark the folder as already removed from the server If set to true the folder will only be deleted locally This will recursively be applied to all children.

Definition at line 2369 of file kmfolderimap.cpp.

void KMFolderImap::setCheckingValidity ( bool  val  )  [inline]

Definition at line 274 of file kmfolderimap.h.

void KMFolderImap::setChildrenState ( const QString &  attributes  )  [protected]

Definition at line 1022 of file kmfolderimap.cpp.

virtual void KMFolderImap::setContentState ( imapState  state  )  [inline, virtual]

Definition at line 95 of file kmfolderimap.h.

void KMFolderImap::setImapPath ( const QString &  path  ) 

The path to the imap folder on the server.

Definition at line 2477 of file kmfolderimap.cpp.

void KMFolderImap::setIncludeInMailCheck ( bool  check  ) 

Definition at line 2360 of file kmfolderimap.cpp.

void KMFolderImap::setSelected ( bool  selected  )  [inline]

Tell the folder, this it is selected and shall also display new mails, not only their number, when checking for mail.

Definition at line 224 of file kmfolderimap.h.

void KMFolderImap::setStatus ( QList< int > &  _ids,
const MessageStatus &  status,
bool  toggle 
) [virtual]

Change the status of several messages indicated by ids.

Reimplemented from FolderStorage.

Definition at line 1928 of file kmfolderimap.cpp.

void KMFolderImap::setStatus ( int  idx,
const MessageStatus &  status,
bool  toggle 
) [virtual]

Change the status of the message indicated by index Overloaded function for the following one.

Reimplemented from FolderStorage.

Definition at line 1921 of file kmfolderimap.cpp.

void KMFolderImap::setSubfolderState ( imapState  state  )  [virtual]

Definition at line 2342 of file kmfolderimap.cpp.

void KMFolderImap::setUidValidity ( const QString &  validity  )  [inline]

The uidvalidity of the last update.

Definition at line 118 of file kmfolderimap.h.

void KMFolderImap::setUserRights ( unsigned int  userRights  ) 

Set the user's rights on this folder - called by getUserRights.

Definition at line 2325 of file kmfolderimap.cpp.

void KMFolderImap::slotCheckNamespace ( const QStringList &  subfolderNames,
const QStringList &  subfolderPaths,
const QStringList &  subfolderMimeTypes,
const QStringList &  subfolderAttributes,
const ImapAccountBase::jobData &  jobData 
) [slot]

Connected to slotListNamespaces creates/removes namespace folders.

Definition at line 672 of file kmfolderimap.cpp.

void KMFolderImap::slotCheckValidityResult ( KJob *  job  )  [protected, slot]

Definition at line 1122 of file kmfolderimap.cpp.

void KMFolderImap::slotCompleteMailCheckProgress (  )  [protected, slot]

notify the progress item that the mail check for this folder is done.

Definition at line 2332 of file kmfolderimap.cpp.

void KMFolderImap::slotCopyMsgResult ( KMail::FolderJob *  job  )  [slot]

Connected to the result signal of the copy/move job.

Definition at line 521 of file kmfolderimap.cpp.

void KMFolderImap::slotCreateFolderResult ( KJob *  job  )  [protected, slot]

For creating a new subfolder.

Definition at line 1824 of file kmfolderimap.cpp.

void KMFolderImap::slotCreatePendingFolders ( int  errorCode,
const QString &  errorMsg 
) [protected, slot]

Is connected when there are folders to be created on startup and the account is still connecting.

Once the account emits the connected signal this slot is called and the folders created.

Definition at line 2385 of file kmfolderimap.cpp.

void KMFolderImap::slotGetLastMessagesResult ( KJob *  job  )  [protected, slot]

Definition at line 1782 of file kmfolderimap.cpp.

void KMFolderImap::slotGetMessagesData ( KIO::Job *  job,
const QByteArray &  data 
) [protected, slot]

Definition at line 1575 of file kmfolderimap.cpp.

void KMFolderImap::slotGetMessagesResult ( KJob *  job  )  [protected, slot]

For retrieving a message digest.

Definition at line 1789 of file kmfolderimap.cpp.

void KMFolderImap::slotListFolderEntries ( KIO::Job *  job,
const KIO::UDSEntryList &  uds 
) [protected, slot]

Definition at line 1426 of file kmfolderimap.cpp.

void KMFolderImap::slotListFolderResult ( KJob *  job  )  [protected, slot]

For listing the contents of a folder.

Definition at line 1302 of file kmfolderimap.cpp.

void KMFolderImap::slotListNamespaces (  )  [protected, slot]

Starts a namespace listing.

Definition at line 614 of file kmfolderimap.cpp.

void KMFolderImap::slotListResult ( const QStringList &  subfolderNames,
const QStringList &  subfolderPaths,
const QStringList &  subfolderMimeTypes,
const QStringList &  subfolderAttributes,
const ImapAccountBase::jobData &  jobData 
) [slot]

Connected to ListJob::receivedFolders creates/removes folders.

Definition at line 778 of file kmfolderimap.cpp.

void KMFolderImap::slotProcessNewMail ( int  errorCode,
const QString &  errorMsg 
) [protected, slot]

Is called when the slave is connected and triggers a newmail check.

Definition at line 2134 of file kmfolderimap.cpp.

void KMFolderImap::slotRemoveFolderResult ( KJob *  job  )  [protected, slot]

Remove the folder also locally, if removing on the server succeeded.

Definition at line 264 of file kmfolderimap.cpp.

void KMFolderImap::slotSearchDone ( quint32  serNum,
const KMSearchPattern *  pattern,
bool  matches 
) [slot]

Called from the SearchJob when the message was searched.

Definition at line 2439 of file kmfolderimap.cpp.

void KMFolderImap::slotSearchDone ( QList< quint32 >  serNums,
const KMSearchPattern *  pattern,
bool  complete 
) [slot]

Called from the SearchJob when the folder is done or messages where found.

Definition at line 2416 of file kmfolderimap.cpp.

void KMFolderImap::slotSimpleData ( KIO::Job *  job,
const QByteArray &  data 
) [slot]

Add the data a KIO::Job retrieves to the buffer.

Definition at line 1874 of file kmfolderimap.cpp.

void KMFolderImap::slotStatResult ( KJob *  job  )  [protected, slot]

Update the number of unseen messages.

Definition at line 2198 of file kmfolderimap.cpp.

QList< KMMessage * > KMFolderImap::splitMessageList ( const QString &  set,
QList< KMMessage * > &  msgList 
) [static]

splits the message list according to sets.

Modifies the .

Definition at line 556 of file kmfolderimap.cpp.

QList< ulong > KMFolderImap::splitSets ( const QString &  uids  )  [static]

Splits a uid-set into single uids.

Definition at line 2228 of file kmfolderimap.cpp.

static QString KMFolderImap::statusToFlags ( const KPIM::MessageStatus &  status,
int  supportedFalgs 
) [static]

Convert message status to a list of IMAP flags.

void KMFolderImap::take ( const QList< KMMessage * > &  msgList  )  [virtual, slot]

Definition at line 605 of file kmfolderimap.cpp.

KMMessage * KMFolderImap::take ( int  idx  )  [virtual, slot]

Detach message from this folder.

Usable to call addMsg() afterwards. Loads the message if it is not loaded up to now.

Reimplemented from FolderStorage.

Definition at line 592 of file kmfolderimap.cpp.

KMFolder * KMFolderImap::trashFolder (  )  const [virtual]

Return the trash folder.

Reimplemented from FolderStorage.

Definition at line 134 of file kmfolderimap.cpp.

QString KMFolderImap::uidValidity (  )  [inline]

Definition at line 119 of file kmfolderimap.h.

unsigned int KMFolderImap::userRights (  )  const [inline]

The user's rights on this folder - see bitfield in ACLJobs namespace.

Returns:
0 when not known yet

Definition at line 296 of file kmfolderimap.h.

void KMFolderImap::writeConfig ( void   )  [virtual]

Write the config file.

Reimplemented from FolderStorage.

Definition at line 218 of file kmfolderimap.cpp.


Member Data Documentation

QPointer<KMAcctImap> KMFolderImap::mAccount [mutable, protected]

Definition at line 520 of file kmfolderimap.h.

bool KMFolderImap::mCheckFlags [protected]

Definition at line 517 of file kmfolderimap.h.

bool KMFolderImap::mCheckMail [protected]

Definition at line 519 of file kmfolderimap.h.

imapState KMFolderImap::mContentState [protected]

Definition at line 515 of file kmfolderimap.h.

QString KMFolderImap::mImapPath [protected]

Definition at line 513 of file kmfolderimap.h.

bool KMFolderImap::mIsSelected [protected]

Definition at line 516 of file kmfolderimap.h.

ulong KMFolderImap::mLastUid [protected]

Definition at line 514 of file kmfolderimap.h.

bool KMFolderImap::mReadOnly [protected]

Reimplemented from KMFolderMbox.

Definition at line 518 of file kmfolderimap.h.

imapState KMFolderImap::mSubfolderState [protected]

Definition at line 515 of file kmfolderimap.h.

QString KMFolderImap::mUidValidity [protected]

Definition at line 522 of file kmfolderimap.h.

unsigned int KMFolderImap::mUserRights [protected]

Definition at line 523 of file kmfolderimap.h.


The documentation for this class was generated from the following files:
  • kmfolderimap.h
  • kmfolderimap.cpp

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   akonadi_next
  •   clients
  •   kcal
  •   kcm
  •       libmaildir
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
Generated for kdepim by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal