Home · All Classes · Annotated · Functions

QPhoneSocket Class Reference

The QPhoneSocket class provides socket functionality for phone call handlers More...

#include <QPhoneSocket>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QPhoneSocket class provides socket functionality for phone call handlers

Phone call handlers manage extensions to the Qtopia phone server for providing additional call types (e.g. Voice-Over-IP).

When a phone call handler starts up, it connects to the phone server on the Unix domain socket /tmp/qtopia-N/call-manager and registers itself with the "INIT" command (N is the QWS display identifier).

This class provides a convenient method for phone call handlers to effect communication with the server. When a command message arrives from the phone server, the received() signal is emitted with the command details. The send() methods provide a convenient way to send a response message to the phone server.

Phone call handlers do not need to use this class. They can connect to the Unix domain socket directly with their own mechanism. The handler is then responsible for all data traffic handling, parsing, etc.


Member Function Documentation

QPhoneSocket::QPhoneSocket ( QObject * parent = 0 )

Create an object that manages connections to the Qtopia phone server for phone call handlers and attach it to parent.

QPhoneSocket::~QPhoneSocket ()

Destroy a phone socket handling object.

void QPhoneSocket::closed ()   [signal]

Signal that is emitted when the connection is closed by the peer.

void QPhoneSocket::incoming ( QPhoneSocket * socket )   [signal]

Signal that is emitted when an incoming client socket is detected on a bound server port. This is used internally by the Qtopia Phone Server, and will not be emitted in handler processes.

void QPhoneSocket::received ( const QStringList & cmd )   [signal]

Signal that is emitted when cmd is received from the peer.

void QPhoneSocket::send ( const QStringList & cmd )   [slot]

Send cmd to the peer on this connection.

void QPhoneSocket::send ( const QString & cmd )   [slot]

This is an overloaded member function, provided for convenience.

Send cmd to the peer on this connection.

void QPhoneSocket::send ( const QString & cmd, const QString & arg1 )   [slot]

This is an overloaded member function, provided for convenience.

Send cmd and arg1 to the peer on this connection.

void QPhoneSocket::send ( const QString & cmd, const QString & arg1, const QString & arg2 )   [slot]

This is an overloaded member function, provided for convenience.

Send cmd, arg1, and arg2 to the peer on this connection.

void QPhoneSocket::send ( const QString & cmd, const QString & arg1, const QString & arg2, const QString & arg3 )   [slot]

This is an overloaded member function, provided for convenience.

Send cmd, arg1, arg2, and arg3 to the peer on this connection.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7