#include <account.h>
Signals | |
void | sigDeleteReady (QString account) |
Will be emitted when all selected mails are deleted. | |
void | sigShowBodiesReady (QString account) |
Will be emitted when the bodies of all selected mails are downloaded and shown. | |
void | sigConfigChanged () |
Will be emitted when the settings have been changed. | |
void | sigMessageWindowOpened () |
Will be emitted, when a window to show a message was opened. | |
void | sigMessageWindowClosed () |
Will be emitted, when a window to show a message was closed. | |
void | sigRefreshReady (QString account) |
Will be emitted, when the mail list was refreshed. | |
Public Member Functions | |
Account (QString name, AccountList *accountList, QObject *parent) | |
Constructor. | |
~Account () | |
Destructor. | |
void | print () const |
Prints all data of this account to stdout. | |
QString | getName () const |
Returns the account name. | |
bool | isActive () const |
Returns whether the account is active. | |
void | setActive (bool active) |
Sets the account active. | |
void | load () |
Loads the options of this account from the application config. | |
void | refreshMailList (FilterLog *log=NULL) |
Refreshes the mail list. | |
QString | getPassword () const |
Gets the account password. | |
void | setPassword (const QString &password) |
Sets the account password. | |
void | setHost (const QString &host) |
Sets the host name. | |
QString | getHost () const |
Returns the hostname. | |
void | setProtocol (const QString &protocol) |
Sets the protocol. | |
QString | getProtocol (bool upperCase=false) const |
Returns the protocol. | |
void | setPort (unsigned short int port) |
Sets the port. | |
unsigned short int | getPort () const |
Returns the port number. | |
void | setUser (const QString &user) |
Sets the user. | |
QString | getUser () const |
Returns the user name. | |
void | setPasswordStorage (int storage) |
Sets the password storage type. | |
int | getPasswordStorage () const |
Returns the password storage type. The Constants are defined in constants.h. | |
Types::AccountState_Type | getState () |
Returns the state of the account. | |
bool | isUnsecureLoginAllowed () const |
Return whether an unsecure login is allowed. | |
int | getNumberMails () const |
Returns the number of mails if this account is active. Otherwise returns 0. | |
void | addMailToDelete (int number) |
Adds a mail number to the list of mails to delete. | |
void | addMailToShow (int number) |
Adds a mail number to the list of mails to show. | |
virtual void | deleteMails () |
Deletes mails which are listed in mailsToDelete. | |
int | numberDeletedMailsLastRefresh () |
Returns the number of deleted mails by last refresh. | |
int | numberDeletedMailsStart () |
Returns the number of deleted mails since start. | |
int | numberMovedMailsLastRefresh () |
Returns the number of moved mails by last refresh. | |
int | numberMovedMailsStart () |
Returns the number of moved mails since start. | |
int | numberIgnoredMails () |
Returns the number of ignored mails by last refresh. | |
void | reloadFilterSettings () |
Reloads the settings of the filters. | |
void | saveOptions (QDomDocument &doc, QDomElement &parent) |
Saves the stored mails into the given DOM document. | |
void | showMails () |
Downloads and shows the bodies of mails in mailsToShow . | |
int | getNumberNewMails () |
Returns the number of new mails. | |
long | getTotalSize () const |
Returns the total size (bytes) of all mails. | |
QString | getTotalSizeUnit () const |
Returns the total size of all mails with unit. | |
void | readStoredMails (QDomElement &parent) |
Gets the stored mails. | |
int | compare (Account *other, AccountSort_Type property) |
Compares this account with other and returns an integer less than, equal to, or greater than zero if this account is less than, equal to, or greater than other. | |
QList< Mail > | getAllMails () const |
Returns a list which contains the pointers to all mails. | |
void | cancelTask () |
Cancels the current running task. | |
AccountViewItem | getViewItem () |
Returns a appropriate view item. | |
Protected Slots | |
virtual void | slotConnected () |
Connected with signal connected of the socket. Will be invoked after the socket has connected the host. | |
virtual void | slotHostFound () |
Connected with signal hostFound of the socket. Will be invoked after the socket has done the DNS lookup. | |
void | slotSocketError (KTcpSocket::Error errorCode) |
Connected with signal error of the socket. Will be invoked, when an socket error occures. | |
void | slotSSLError (const QList< KSslError > &errors) |
Connected with signale sslErrors of the socket. | |
void | slotReadFirstServerMessage () |
Reads the first message send by server. | |
void | slotCapabilitiesResponse () |
Reads the capabilities from the server. | |
void | slotAuthMechResponse () |
Connected with the signal readyRead of the socket by getAuthMech(). Analyzes the response and sets the authentication mechanism flags of this account. | |
void | slotCommitResponse () |
Connected with signal readyRead of the socket by commit(). Analyzes the commit response of the server. | |
void | slotLoginUserResponse () |
Received the response of the USER command during login. | |
void | slotLoginPasswdResponse () |
Received the response of the PASS command during login. | |
void | slotLoginApopResponse () |
Receives the response of a login using APOP. | |
void | slotUIDListResponse () |
Reiceves the response of the UIDL command, which gets the UID's of the mails. | |
void | slotMailSizesResponse () |
Receives the response of the LIST command, which gets the numbers and sizes of the mails. | |
void | slotGetHeaderResponse () |
Receives the header requested by getNextHeader(). | |
void | slotMailDeleted () |
Removes the deleted mail from the internal mail list (m_pshowrecord). | |
void | slotBodyDownloaded () |
Opens a window (class ShowMailDialog) with the downloaded mail body. | |
void | slotMailDownloadedForAction () |
Downloads a mail to write it into a mailbox or do a spam check. | |
void | slotCommitBeforeRefreshDone () |
Restarts a second refresh cycle after a deletion performed by the filter. | |
void | slotTimeout () |
Connected with the timeout timer. | |
void | slotStartTLSResponse () |
Receives the response of the STLS command. | |
Protected Member Functions | |
void | init () |
Initiate the account. | |
bool | hasPassword () const |
Returns whether a password is stored. | |
bool | assertPassword (bool force=false) |
Opens a dialog to ask for a password, stores it temporarily in the account settings and emits the signal sigConfigChanged. | |
void | doConnect () |
Establishes a connection to the server. | |
void | closeConnection () |
Closes the connection. | |
void | initBeforeConnect () |
Initiates the account to do a connect. | |
void | handleError (QString error) |
Shows the given error, sets the state to idle and emits a ready signal if necessary. | |
QStringList | readfromSocket (bool singleLine) |
Reads all data from the socket. | |
void | sendCommand (const QString &command) |
Sends a command to the server. | |
void | getCapabilities () |
Gets the capabilities from the server. Sends the CAPA-command connect the socket with slot slotReceiveCapabilities(). | |
void | printServerMessage (QStringList &text) const |
Prints the a text received from the server to stdout. | |
bool | isPositiveServerMessage (QStringList &message) const |
Returns whether the server answer is positive or negative. | |
void | getAuthMech () |
Sends the command to get the authentication mechanism of this server. | |
virtual void | commit () |
Sends the commit command to end the session. | |
void | finishTask () |
Finishes the running task (Refreshing, Deleting, ...). | |
void | loginUser () |
Sends the login name. | |
void | loginPasswd () |
Sends the password for login. | |
void | loginApop () |
Initiates a login using APOP. | |
QString | removeStatusIndicator (const QString &message) |
Removes the status indicator from a single line server message. | |
void | removeStatusIndicator (QStringList *response) |
If the first line of the server response is the status indicator (+OK or -ERR), this methode will remove this line. | |
void | removeEndOfResponseMarker (QStringList *response) |
If the last line of the server response is the end of response marker, this methode will remove this line. | |
void | getUIDList () |
Sends the UIDL command to get a list of the mail UID's. | |
void | swapMailLists () |
Copies the pointer to the temporary list to the mail list. | |
void | getMailSizes () |
Sends the LIST command to get a list of mail sizes. | |
void | getHeaders () |
Gets the headers of the new mails from the server. | |
virtual void | getNextHeader () |
Get the header of the first mail in newMails. | |
bool | isNegativeResponse (const QString &response) |
Returns whether the given string is a negative server response. | |
void | copyHeaders () |
Copies the known headers of the old mails from the old mail list to the new one. | |
void | deleteNextMail () |
Deletes the first mail of MailsToDelete. | |
void | showNextMail () |
Shows the body of the first mail in MailsToShow. | |
void | doDownloadActions () |
Does all filter actions for which we have to download the mails. | |
void | getNextMailForDownloadActions () |
Gets the body of the first mail in MailsToDownload. | |
void | applyFiltersDeleted () |
If there are mails to delete by filters applyFilters will call the regular deletion cycle of this class with set byFilter-flag. | |
void | commitBeforeRefresh () |
Send a commit and restart the refresh cycle. | |
void | applyFilters () |
Applies the filters to the mails in the mail list. | |
bool | writeToMailBox (const QStringList &mail, const QString &box) |
Writes the given mail into the mailbox. | |
bool | isMailDir (const QDir &path) |
Returns whether the given directory is a maildir directory. | |
bool | isSpam (QStringList mail) const |
Forwards the given mail to SpamAssassin and returns the test result. | |
bool | isSpamAssassinRunning () const |
Looks for a running spamd daemon of SpamAssassin. | |
void | startTLS () |
Invites the server to crypt using TLS (STARTTLS). |
Definition at line 164 of file account.h.
Account::Account | ( | QString | name, | |
AccountList * | accountList, | |||
QObject * | parent | |||
) |
Constructor.
name | name of this account | |
accountList | pointer to the parent account list | |
parent | parent object |
Definition at line 21 of file account.cpp.
QString Account::getName | ( | ) | const |
bool Account::isActive | ( | ) | const |
Returns whether the account is active.
Definition at line 92 of file account.cpp.
void Account::setActive | ( | bool | active | ) |
Sets the account active.
active | TRUE - active account; FALSE - deactivate account |
Definition at line 97 of file account.cpp.
void Account::refreshMailList | ( | FilterLog * | log = NULL |
) |
Refreshes the mail list.
This just starts the refresh and returns after then. When the refresh is ready, the signal sigRefreshReady will be emitted.
log | pointer to the filter log |
Definition at line 166 of file account.cpp.
QString Account::getPassword | ( | ) | const |
void Account::setPassword | ( | const QString & | password | ) |
Sets the account password.
password | new password |
Definition at line 223 of file account.cpp.
void Account::setHost | ( | const QString & | host | ) |
QString Account::getHost | ( | ) | const |
Returns the hostname.
Definition at line 253 of file account.cpp.
void Account::setProtocol | ( | const QString & | protocol | ) |
QString Account::getProtocol | ( | bool | upperCase = false |
) | const |
Returns the protocol.
upperCase | TRUE - transforms the protocol string to upper case |
Definition at line 258 of file account.cpp.
void Account::setPort | ( | unsigned short int | port | ) |
unsigned short int Account::getPort | ( | ) | const |
void Account::setUser | ( | const QString & | user | ) |
QString Account::getUser | ( | ) | const |
Returns the user name.
Definition at line 248 of file account.cpp.
void Account::setPasswordStorage | ( | int | storage | ) |
Sets the password storage type.
The Constants are defined in constants.h
storage | type of password storage; valid values are: CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET |
Definition at line 333 of file account.cpp.
int Account::getPasswordStorage | ( | ) | const |
Returns the password storage type. The Constants are defined in constants.h.
Definition at line 346 of file account.cpp.
Types::AccountState_Type Account::getState | ( | ) |
Returns the state of the account.
Definition at line 1108 of file account.cpp.
bool Account::isUnsecureLoginAllowed | ( | ) | const |
Return whether an unsecure login is allowed.
Definition at line 1113 of file account.cpp.
int Account::getNumberMails | ( | ) | const |
Returns the number of mails if this account is active. Otherwise returns 0.
Definition at line 1572 of file account.cpp.
void Account::addMailToDelete | ( | int | number | ) |
Adds a mail number to the list of mails to delete.
The number is the mail number given by the mail server.
number | mail number |
Definition at line 1579 of file account.cpp.
void Account::addMailToShow | ( | int | number | ) |
Adds a mail number to the list of mails to show.
The number is the mail number given by the mail server.
number | mail number |
Definition at line 1584 of file account.cpp.
void Account::deleteMails | ( | ) | [virtual] |
Deletes mails which are listed in mailsToDelete.
This just starts the deletion and returns after then. When the deletion is ready the signal sigDeleteReady will be emitted.
Definition at line 1589 of file account.cpp.
int Account::numberDeletedMailsLastRefresh | ( | ) |
Returns the number of deleted mails by last refresh.
Definition at line 1786 of file account.cpp.
int Account::numberDeletedMailsStart | ( | ) |
Returns the number of deleted mails since start.
Definition at line 1791 of file account.cpp.
int Account::numberMovedMailsLastRefresh | ( | ) |
Returns the number of moved mails by last refresh.
Definition at line 1796 of file account.cpp.
int Account::numberMovedMailsStart | ( | ) |
Returns the number of moved mails since start.
Definition at line 1801 of file account.cpp.
int Account::numberIgnoredMails | ( | ) |
Returns the number of ignored mails by last refresh.
Definition at line 1806 of file account.cpp.
void Account::reloadFilterSettings | ( | ) |
Reloads the settings of the filters.
It just calls the load() methode of the header filter.
Definition at line 1811 of file account.cpp.
void Account::saveOptions | ( | QDomDocument & | doc, | |
QDomElement & | parent | |||
) |
Saves the stored mails into the given DOM document.
It doesn't create a new DOM element but used the given one. Saves the setup into the application config.
doc | DOM document which contains all application settings, mails and account settings | |
parent | DOM element in which all settings and mails of this account will be saved |
Definition at line 2027 of file account.cpp.
void Account::showMails | ( | ) |
Downloads and shows the bodies of mails in mailsToShow
.
This just starts the download and returns after then. When the download is ready and the body is shown the sigShowBodiesReady will be emitted.
Definition at line 2041 of file account.cpp.
int Account::getNumberNewMails | ( | ) |
Returns the number of new mails.
Definition at line 2222 of file account.cpp.
long Account::getTotalSize | ( | ) | const |
Returns the total size (bytes) of all mails.
Definition at line 2227 of file account.cpp.
void Account::readStoredMails | ( | QDomElement & | parent | ) |
Gets the stored mails.
parent | DOM element which contains the mails of this account |
Definition at line 2295 of file account.cpp.
int Account::compare | ( | Account * | other, | |
AccountSort_Type | property | |||
) |
Compares this account with other and returns an integer less than, equal to, or greater than zero if this account is less than, equal to, or greater than other.
other | other account | |
property | the account property which will be compared |
Definition at line 2301 of file account.cpp.
QList< Mail > Account::getAllMails | ( | ) | const |
Returns a list which contains the pointers to all mails.
Definition at line 2355 of file account.cpp.
AccountViewItem Account::getViewItem | ( | ) |
bool Account::hasPassword | ( | ) | const [protected] |
Returns whether a password is stored.
Definition at line 213 of file account.cpp.
bool Account::assertPassword | ( | bool | force = false |
) | [protected] |
Opens a dialog to ask for a password, stores it temporarily in the account settings and emits the signal sigConfigChanged.
Does not open a dialog if a password is already stored in the account settings.
force | ask for a new password even if a password is stored |
true
- a password is available; false
- no password is available Definition at line 271 of file account.cpp.
void Account::initBeforeConnect | ( | ) | [protected] |
Initiates the account to do a connect.
It also creates the socket.
Definition at line 404 of file account.cpp.
void Account::handleError | ( | QString | error | ) | [protected] |
Shows the given error, sets the state to idle and emits a ready signal if necessary.
error | the error message |
Definition at line 508 of file account.cpp.
QStringList Account::readfromSocket | ( | bool | singleLine | ) | [protected] |
Reads all data from the socket.
singleLine | TRUE - the response will be a single line; FALSE - the response has more lines |
Definition at line 544 of file account.cpp.
void Account::sendCommand | ( | const QString & | command | ) | [protected] |
Sends a command to the server.
command | the command to send |
Definition at line 690 of file account.cpp.
void Account::getCapabilities | ( | ) | [protected] |
Gets the capabilities from the server. Sends the CAPA-command connect the socket with slot slotReceiveCapabilities().
Definition at line 720 of file account.cpp.
void Account::printServerMessage | ( | QStringList & | text | ) | const [protected] |
Prints the a text received from the server to stdout.
text | server message |
Definition at line 771 of file account.cpp.
bool Account::isPositiveServerMessage | ( | QStringList & | message | ) | const [protected] |
Returns whether the server answer is positive or negative.
message | server message |
Definition at line 786 of file account.cpp.
void Account::getAuthMech | ( | ) | [protected] |
Sends the command to get the authentication mechanism of this server.
Connects the signal readyRead of the socket with the slot slotAuthMechResponse(). If the socket has got the server response it will send this signal
Definition at line 798 of file account.cpp.
void Account::commit | ( | ) | [protected, virtual] |
Sends the commit command to end the session.
Connects the signal readyRead of the socket with the slot slotCommitResponse().
Definition at line 867 of file account.cpp.
void Account::finishTask | ( | ) | [protected] |
Finishes the running task (Refreshing, Deleting, ...).
Emits the proper ready signal and closes the connection
Definition at line 888 of file account.cpp.
void Account::loginUser | ( | ) | [protected] |
Sends the login name.
The response will be received by slotLoginUserResponse().
Definition at line 939 of file account.cpp.
void Account::loginPasswd | ( | ) | [protected] |
Sends the password for login.
The response will be received by slotLoginPasswdResponse().
Definition at line 973 of file account.cpp.
void Account::loginApop | ( | ) | [protected] |
Initiates a login using APOP.
The response will be received by slotLoginApopResponse().
Definition at line 1032 of file account.cpp.
QString Account::removeStatusIndicator | ( | const QString & | message | ) | [protected] |
Removes the status indicator from a single line server message.
message | server message |
Definition at line 1013 of file account.cpp.
void Account::getUIDList | ( | ) | [protected] |
Sends the UIDL command to get a list of the mail UID's.
The response will be received by the slotUIDListResponse.
Definition at line 1118 of file account.cpp.
void Account::swapMailLists | ( | ) | [protected] |
Copies the pointer to the temporary list to the mail list.
The temporary list will be the current mail list.
Definition at line 1248 of file account.cpp.
void Account::getMailSizes | ( | ) | [protected] |
Sends the LIST command to get a list of mail sizes.
The response will be received by slotMailListResponse.
Definition at line 1351 of file account.cpp.
void Account::getNextHeader | ( | ) | [protected, virtual] |
Get the header of the first mail in newMails.
After a successful download this mail will be removed from the list by slotHeaderDownloaded() and this method will be invoked again. If the list is empty, it will call copyHeaders() to get the known headers from the old mail list.
slotHeaderDownloaded()
Definition at line 1474 of file account.cpp.
bool Account::isNegativeResponse | ( | const QString & | response | ) | [protected] |
Returns whether the given string is a negative server response.
response | server response to check |
FALSE - response is positive
Definition at line 1541 of file account.cpp.
void Account::copyHeaders | ( | ) | [protected] |
Copies the known headers of the old mails from the old mail list to the new one.
At the end it invokes swapMailLists().
Definition at line 1547 of file account.cpp.
void Account::deleteNextMail | ( | ) | [protected] |
Deletes the first mail of MailsToDelete.
After a successful deletion this mail will be removed from the list by slotMailDeleted() and this method will be invoked again. If the list is empty, it will call commitDelete.
MailsToDelete
Definition at line 1615 of file account.cpp.
void Account::showNextMail | ( | ) | [protected] |
Shows the body of the first mail in MailsToShow.
After a successful download and opening of the window this mail will be removed from the list by slotBodyDownloaded() and this method will be invoked again. If the list is empty, it will call commitDownloading().
Definition at line 1639 of file account.cpp.
void Account::doDownloadActions | ( | ) | [protected] |
Does all filter actions for which we have to download the mails.
These are: Moving, spam check It doesn't removes they from the server.
Definition at line 1816 of file account.cpp.
void Account::getNextMailForDownloadActions | ( | ) | [protected] |
Gets the body of the first mail in MailsToDownload.
After a successful download and writing into the mailbox this mail will be removed from the list by slotMailDownloadedforDownloadActions() and this method will be invoked again. If the list is empty, it will call applyFilters() to continue the filtering.
slotMailDownloadedforDownloadActions()
Definition at line 1822 of file account.cpp.
void Account::applyFiltersDeleted | ( | ) | [protected] |
If there are mails to delete by filters applyFilters will call the regular deletion cycle of this class with set byFilter-flag.
Therefore the deletion will not branch to commitDeletion() but to this methode. This performs a second refresh cycle to get an effective mail list from the server. This new cycle will not apply the filters again, because the flag filterApplied is set to TRUE.
filterApplied
Definition at line 1987 of file account.cpp.
void Account::commitBeforeRefresh | ( | ) | [protected] |
Send a commit and restart the refresh cycle.
We restart the refresh to get a fresh maillist after a deletion performed by the filter. We need a commit before because the mails server only after a commit reorders the mail numbers
Definition at line 1999 of file account.cpp.
void Account::applyFilters | ( | ) | [protected] |
Applies the filters to the mails in the mail list.
step of the refresh cycle. Invoked by swapMailLists(). This methode maybe starts a new refresh cycle because after a deletion or moving we need a actual list of mails on the server. To avoid a never-ending loop you must not call this methode during the second refresh cycle. Therefore it sets filterApplied to TRUE.
Definition at line 1284 of file account.cpp.
bool Account::writeToMailBox | ( | const QStringList & | mail, | |
const QString & | box | |||
) | [protected] |
Writes the given mail into the mailbox.
the Mail | ||
box | path to the mailbox |
Definition at line 2067 of file account.cpp.
bool Account::isMailDir | ( | const QDir & | path | ) | [protected] |
Returns whether the given directory is a maildir directory.
path | the directory for test |
Definition at line 2133 of file account.cpp.
bool Account::isSpam | ( | QStringList | ) | const [protected] |
Forwards the given mail to SpamAssassin and returns the test result.
the mail to test |
Definition at line 2160 of file account.cpp.
bool Account::isSpamAssassinRunning | ( | ) | const [protected] |
Looks for a running spamd daemon of SpamAssassin.
Definition at line 2197 of file account.cpp.
void Account::slotSocketError | ( | KTcpSocket::Error | errorCode | ) | [protected, slot] |
Connected with signal error of the socket. Will be invoked, when an socket error occures.
errorCode | Error code of the socket |
Definition at line 455 of file account.cpp.
void Account::slotSSLError | ( | const QList< KSslError > & | errors | ) | [protected, slot] |
Connected with signale sslErrors of the socket.
Will be invoked, when a ssl socket error occures.
errors | list of errors |
Definition at line 2254 of file account.cpp.
void Account::slotCapabilitiesResponse | ( | ) | [protected, slot] |
Reads the capabilities from the server.
Definition at line 730 of file account.cpp.
void Account::slotAuthMechResponse | ( | ) | [protected, slot] |
Connected with the signal readyRead of the socket by getAuthMech(). Analyzes the response and sets the authentication mechanism flags of this account.
Definition at line 808 of file account.cpp.
void Account::slotCommitResponse | ( | ) | [protected, slot] |
Connected with signal readyRead of the socket by commit(). Analyzes the commit response of the server.
Definition at line 916 of file account.cpp.
void Account::slotLoginUserResponse | ( | ) | [protected, slot] |
Received the response of the USER command during login.
Definition at line 949 of file account.cpp.
void Account::slotLoginPasswdResponse | ( | ) | [protected, slot] |
Received the response of the PASS command during login.
Definition at line 983 of file account.cpp.
void Account::slotLoginApopResponse | ( | ) | [protected, slot] |
Receives the response of a login using APOP.
Definition at line 1047 of file account.cpp.
void Account::slotUIDListResponse | ( | ) | [protected, slot] |
Reiceves the response of the UIDL command, which gets the UID's of the mails.
Definition at line 1128 of file account.cpp.
void Account::slotMailSizesResponse | ( | ) | [protected, slot] |
Receives the response of the LIST command, which gets the numbers and sizes of the mails.
Definition at line 1361 of file account.cpp.
void Account::slotGetHeaderResponse | ( | ) | [protected, slot] |
Receives the header requested by getNextHeader().
Stores the received headers into the appropriate instance of the mail list. Removes the first mail from newMails and invokes getNextHeader() again to get the next header. If the list is empty after it has removed the first item, it will call copyHeaders().
Definition at line 1495 of file account.cpp.
void Account::slotMailDeleted | ( | ) | [protected, slot] |
Removes the deleted mail from the internal mail list (m_pshowrecord).
Removes the first mail from MailsToDelete and invokes deleteNextMail() again to delete the next mail. If the list is empty after it has removed the first item, it will call commitDelete().
MailsToDelete
Definition at line 1657 of file account.cpp.
void Account::slotBodyDownloaded | ( | ) | [protected, slot] |
Opens a window (class ShowMailDialog) with the downloaded mail body.
Removes the first mail from MailsToShow and invokes showNextMail() again to show the next mail. If the list is empty after it has removed the first item, it will call commitDownloading().
MailsToShow
Definition at line 1700 of file account.cpp.
void Account::slotMailDownloadedForAction | ( | ) | [protected, slot] |
Downloads a mail to write it into a mailbox or do a spam check.
Maybe it puts the number of the downloaded mail into the list of mails to delete (mailsToDelete). Removes the first mail from MailsToMove and invokes getNextMailForMove() again to get and write the next mail. If the list is empty after it has removed the first item, it will call applyFilters() to continue the filtering. If an error is occurred the current mail will not put into MailsToDelete. And it returns to applyFilters() immediately.
Definition at line 1841 of file account.cpp.
void Account::slotCommitBeforeRefreshDone | ( | ) | [protected, slot] |
Restarts a second refresh cycle after a deletion performed by the filter.
Definition at line 2021 of file account.cpp.
void Account::slotTimeout | ( | ) | [protected, slot] |
Connected with the timeout timer.
Closes the server connect and finishes the task
Definition at line 2363 of file account.cpp.
void Account::sigDeleteReady | ( | QString | account | ) | [signal] |
Will be emitted when all selected mails are deleted.
account | name of the account, which has emitted this signal |
void Account::sigShowBodiesReady | ( | QString | account | ) | [signal] |
Will be emitted when the bodies of all selected mails are downloaded and shown.
account | name of the account, which has emitted this signal |
void Account::sigRefreshReady | ( | QString | account | ) | [signal] |
Will be emitted, when the mail list was refreshed.
account | name of the account, which has emitted this signal |