Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PopClient Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/mailit/popclient.h>

Collaboration diagram for PopClient:

Collaboration graph
[legend]
List of all members.

Public Slots

void errorHandling (int)
void errorHandlingWithMsg (int, const QString &)

Signals

void newMessage (const QString &, int, uint, bool)
void errorOccurred (int status, const QString &Msg)
void updateStatus (const QString &)
void mailTransfered (int)
void mailboxSize (int)
void currentMailSize (int)
void downloadedSize (int)

Public Member Functions

 PopClient ()
 ~PopClient ()
void newConnection (const QString &target, int port)
void setAccount (const QString &popUser, const QString &popPasswd)
void setSynchronize (int lastCount)
void removeSynchronize ()
void headersOnly (bool headers, int limit)
void setSelectedMails (MailList *list)

Protected Slots

void connectionEstablished ()
void incomingData ()

Private Types

enum  transferStatus {
  Init, Pass, Stat, Mcnt,
  Read, List, Size, Retr,
  Acks, Quit, Done, Ignore
}

Private Attributes

QSocket * socket
QTextStreamstream
int status
int lastSync
int messageCount
int newMessages
int mailSize
int headerLimit
bool receiving
bool synchronize
bool preview
bool selected
QString popUserName
QString popPassword
QString message
MailListmailList

Member Enumeration Documentation

enum PopClient::transferStatus [private]
 

Enumeration values:
Init 
Pass 
Stat 
Mcnt 
Read 
List 
Size 
Retr 
Acks 
Quit 
Done 
Ignore 

Definition at line 65 of file popclient.h.


Constructor & Destructor Documentation

PopClient::PopClient  ) 
 

Definition at line 30 of file popclient.cpp.

References connectionEstablished(), error(), errorHandling(), FALSE, headerLimit, incomingData(), lastSync, mailList, preview, receiving, socket, and synchronize.

PopClient::~PopClient  ) 
 

Definition at line 48 of file popclient.cpp.

References socket.


Member Function Documentation

void PopClient::connectionEstablished  )  [protected, slot]
 

Definition at line 100 of file popclient.cpp.

References tr, and updateStatus().

Referenced by PopClient().

void PopClient::currentMailSize int   )  [signal]
 

Referenced by incomingData().

void PopClient::downloadedSize int   )  [signal]
 

Referenced by incomingData().

void PopClient::errorHandling int   )  [slot]
 

Definition at line 105 of file popclient.cpp.

References errorHandlingWithMsg(), and QString::null.

Referenced by EmailHandler::cancel(), and PopClient().

void PopClient::errorHandlingWithMsg int  ,
const QString
[slot]
 

Definition at line 109 of file popclient.cpp.

References errorOccurred(), FALSE, receiving, socket, tr, and updateStatus().

Referenced by errorHandling(), and incomingData().

void PopClient::errorOccurred int  status,
const QString Msg
[signal]
 

Referenced by errorHandlingWithMsg().

void PopClient::headersOnly bool  headers,
int  limit
 

Definition at line 88 of file popclient.cpp.

References headerLimit, and preview.

Referenced by EmailHandler::getMailByList(), and EmailHandler::getMailHeaders().

void PopClient::incomingData  )  [protected, slot]
 

Definition at line 117 of file popclient.cpp.

References currentMailSize(), Done, downloadedSize(), end, ErrLoginFailed, errorHandlingWithMsg(), ErrUnknownResponse, FALSE, QString::find(), MailList::first(), headerLimit, Ignore, Init, lastSync, QString::length(), List, mailList, mailSize, mailTransfered(), Mcnt, md5_buffer(), message, messageCount, QString::mid(), newMessage(), newMessages, Pass, popPassword, popUserName, printf, Quit, Read, receiving, QString::replace(), Retr, QString::right(), selected, QString::setNum(), Size, socket, start, Stat, status, synchronize, QString::toInt(), tr, TRUE, QString::truncate(), updateStatus(), and Opie::MM::x.

Referenced by PopClient().

void PopClient::mailboxSize int   )  [signal]
 

void PopClient::mailTransfered int   )  [signal]
 

Referenced by incomingData().

void PopClient::newConnection const QString target,
int  port
 

Definition at line 54 of file popclient.cpp.

References Init, qWarning(), receiving, socket, status, tr, TRUE, and updateStatus().

Referenced by EmailHandler::getMail(), EmailHandler::getMailByList(), and EmailHandler::getMailHeaders().

void PopClient::newMessage const QString ,
int  ,
uint  ,
bool 
[signal]
 

Referenced by incomingData().

void PopClient::removeSynchronize  ) 
 

Definition at line 82 of file popclient.cpp.

References FALSE, lastSync, and synchronize.

Referenced by EmailHandler::getMail(), and EmailHandler::getMailHeaders().

void PopClient::setAccount const QString popUser,
const QString popPasswd
 

Definition at line 70 of file popclient.cpp.

References popPassword, and popUserName.

Referenced by EmailHandler::getMail(), EmailHandler::getMailByList(), and EmailHandler::getMailHeaders().

void PopClient::setSelectedMails MailList list  ) 
 

Definition at line 94 of file popclient.cpp.

References mailList, selected, and TRUE.

Referenced by EmailHandler::getMailByList().

void PopClient::setSynchronize int  lastCount  ) 
 

Definition at line 76 of file popclient.cpp.

References lastSync, synchronize, and TRUE.

Referenced by EmailHandler::getMail(), and EmailHandler::getMailHeaders().

void PopClient::updateStatus const QString  )  [signal]
 

Referenced by connectionEstablished(), errorHandlingWithMsg(), incomingData(), and newConnection().


Member Data Documentation

int PopClient::headerLimit [private]
 

Definition at line 71 of file popclient.h.

Referenced by headersOnly(), incomingData(), and PopClient().

int PopClient::lastSync [private]
 

Definition at line 70 of file popclient.h.

Referenced by incomingData(), PopClient(), removeSynchronize(), and setSynchronize().

MailList* PopClient::mailList [private]
 

Definition at line 74 of file popclient.h.

Referenced by incomingData(), PopClient(), and setSelectedMails().

int PopClient::mailSize [private]
 

Definition at line 71 of file popclient.h.

Referenced by incomingData().

QString PopClient::message [private]
 

Definition at line 73 of file popclient.h.

Referenced by incomingData().

int PopClient::messageCount [private]
 

Definition at line 71 of file popclient.h.

Referenced by incomingData().

int PopClient::newMessages [private]
 

Definition at line 71 of file popclient.h.

Referenced by incomingData().

QString PopClient::popPassword [private]
 

Definition at line 73 of file popclient.h.

Referenced by incomingData(), and setAccount().

QString PopClient::popUserName [private]
 

Definition at line 73 of file popclient.h.

Referenced by incomingData(), and setAccount().

bool PopClient::preview [private]
 

Definition at line 72 of file popclient.h.

Referenced by headersOnly(), and PopClient().

bool PopClient::receiving [private]
 

Definition at line 72 of file popclient.h.

Referenced by errorHandlingWithMsg(), incomingData(), newConnection(), and PopClient().

bool PopClient::selected [private]
 

Definition at line 72 of file popclient.h.

Referenced by incomingData(), and setSelectedMails().

QSocket* PopClient::socket [private]
 

Definition at line 63 of file popclient.h.

Referenced by errorHandlingWithMsg(), incomingData(), newConnection(), PopClient(), and ~PopClient().

int PopClient::status [private]
 

Definition at line 70 of file popclient.h.

Referenced by incomingData(), and newConnection().

QTextStream* PopClient::stream [private]
 

Definition at line 64 of file popclient.h.

bool PopClient::synchronize [private]
 

Definition at line 72 of file popclient.h.

Referenced by incomingData(), PopClient(), removeSynchronize(), and setSynchronize().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:45:12 2005 for OPIE by  doxygen 1.4.2