MoleQueue  0.8.0
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
LocalSocketConnectionListener Class Reference

#include <localsocketconnectionlistener.h>

Inheritance diagram for LocalSocketConnectionListener:
ConnectionListener

Public Member Functions

 LocalSocketConnectionListener (QObject *parentObject, const QString &connectionString)
 
 ~LocalSocketConnectionListener ()
 
void start ()
 
void stop (bool force)
 
void stop ()
 
QString connectionString () const
 
QString fullConnectionString () const
 
- Public Member Functions inherited from ConnectionListener
 ConnectionListener (QObject *parentObject=0)
 

Additional Inherited Members

- Public Types inherited from ConnectionListener
enum  Error {
  AddressInUseError,
  UnknownError = -1
}
 
- Signals inherited from ConnectionListener
void newConnection (MoleQueue::Connection *connection)
 
void connectionError (MoleQueue::ConnectionListener::Error errorCode, const QString &message)
 

Detailed Description

Provides a implementation of ConnectionListener using QLocalServer. Each connection made is emitted as a LocalSocketConnection.

<molequeue/servercore/localsocketconnectionlistener.h>

See Also
ConnectionListener

Constructor & Destructor Documentation

LocalSocketConnectionListener ( QObject *  parentObject,
const QString &  connectionString 
)
explicit

Constructor.

Parameters
parentObjectparent
connectionStringThe address that the QLocalServer should listen on.

Destructor.

Member Function Documentation

void start ( )
virtual

Start listening for incoming connections.

See Also
ConnectionListener::start()

Implements ConnectionListener.

void stop ( bool  force)
virtual

Stops the connection listener.

Parameters
forceIf true use QLocalServer::removeServer(...) to remove server instance.
See Also
ConnectionListener::stop(bool)

Implements ConnectionListener.

void stop ( )
virtual

Calls stop(false)

See Also
stop(bool)
ConnectionListener::stop()

Implements ConnectionListener.

QString connectionString ( ) const
virtual
Returns
the address the QLocalServer is listening on.

Implements ConnectionListener.

QString fullConnectionString ( ) const
Returns
the full address the QLocalServer is listening on.

The documentation for this class was generated from the following file: