mailtransport
MailTransport::Socket Class Reference
Responsible for communicating with the server, it's designed to work with the ServerTest class. More...
#include <socket.h>
Inheritance diagram for MailTransport::Socket:

Public Member Functions | |
virtual bool | available () |
virtual void | reconnect () |
void | setPort (int port) |
void | setProtocol (const QString &proto) |
void | setSecure (bool what) |
void | setServer (const QString &server) |
Socket (QObject *parent) | |
void | startTLS () |
virtual void | write (const QString &text) |
~Socket () |
Detailed Description
Responsible for communicating with the server, it's designed to work with the ServerTest class.
Definition at line 37 of file socket.h.
Constructor & Destructor Documentation
Socket::Socket | ( | QObject * | parent | ) | [explicit] |
Contructor, it will not auto connect.
Call reconnect() to connect to the parameters given.
- Parameters:
-
parent the parent
Definition at line 132 of file socket.cpp.
Socket::~Socket | ( | ) |
Member Function Documentation
bool Socket::available | ( | ) | [virtual] |
void Socket::reconnect | ( | ) | [virtual] |
Existing connection will be closed and a new connection will be made.
Definition at line 147 of file socket.cpp.
void Socket::setPort | ( | int | port | ) |
set the port to use.
If not specified, it will use the default belonging to the protocol.
Definition at line 218 of file socket.cpp.
void Socket::setProtocol | ( | const QString & | proto | ) |
void Socket::setSecure | ( | bool | what | ) |
void Socket::setServer | ( | const QString & | server | ) |
void Socket::startTLS | ( | ) |
If you want to start TLS encryption, call this.
For example after the starttls command.
Definition at line 201 of file socket.cpp.
void Socket::write | ( | const QString & | text | ) | [virtual] |
The documentation for this class was generated from the following files: