kmail
KMail::ListJob Class Reference
Generic folder list job for (d)imap accounts. More...
#include <listjob.h>
Detailed Description
Generic folder list job for (d)imap accounts.Definition at line 54 of file listjob.h.
Constructor & Destructor Documentation
ListJob::ListJob | ( | ImapAccountBase * | account, | |
ImapAccountBase::ListType | type, | |||
FolderStorage * | storage = 0 , |
|||
const QString & | path = QString::null , |
|||
bool | complete = false , |
|||
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 complete list all folders or only next level path the listing path; if empty the path of the folder will be taken item a parent ProgressItem
Definition at line 53 of file listjob.cpp.
ListJob::~ListJob | ( | ) | [virtual] |
Definition at line 64 of file listjob.cpp.
Member Function Documentation
void ListJob::execute | ( | ) | [virtual] |
Has to be reimplemented.
It's called by the start() method. Should start the processing of the specified job function.
Implements KMail::FolderJob.
Definition at line 68 of file listjob.cpp.
bool KMail::ListJob::honorLocalSubscription | ( | ) | const |
Return whether the listing includes only folders that the account is subscribed to locally.
This is different from the server side subscription managed by the ctor parameter.
Definition at line 250 of file listjob.cpp.
void KMail::ListJob::receivedFolders | ( | const QStringList & | , | |
const QStringList & | , | |||
const QStringList & | , | |||
const QStringList & | , | |||
const ImapAccountBase::jobData & | ||||
) | [signal] |
Emitted when new folders have been received.
void KMail::ListJob::setComplete | ( | bool | complete | ) | [inline] |
void KMail::ListJob::setHonorLocalSubscription | ( | bool | value | ) |
Set whether the listing should include only folders that the account is subscribed to locally.
This is different from the server side subscription managed by the ctor parameter.
Definition at line 245 of file listjob.cpp.
void KMail::ListJob::setNamespace | ( | const QString & | ns | ) | [inline] |
void KMail::ListJob::setParentProgressItem | ( | KPIM::ProgressItem * | it | ) | [inline] |
void KMail::ListJob::setPath | ( | const QString & | path | ) | [inline] |
void KMail::ListJob::setStorage | ( | FolderStorage * | st | ) | [inline] |
void ListJob::slotConnectionResult | ( | int | errorCode, | |
const QString & | errorMsg | |||
) | [protected, slot] |
Called from the account when a connection was established.
Definition at line 154 of file listjob.cpp.
void ListJob::slotListEntries | ( | KIO::Job * | job, | |
const KIO::UDSEntryList & | uds | |||
) | [protected, slot] |
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.
Definition at line 166 of file listjob.cpp.
Member Data Documentation
ImapAccountBase* KMail::ListJob::mAccount [protected] |
bool KMail::ListJob::mComplete [protected] |
bool KMail::ListJob::mHonorLocalSubscription [protected] |
QString KMail::ListJob::mNamespace [protected] |
KPIM::ProgressItem* KMail::ListJob::mParentProgressItem [protected] |
QString KMail::ListJob::mPath [protected] |
FolderStorage* KMail::ListJob::mStorage [protected] |
QStringList KMail::ListJob::mSubfolderAttributes [protected] |
QStringList KMail::ListJob::mSubfolderMimeTypes [protected] |
QStringList KMail::ListJob::mSubfolderNames [protected] |
QStringList KMail::ListJob::mSubfolderPaths [protected] |
ImapAccountBase::ListType KMail::ListJob::mType [protected] |
The documentation for this class was generated from the following files: