Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference

PhoneSocket Class Reference

Provides socket functionality for phone call handlers. More...

#include <phonesocket.h>

Inherits QObject.

List of all member functions.

Public Members

Public Slots

Signals


Detailed Description

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.

See also Qtopia Phone Classes.


Member Function Documentation

PhoneSocket::PhoneSocket ( QObject * parent = 0 )

Create an object that manages connections to the Qtopia phone server for phone call handlers.

PhoneSocket::~PhoneSocket ()

Destroy a phone socket handling object.

void PhoneSocket::closed () [signal]

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

void PhoneSocket::incoming ( PhoneSocket * 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 PhoneSocket::received ( const QStringList & cmd ) [signal]

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

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

Send cmd to the peer on this connection.

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

Send cmd to the peer on this connection.

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

Send cmd and arg1 to the peer on this connection.

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

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

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

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

This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0