KDE PIM / Developers / API Docs / kmail

KMail::ListJob Class Reference

Generic folder list job for (d)imap accounts. More...

#include <listjob.h>

Inherits KMail::FolderJob.

List of all members.

Signals

Public Member Functions

Protected Slots

Protected Member Functions

Protected Attributes


Detailed Description

Generic folder list job for (d)imap accounts.


Constructor & Destructor Documentation

ListJob::ListJob FolderStorage storage,
ImapAccountBase *  account,
ImapAccountBase::ListType  type,
bool  secondStep = false,
bool  complete = false,
bool  hasInbox = false,
const QString &  path = QString::null,
KPIM::ProgressItem *  item = 0
 

Create a new job.

Parameters:
storage the parent folder, either provide this or a path
account the ImapAccountBase
type Type of subscription
secondStep if this is the second listing (when a prefix is set)
complete list all folders or only next level
hasInbox if you already have an inbox
path the listing path; if empty the path of the folder will be taken
item a parent ProgressItem

Member Function Documentation

void KMail::ListJob::doListing const KURL &  url,
const ImapAccountBase::jobData jd
[protected]
 

Does the actual KIO::listDir.

void ListJob::slotListResult KIO::Job *  job  )  [protected, slot]
 

Is called when the listing is done Passes the folders and the jobData to the responding folder.

void ListJob::slotListEntries KIO::Job *  job,
const KIO::UDSEntryList &  uds
[protected, slot]
 

Collects the folder information.

void ListJob::slotConnectionResult int  errorCode,
const QString &  errorMsg
[protected, slot]
 

Called from the account when a connection was established.

void KMail::ListJob::receivedFolders const QStringList &  ,
const QStringList &  ,
const QStringList &  ,
const QStringList &  ,
const ImapAccountBase::jobData
[signal]
 

Emitted when new folders have been received.


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