#include </home/clem/local/src/opie/noncore/unsupported/mailit/emailhandler.h>
Collaboration diagram for EmailHandler:

Public Slots | |
| void | messageArrived (const QString &, int id, uint size, bool complete) |
Signals | |
| void | mailSent () |
| void | smtpError (int, const QString &Msg) |
| void | popError (int, const QString &Msg) |
| void | mailArrived (const Email &, bool) |
| void | updatePopStatus (const QString &) |
| void | updateSmtpStatus (const QString &) |
| void | mailTransfered (int) |
| void | mailboxSize (int) |
| void | currentMailSize (int) |
| void | downloadedSize (int) |
Public Member Functions | |
| EmailHandler () | |
| void | setAccount (MailAccount account) |
| MailAccount * | getAccount () |
| void | sendMail (QList< Email > *mailList) |
| void | getMail () |
| void | getMailHeaders () |
| void | getMailByList (MailList *mailList) |
| bool | parse (const QString &in, const QString &lineShift, Email *mail) |
| bool | getEnclosure (Enclosure *ePtr) |
| int | parse64base (char *src, char *dest) |
| int | encodeMime (Email *mail) |
| int | encodeFile (const QString &fileName, QString *toBody) |
| void | encode64base (char *src, QString *dest, int len) |
| void | cancel () |
Private Attributes | |
| MailAccount | mailAccount |
| SmtpClient * | smtpClient |
| PopClient * | popClient |
| bool | headers |
|
|
Definition at line 40 of file emailhandler.cpp. References currentMailSize(), downloadedSize(), mailSent(), mailTransfered(), messageArrived(), popClient, popError(), qDebug(), smtpClient, smtpError(), updatePopStatus(), and updateSmtpStatus(). |
|
|
Definition at line 625 of file emailhandler.cpp. References ErrCancel, SmtpClient::errorHandling(), PopClient::errorHandling(), popClient, and smtpClient. Referenced by EmailClient::cancel(). |
|
|
Referenced by EmailHandler(). |
|
|
Referenced by EmailHandler(). |
|
||||||||||||||||
|
Definition at line 564 of file emailhandler.cpp. References QString::append(), and Opie::MM::x. Referenced by encodeFile(). |
|
||||||||||||
|
Definition at line 522 of file emailhandler.cpp. References QString::append(), QFile::close(), encode64base(), f, IO_ReadOnly, QFile::open(), qWarning(), QTextStream::readRawBytes(), s, and QFile::size(). Referenced by encodeMime(). |
|
|
Definition at line 442 of file emailhandler.cpp. References QValueList< T >::begin(), Email::body, Email::carbonCopies, Enclosure::contentType, MailAccount::emailAddress, encodeFile(), QValueList< T >::end(), QFileInfo::fileName(), Email::files, QString::isEmpty(), mailAccount, MailAccount::name, Enclosure::originalName, Email::rawMail, Email::recipients, and Email::subject. Referenced by sendMail(). |
|
|
Definition at line 115 of file emailhandler.h. References mailAccount. Referenced by EmailClient::mailArrived(). |
|
|
Definition at line 350 of file emailhandler.cpp. References Enclosure::body, Enclosure::encoding, f, FALSE, IO_WriteOnly, QString::latin1(), QString::length(), Enclosure::name, QFile::open(), parse64base(), Enclosure::path, pos, qWarning(), size, t, TRUE, QString::upper(), QFile::writeBlock(), and Opie::MM::x. Referenced by EmailClient::mailArrived(). |
|
|
|
Definition at line 126 of file emailhandler.cpp. References MailList::count(), FALSE, headers, PopClient::headersOnly(), mailAccount, mailTransfered(), PopClient::newConnection(), popClient, MailAccount::popPasswd, MailAccount::popServer, MailAccount::popUserName, PopClient::setAccount(), and PopClient::setSelectedMails(). Referenced by EmailClient::download(). |
|
|
Definition at line 115 of file emailhandler.cpp. References headers, PopClient::headersOnly(), MailAccount::lastServerMailCount, mailAccount, PopClient::newConnection(), popClient, MailAccount::popPasswd, MailAccount::popServer, MailAccount::popUserName, qDebug(), PopClient::removeSynchronize(), PopClient::setAccount(), PopClient::setSynchronize(), MailAccount::synchronize, MailAccount::syncLimit, and TRUE. Referenced by EmailClient::getNewMail(). |
|
||||||||||||
|
Referenced by messageArrived(). |
|
|
|
|
|
Referenced by EmailHandler(). |
|
|
Referenced by EmailHandler(), and getMailByList(). |
|
||||||||||||||||||||
|
Definition at line 141 of file emailhandler.cpp. References Email::downloaded, FALSE, mailArrived(), Email::rawMail, Email::serverId, and Email::size. Referenced by EmailHandler(). |
|
||||||||||||||||
|
||||||||||||
|
Definition at line 396 of file emailhandler.cpp. References Opie::MM::x. Referenced by getEnclosure(). |
|
||||||||||||
|
Referenced by EmailHandler(). |
|
|
Definition at line 70 of file emailhandler.cpp. References SmtpClient::addMail(), MailAccount::emailAddress, encodeMime(), mailAccount, SmtpClient::newConnection(), QString::null, qApp, Email::rawMail, Email::recipients, smtpClient, MailAccount::smtpServer, Email::subject, tr, and warning(). Referenced by EmailClient::sendQuedMail(). |
|
|
Definition at line 96 of file emailhandler.cpp. References mailAccount. Referenced by EmailClient::download(), and EmailClient::setMailAccount(). |
|
||||||||||||
|
Referenced by EmailHandler(). |
|
|
Referenced by EmailHandler(). |
|
|
Referenced by EmailHandler(). |
|
|
Definition at line 147 of file emailhandler.h. Referenced by getMail(), getMailByList(), and getMailHeaders(). |
|
|
Definition at line 144 of file emailhandler.h. Referenced by encodeMime(), getAccount(), getMail(), getMailByList(), getMailHeaders(), sendMail(), and setAccount(). |
|
|
Definition at line 146 of file emailhandler.h. Referenced by cancel(), EmailHandler(), getMail(), getMailByList(), and getMailHeaders(). |
|
|
Definition at line 145 of file emailhandler.h. Referenced by cancel(), EmailHandler(), and sendMail(). |
1.4.2