• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

mailtransport

MailTransport::Socket

MailTransport::Socket Class Reference

Responsible for communicating with the server, it's designed to work with the ServerTest class. More...

#include <socket.h>

Inherits QObject.

List of all members.

Signals

void connected ()
void data (const QString &)
void failed ()
void tlsDone ()

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.

Author:
Tom Albers <tomalbers@kde.nl>

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 (  ) 

Destructor.

Definition at line 141 of file socket.cpp.


Member Function Documentation

bool Socket::available (  )  [virtual]
Returns:
true when the connection is live and kicking

Definition at line 194 of file socket.cpp.

void MailTransport::Socket::connected (  )  [signal]

emitted when there is a connection (ready to send something).

void MailTransport::Socket::data ( const QString &   )  [signal]

emits the incoming data

void MailTransport::Socket::failed (  )  [signal]

emitted when not connected.

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  ) 

set the protocol to use

Definition at line 208 of file socket.cpp.

void Socket::setSecure ( bool  what  ) 

this will be a secure connection

Definition at line 223 of file socket.cpp.

void Socket::setServer ( const QString &  server  ) 

set the server to use

Definition at line 213 of file socket.cpp.

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 MailTransport::Socket::tlsDone (  )  [signal]

emitted when startShake() is completed.

void Socket::write ( const QString &  text  )  [virtual]

Write text to the socket.

Definition at line 176 of file socket.cpp.


The documentation for this class was generated from the following files:
  • socket.h
  • socket.cpp

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal