Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QGsm0710MultiplexerServer Class Reference
[QtBaseModule]

The QGsm0710MultiplexerServer class provides a server-side multiplexing implementation based on 3GPP TS 07.10/27.010 More...

    #include <QGsm0710MultiplexerServer>

Inherits QGsm0710Multiplexer.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QGsm0710MultiplexerServer class provides a server-side multiplexing implementation based on 3GPP TS 07.10/27.010

This class is used by incoming AT connection managers such as the Modem Emulator to emulate 3GPP TS 07.10/27.010 multiplexing for the remote device that is connecting.

When the remote device opens a channel, the opened() signal is emitted, providing a QSerialIODevice that can be used by the AT connection manager to communicate with the remote device on that channel.

When the remote device closes a channel, the closed() signal is emitted to allow the AT connection manager to clean up the QSerialIODevice for the channel and any other associated channel-specific context information.

When the remote device terminates the 3GPP TS 07.10/27.010 session, closed() signals for all open channels will be emitted, and then the terminated() signal will be emitted.

See also QGsm0710Multiplexer and Modem Emulator.


Member Function Documentation

QGsm0710MultiplexerServer::QGsm0710MultiplexerServer ( QSerialIODevice * device, int frameSize = 31, bool advanced = false, QObject * parent = 0 )

Construct a new GSM 07.10 multiplexer in server mode around device and attach it to parent. The size of frames is frameSize. If advanced is true, then use the Advanced multiplexing option; otherwise use the Basic multiplexing option.

Unlike the base class, QGsm0710Multiplexer, the ownership of device will not pass to this object and it will not be deleted when this object is deleted. It will still exist after destruction. This is because the device will typically return to normal AT command mode after the multiplexer exits.

QGsm0710MultiplexerServer::~QGsm0710MultiplexerServer ()

Destruct this GSM 07.10 server instance.

void QGsm0710MultiplexerServer::closed ( int channel, QSerialIODevice * device )   [signal]

Signal that is emitted when the client closes a GSM 07.10 channel. After this signal is emitted, device will no longer be valid.

See also opened().

void QGsm0710MultiplexerServer::opened ( int channel, QSerialIODevice * device )   [signal]

Signal that is emitted when the client opens a new GSM 07.10 channel. The device object allows access to the raw data and modem control signals on the channel.

See also closed().

void QGsm0710MultiplexerServer::terminated ()   [signal]

Signal that is emitted when the client terminates the GSM 07.10 session and wishes to return to normal command mode.

This signal will be preceded by closed() signals for all channels that were still open when the terminate command was received.

A slot that is connected to this signal should use QObject::deleteLater() to clean up this object.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3