#include <popaccount.h>
Inherits KMail::NetworkAccount.
|
| enum | Stage {
Idle
, List
, Uidl
, Head
,
Retr
, Dele
, Quit
} |
| |
KMail account for pop mail account.
Definition at line 27 of file popaccount.h.
◆ Stage
| enum KMail::PopAccount::Stage |
|
protected |
◆ ~PopAccount()
| KMail::PopAccount::~PopAccount |
( |
| ) |
|
|
virtual |
◆ PopAccount()
| KMail::PopAccount::PopAccount |
( |
AccountManager * |
owner, |
|
|
const TQString & |
accountName, |
|
|
uint |
id |
|
) |
| |
|
protected |
◆ connectJob()
| void KMail::PopAccount::connectJob |
( |
| ) |
|
|
protected |
Connect up the standard signals/slots for the TDEIO Jobs.
Definition at line 287 of file popaccount.cpp.
◆ defaultPort()
| unsigned short int KMail::PopAccount::defaultPort |
( |
| ) |
const |
|
virtual |
◆ filterOnServer()
| bool KMail::PopAccount::filterOnServer |
( |
void |
| ) |
const |
|
inline |
Shall messages be filter on the server (true) or not (false).
Definition at line 78 of file popaccount.h.
◆ filterOnServerCheckSize()
| unsigned int KMail::PopAccount::filterOnServerCheckSize |
( |
void |
| ) |
const |
|
inline |
Size of messages which should be check on the pop server before download.
Definition at line 85 of file popaccount.h.
◆ init()
| void KMail::PopAccount::init |
( |
void |
| ) |
|
|
virtual |
◆ killAllJobs()
| void KMail::PopAccount::killAllJobs |
( |
bool |
disconnectSlave = false | ) |
|
|
virtual |
◆ leaveOnServer()
| bool KMail::PopAccount::leaveOnServer |
( |
void |
| ) |
const |
|
inline |
Shall messages be left on the server upon retreival (true) or deleted (false).
Definition at line 53 of file popaccount.h.
◆ leaveOnServerCount()
| int KMail::PopAccount::leaveOnServerCount |
( |
void |
| ) |
const |
|
inline |
If value is positive, leave so many messages on the server.
Definition at line 65 of file popaccount.h.
◆ leaveOnServerDays()
| int KMail::PopAccount::leaveOnServerDays |
( |
void |
| ) |
const |
|
inline |
If value is positive, leave mail on the server for so many days.
Definition at line 59 of file popaccount.h.
◆ leaveOnServerSize()
| int KMail::PopAccount::leaveOnServerSize |
( |
void |
| ) |
const |
|
inline |
If value is positive, leave so many MBs on the server.
Definition at line 71 of file popaccount.h.
◆ processNewMail()
| void KMail::PopAccount::processNewMail |
( |
bool |
_interactive | ) |
|
|
virtual |
◆ processRemainingQueuedMessages()
| void KMail::PopAccount::processRemainingQueuedMessages |
( |
| ) |
|
|
protected |
◆ protocol()
| TQString KMail::PopAccount::protocol |
( |
| ) |
const |
|
virtual |
◆ pseudoAssign()
| void KMail::PopAccount::pseudoAssign |
( |
const KMAccount * |
a | ) |
|
|
virtual |
◆ readConfig()
| void KMail::PopAccount::readConfig |
( |
TDEConfig & |
config | ) |
|
|
virtual |
◆ saveUidList()
| void KMail::PopAccount::saveUidList |
( |
| ) |
|
|
protected |
Save the list of seen uids for this user/server.
Definition at line 829 of file popaccount.cpp.
◆ setFilterOnServer()
| void KMail::PopAccount::setFilterOnServer |
( |
bool |
b | ) |
|
|
virtual |
◆ setFilterOnServerCheckSize()
| void KMail::PopAccount::setFilterOnServerCheckSize |
( |
unsigned int |
aSize | ) |
|
|
virtual |
◆ setLeaveOnServer()
| void KMail::PopAccount::setLeaveOnServer |
( |
bool |
b | ) |
|
|
virtual |
◆ setLeaveOnServerCount()
| void KMail::PopAccount::setLeaveOnServerCount |
( |
int |
count | ) |
|
|
virtual |
◆ setLeaveOnServerDays()
| void KMail::PopAccount::setLeaveOnServerDays |
( |
int |
days | ) |
|
|
virtual |
◆ setLeaveOnServerSize()
| void KMail::PopAccount::setLeaveOnServerSize |
( |
int |
size | ) |
|
|
virtual |
◆ setUsePipelining()
| void KMail::PopAccount::setUsePipelining |
( |
bool |
b | ) |
|
|
virtual |
◆ slaveConfig()
| MetaData KMail::PopAccount::slaveConfig |
( |
| ) |
const |
|
virtual |
◆ slotAbortRequested
| void KMail::PopAccount::slotAbortRequested |
( |
| ) |
|
|
protectedslot |
◆ slotCancel
| void KMail::PopAccount::slotCancel |
( |
| ) |
|
|
protectedslot |
Cleans up after a user cancels the current job.
Definition at line 299 of file popaccount.cpp.
◆ slotData
| void KMail::PopAccount::slotData |
( |
TDEIO::Job * |
job, |
|
|
const TQByteArray & |
data |
|
) |
| |
|
protectedslot |
New data has arrived append it to the end of the current message.
Definition at line 877 of file popaccount.cpp.
◆ slotGetNextHdr
| void KMail::PopAccount::slotGetNextHdr |
( |
| ) |
|
|
protectedslot |
If there are more headers to be downloaded then start a new tdeio job to get the next header.
Definition at line 1071 of file popaccount.cpp.
◆ slotGetNextMsg
| void KMail::PopAccount::slotGetNextMsg |
( |
| ) |
|
|
protectedslot |
If there are more messages to be downloaded then start a new tdeio job to get the message whose id is at the head of the queue.
Definition at line 854 of file popaccount.cpp.
◆ slotJobFinished
| void KMail::PopAccount::slotJobFinished |
( |
| ) |
|
|
protectedslot |
Called when a job is finished.
Basically a finite state machine for cycling through the Idle, List, Uidl, Retr, Quit stages
Definition at line 476 of file popaccount.cpp.
◆ slotMsgRetrieved
| void KMail::PopAccount::slotMsgRetrieved |
( |
TDEIO::Job * |
, |
|
|
const TQString & |
infoMsg |
|
) |
| |
|
protectedslot |
A messages has been retrieved successfully.
The next data belongs to the next message.
Definition at line 444 of file popaccount.cpp.
◆ slotProcessPendingMsgs
| void KMail::PopAccount::slotProcessPendingMsgs |
( |
| ) |
|
|
protectedslot |
Messages are downloaded in the background and then once every x seconds a batch of messages are processed.
Messages are processed in batches to reduce flicker (multiple refreshes of the qlistview of messages headers in a single second causes flicker) when using a fast pop server such as one on a lan.
Processing a message means applying KMAccount::processNewMsg to it and adding its UID to the list of seen UIDs
Definition at line 309 of file popaccount.cpp.
◆ slotResult
| void KMail::PopAccount::slotResult |
( |
TDEIO::Job * |
| ) |
|
|
protectedslot |
Finished downloading the current tdeio job, either due to an error or because the job has been canceled or because the complete message has been downloaded.
Definition at line 1015 of file popaccount.cpp.
◆ slotSlaveError
| void KMail::PopAccount::slotSlaveError |
( |
TDEIO::Slave * |
aSlave, |
|
|
int |
error, |
|
|
const TQString & |
errorMsg |
|
) |
| |
|
protectedslot |
◆ startJob()
| void KMail::PopAccount::startJob |
( |
| ) |
|
|
protected |
Start a TDEIO Job to get a list of messages on the pop server.
Definition at line 367 of file popaccount.cpp.
◆ type()
| TQString KMail::PopAccount::type |
( |
void |
| ) |
const |
|
virtual |
◆ usePipelining()
| bool KMail::PopAccount::usePipelining |
( |
void |
| ) |
const |
|
inline |
Sending of several commands at once.
Definition at line 46 of file popaccount.h.
◆ writeConfig()
| void KMail::PopAccount::writeConfig |
( |
TDEConfig & |
config | ) |
|
|
virtual |
◆ ::AccountManager
◆ curMsgData
| TQByteArray KMail::PopAccount::curMsgData |
|
protected |
◆ curMsgLen
| int KMail::PopAccount::curMsgLen |
|
protected |
◆ curMsgStrm
| TQDataStream* KMail::PopAccount::curMsgStrm |
|
protected |
◆ dataCounter
| int KMail::PopAccount::dataCounter |
|
protected |
◆ gotMsgs
| bool KMail::PopAccount::gotMsgs |
|
protected |
◆ headerIt
| TQPtrListIterator<KMPopHeaders> KMail::PopAccount::headerIt |
|
protected |
◆ headers
| bool KMail::PopAccount::headers |
|
protected |
◆ headersOnServer
| TQPtrList<KMPopHeaders> KMail::PopAccount::headersOnServer |
|
protected |
◆ idsOfForcedDeletes
| TQStringList KMail::PopAccount::idsOfForcedDeletes |
|
protected |
◆ idsOfMsgs
| TQStringList KMail::PopAccount::idsOfMsgs |
|
protected |
◆ idsOfMsgsToDelete
| TQStringList KMail::PopAccount::idsOfMsgsToDelete |
|
protected |
◆ indexOfCurrentMsg
| int KMail::PopAccount::indexOfCurrentMsg |
|
protected |
◆ interactive
| bool KMail::PopAccount::interactive |
|
protected |
◆ job
| TDEIO::SimpleJob* KMail::PopAccount::job |
|
protected |
◆ lensOfMsgs
| TQValueList<int> KMail::PopAccount::lensOfMsgs |
|
protected |
◆ mFilterOnServer
| bool KMail::PopAccount::mFilterOnServer |
|
protected |
◆ mFilterOnServerCheckSize
| unsigned int KMail::PopAccount::mFilterOnServerCheckSize |
|
protected |
◆ mHeaderDeleteUids
| TQMap<TQString, bool> KMail::PopAccount::mHeaderDeleteUids |
|
protected |
◆ mHeaderDownUids
| TQMap<TQString, bool> KMail::PopAccount::mHeaderDownUids |
|
protected |
◆ mHeaderLaterUids
| TQMap<TQString, bool> KMail::PopAccount::mHeaderLaterUids |
|
protected |
◆ mLeaveOnServer
| bool KMail::PopAccount::mLeaveOnServer |
|
protected |
◆ mLeaveOnServerCount
| int KMail::PopAccount::mLeaveOnServerCount |
|
protected |
◆ mLeaveOnServerDays
| int KMail::PopAccount::mLeaveOnServerDays |
|
protected |
◆ mLeaveOnServerSize
| int KMail::PopAccount::mLeaveOnServerSize |
|
protected |
◆ mMsgsPendingDownload
| TQMap<TQString, int> KMail::PopAccount::mMsgsPendingDownload |
|
protected |
◆ mProcessing
| bool KMail::PopAccount::mProcessing |
|
protected |
◆ msgIdsAwaitingProcessing
| TQStringList KMail::PopAccount::msgIdsAwaitingProcessing |
|
protected |
◆ msgsAwaitingProcessing
| TQValueList<KMMessage*> KMail::PopAccount::msgsAwaitingProcessing |
|
protected |
◆ msgUidsAwaitingProcessing
| TQStringList KMail::PopAccount::msgUidsAwaitingProcessing |
|
protected |
◆ mSizeOfNextSeenMsgsDict
| TQDict<int> KMail::PopAccount::mSizeOfNextSeenMsgsDict |
|
protected |
◆ mTimeOfNextSeenMsgsMap
| TQMap<TQString, int> KMail::PopAccount::mTimeOfNextSeenMsgsMap |
|
protected |
◆ mTimeOfSeenMsgsVector
| TQValueVector<int> KMail::PopAccount::mTimeOfSeenMsgsVector |
|
protected |
◆ mUidForIdMap
| TQMap<TQString, TQString> KMail::PopAccount::mUidForIdMap |
|
protected |
◆ mUidlFinished
| bool KMail::PopAccount::mUidlFinished |
|
protected |
◆ mUidsOfNextSeenMsgsDict
| TQDict<int> KMail::PopAccount::mUidsOfNextSeenMsgsDict |
|
protected |
◆ mUidsOfSeenMsgsDict
| TQDict<int> KMail::PopAccount::mUidsOfSeenMsgsDict |
|
protected |
◆ mUsePipelining
| bool KMail::PopAccount::mUsePipelining |
|
protected |
◆ numBytes
| int KMail::PopAccount::numBytes |
|
protected |
◆ numBytesRead
| int KMail::PopAccount::numBytesRead |
|
protected |
◆ numBytesToRead
| int KMail::PopAccount::numBytesToRead |
|
protected |
◆ numMsgBytesRead
| int KMail::PopAccount::numMsgBytesRead |
|
protected |
◆ numMsgs
| int KMail::PopAccount::numMsgs |
|
protected |
◆ processingDelay
| int KMail::PopAccount::processingDelay |
|
protected |
◆ processMsgsTimer
| TQTimer KMail::PopAccount::processMsgsTimer |
|
protected |
◆ stage
| Stage KMail::PopAccount::stage |
|
protected |
The documentation for this class was generated from the following files:
|