mailtransport
MailTransport::Socket Class Reference
#include <socket.h>
Inherits QObject.
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.
Public Member Functions | |
Socket (QObject *parent) | |
~Socket () | |
virtual void | reconnect () |
virtual void | write (const QString &text) |
virtual bool | available () |
void | setProtocol (const QString &proto) |
void | setServer (const QString &server) |
void | setPort (int port) |
void | setSecure (bool what) |
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 126 of file socket.cpp.
Socket::~Socket | ( | ) |
Member Function Documentation
void Socket::reconnect | ( | ) | [virtual] |
Existing connection will be closed and a new connection will be made.
Definition at line 141 of file socket.cpp.
void Socket::write | ( | const QString & | text | ) | [virtual] |
bool Socket::available | ( | ) | [virtual] |
void Socket::setProtocol | ( | const QString & | proto | ) |
void Socket::setServer | ( | const QString & | server | ) |
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 204 of file socket.cpp.
void Socket::setSecure | ( | bool | what | ) |
The documentation for this class was generated from the following files: