kmail
KMAcctImap Class Reference
#include <kmacctimap.h>
Public Slots | |
void | slotFiltered (Q_UINT32 serNum) |
void | slotUpdateFolderList () |
Public Member Functions | |
void | execFilters (Q_UINT32 serNum) |
virtual void | ignoreJobsForFolder (KMFolder *folder) |
virtual void | ignoreJobsForMessage (KMMessage *msg) |
virtual void | killAllJobs (bool disconnectSlave=false) |
virtual void | listDirectory () |
ConnectionState | makeConnection () |
virtual void | processNewMail (bool) |
virtual void | pseudoAssign (const KMAccount *a) |
virtual void | readConfig (KConfig &config) |
virtual void | removeSlaveJobsForFolder (KMFolder *folder) |
virtual FolderStorage *const | rootFolder () const |
virtual void | setImapFolder (KMFolderImap *) |
virtual QString | type (void) const |
virtual | ~KMAcctImap () |
Protected Slots | |
void | postProcessNewMail (KMFolder *f) |
void | postProcessNewMail (KMFolderImap *, bool) |
int | slotFilterMsg (KMMessage *) |
void | slotFolderSelected (KMFolderImap *, bool) |
void | slotMailCheckCanceled () |
void | slotResetConnectionError () |
Protected Member Functions | |
virtual void | cancelMailCheck () |
virtual bool | handleError (int error, const QString &errorMsg, KIO::Job *job, const QString &context, bool abortSync=false) |
KMAcctImap (AccountManager *owner, const QString &accountName, uint id) | |
Protected Attributes | |
QGuardedPtr< KMFolderImap > | mFolder |
QPtrList< KMail::ImapJob > | mJobList |
Detailed Description
Definition at line 40 of file kmacctimap.h.
Constructor & Destructor Documentation
KMAcctImap::~KMAcctImap | ( | ) | [virtual] |
Definition at line 86 of file kmacctimap.cpp.
KMAcctImap::KMAcctImap | ( | AccountManager * | owner, | |
const QString & | accountName, | |||
uint | id | |||
) | [protected] |
Definition at line 58 of file kmacctimap.cpp.
Member Function Documentation
void KMAcctImap::cancelMailCheck | ( | ) | [protected, virtual] |
Abort all running mail checks.
Used when exiting.
Reimplemented from KMail::ImapAccountBase.
Definition at line 249 of file kmacctimap.cpp.
void KMAcctImap::execFilters | ( | Q_UINT32 | serNum | ) |
bool KMAcctImap::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 See ImapAccountBase::handleJobError for details.
Reimplemented from KMail::ImapAccountBase.
Definition at line 128 of file kmacctimap.cpp.
void KMAcctImap::ignoreJobsForFolder | ( | KMFolder * | folder | ) | [virtual] |
Definition at line 218 of file kmacctimap.cpp.
void KMAcctImap::ignoreJobsForMessage | ( | KMMessage * | msg | ) | [virtual] |
Kill all jobs related the the specified folder/msg.
Reimplemented from KMAccount.
Definition at line 202 of file kmacctimap.cpp.
void KMAcctImap::killAllJobs | ( | bool | disconnectSlave = false |
) | [virtual] |
Kill the slave if any jobs are active.
Implements KMail::ImapAccountBase.
Definition at line 142 of file kmacctimap.cpp.
void KMAcctImap::listDirectory | ( | ) | [virtual] |
ImapAccountBase::ConnectionState KMAcctImap::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 from KMail::ImapAccountBase.
Definition at line 555 of file kmacctimap.cpp.
void KMAcctImap::postProcessNewMail | ( | KMFolder * | f | ) | [protected, slot] |
new-mail-notification for not-selected folders (is called via numUnreadMsgsChanged)
Definition at line 390 of file kmacctimap.cpp.
void KMAcctImap::postProcessNewMail | ( | KMFolderImap * | folder, | |
bool | ||||
) | [protected, slot] |
new-mail-notification for the current folder (is called via folderComplete)
Definition at line 383 of file kmacctimap.cpp.
void KMAcctImap::processNewMail | ( | bool | interactive | ) | [virtual] |
Process new mail for this account if one arrived.
Returns TRUE if new mail has been found. Whether the mail is automatically loaded to an associated folder or not depends on the type of the account.
Implements KMAccount.
Definition at line 272 of file kmacctimap.cpp.
void KMAcctImap::pseudoAssign | ( | const KMAccount * | a | ) | [virtual] |
A weak assignment operator.
Reimplemented from KMail::ImapAccountBase.
Definition at line 108 of file kmacctimap.cpp.
void KMAcctImap::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::ImapAccountBase.
Definition at line 536 of file kmacctimap.cpp.
void KMAcctImap::removeSlaveJobsForFolder | ( | KMFolder * | folder | ) | [virtual] |
Definition at line 233 of file kmacctimap.cpp.
FolderStorage *const KMAcctImap::rootFolder | ( | ) | const [virtual] |
Returns the root folder of this account.
Implements KMail::ImapAccountBase.
Definition at line 550 of file kmacctimap.cpp.
void KMAcctImap::setImapFolder | ( | KMFolderImap * | aFolder | ) | [virtual] |
void KMAcctImap::slotFiltered | ( | Q_UINT32 | serNum | ) | [slot] |
int KMAcctImap::slotFilterMsg | ( | KMMessage * | msg | ) | [protected, slot] |
Definition at line 590 of file kmacctimap.cpp.
void KMAcctImap::slotFolderSelected | ( | KMFolderImap * | folder, | |
bool | ||||
) | [protected, slot] |
void KMAcctImap::slotMailCheckCanceled | ( | ) | [protected, slot] |
hooked up to the progress item signaling cancellation.
Cleanup and reset state.
Definition at line 542 of file kmacctimap.cpp.
void KMAcctImap::slotResetConnectionError | ( | ) | [protected, slot] |
void KMAcctImap::slotUpdateFolderList | ( | ) | [slot] |
Definition at line 505 of file kmacctimap.cpp.
QString KMAcctImap::type | ( | void | ) | const [virtual] |
Member Data Documentation
QGuardedPtr<KMFolderImap> KMAcctImap::mFolder [protected] |
QPtrList<KMail::ImapJob> KMAcctImap::mJobList [protected] |
The documentation for this class was generated from the following files: