| Home · Modules · Classes · Namespaces · Functions |
The QxtPop3 class implements a POP3 client. More...
#include <QxtPop3>
Inherits QObject.
The QxtPop3 class implements a POP3 client.
Implements the IETF standard 53 http://www.faqs.org/rfcs/std/std53.html
The API is asynchronous: when calling a POP3 method, the call returns immediately and one gets a pointer to a QxtPop3Reply, that can be used to get feedback (typically connect its finished() signal to some slot handling the result, and get the result of the command once finished, if applicable).
Constructs a new QxtPop3 whith parent parent.
Emitted when the connections becomes authenticated.
Emitted if the authentication fails, msg holding a desription of the cause of the failure.
Deletes all finished replies in the queue. Run this to free memory when you don't need to access the finished replies anymore (to get results for example). A good moment to do this is after closing the connection to the server, if you keep the QxtPop3 object for later connections (when the QxtPop3 object is deleted, all replies associated to it are deleted automatically).
Opens a connection to the server hostName on port. Authentication is performed, and startTLS is sent if enabled (else the connection isn't encrypted).
See also connectToSecureHost(), disconnectFromHost(), and startTlsDisabled().
Overloaded function.
Opens a SSL connection to the server hostName on port.
See also connectToHost().
Overloaded function.
Emitted once the connection to the server is established.
Emitted when the connection fails, msg containing a description of the failure.
Delete the message nb which. Until the session is closed, the message can be undeleted by a reset.
Closes the connection.
Emitted when the client is disconnected from the server.
Emitted when the SSL negotiation succeeds, and the connection becomes encrypted (either from start, with connectToSecureHost(), or after the startTLS method is used).
Emitted if the SSL negotiation fails, msg holding a desription of the cause of the failure.
Returns true if the client is connected to the server, false otherwise.
Implement the LIST POP3 command. When the command is completed, the result can be read from the QxtPop3ListReply object returned.
Returns the connection's password; it may be empty.
See also setPassword().
Close the session, and disconnect from the server.
Reset the session. All messages marked as deleted are undeleted.
Retrieve message nb which. When the command is completed, the result can be read from the QxtPop3RetrReply object returned.
Sets the connection's password to password. To have effect, the password must be set before the connection is opened. Alternatively, you can quit(), set the password, and call connectToHost() again.
See also password().
Disable the startTLS method if disable is true, enables it if it is false.
See also startTlsDisabled().
Sets the connection's user name to username. To have effect, the user name must be set before the connection is opened. Alternatively, you can quit(), set the user name, and call connectToHost() again.
See also username().
Returns a pointer to the socket used for the connection to the server.
Returns a pointer to the SSL socket used for the connection to the server.
See also socket().
Returns true if startTLS is disabled, false if it is enabled. Default value is false (startTLS enabled).
See also setStartTlsDisabled().
Implement the STAT POP3 command. When the command is completed, the message count in the mailbox and total size in bytes can be retrieved via the count() and size() methods of the QxtPop3StatReply object returned.
Returns the connection's user name; it may be empty.
See also setUsername().
| Copyright © 2007-2010 Qxt Foundation |
Qxt 0.7.0 |