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

QMediaServerSession Class Reference
[QtMediaModule]

The QMediaServerSession class is used to represent and control a session registered in the Media Server. More...

    #include <QMediaServerSession>

This class is under development and is subject to change.

Inherits QObject.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QMediaServerSession class is used to represent and control a session registered in the Media Server.

See also QMediaEngine.


Member Function Documentation

QMediaServerSession::~QMediaServerSession ()   [virtual]

Destroy a QMediaServerSession object.

QString QMediaServerSession::domain () const   [pure virtual]

Returns the audio domain for this session.

See also setDomain().

QString QMediaServerSession::errorString ()   [pure virtual]

If the session is in the error state, a generic error string may be provided through this function.

QString QMediaServerSession::id () const   [pure virtual]

This function should return the Id of the session.

void QMediaServerSession::interfaceAvailable ( const QString & name )   [signal]

Inform listeners that an interface has been made available. The interface can be referenced in the media system by name.

void QMediaServerSession::interfaceUnavailable ( const QString & name )   [signal]

Inform listeners that an interface is no longer available for use. The interfaces is referenced in the media system by name

QStringList QMediaServerSession::interfaces ()   [pure virtual]

This function should return the names of the interfaces supported by this session.

bool QMediaServerSession::isMuted () const   [pure virtual]

Return the current mute state of the session.

quint32 QMediaServerSession::length ()   [pure virtual]

Return the length of the content.

void QMediaServerSession::lengthChanged ( quint32 ms )   [signal]

Inform listeners the length of the content is changed to ms milliseconds long.

void QMediaServerSession::pause ()   [pure virtual]

This function is called when the user is trying to pause the session. For some session types this may mean pausing decoding content, for others simply muting data.

QtopiaMedia::State QMediaServerSession::playerState () const   [pure virtual]

Return the current state of the session.

void QMediaServerSession::playerStateChanged ( QtopiaMedia::State state )   [signal]

Inform listeners that the current state of the session has changed. The new state is indicated by state.

void QMediaServerSession::positionChanged ( quint32 ms )   [signal]

Inform listeners that the current play position in the content has changed to ms, from the beginning.

QString QMediaServerSession::reportData () const   [pure virtual]

This is a general reporting mechanisim, the QString from this function will be placed in the Value Space for inspection.

void QMediaServerSession::resume ()   [pure virtual]

After a suspend, resume() is called to return the session to its previous state.

void QMediaServerSession::seek ( quint32 ms )   [pure virtual]

Seek the content to ms milliseconds from the beginning. If the session is not seekable it may ignore this function.

void QMediaServerSession::setDomain ( QString const & domain )   [pure virtual]

Sets the audio domain in which this session is active to domain.

See also domain().

void QMediaServerSession::setMuted ( bool mute )   [pure virtual]

When mute is true the volume on the session should be muted, when false, the previously set volume should be restored.

See also isMuted().

void QMediaServerSession::setVolume ( int volume )   [pure virtual]

Set the volume of the data to volume. This may involve adjusting device volume, or adjusting PCM volume, it is dependent on the nature of the session.

See also volume().

void QMediaServerSession::start ()   [pure virtual]

This function is called when the user is trying to start the session. It may have different meanings depending on the nature of the session. Generally the content must become active or playing, on start().

void QMediaServerSession::stop ()   [pure virtual]

This function is called as a result of the user trying to stop the session. It is similar to pause() excepting that the any position state, if applicable, should be reset.

void QMediaServerSession::suspend ()   [pure virtual]

The session may be asked to suspend its activities, at this point it should keep a record of state of the session, but otherwise release resources used by the session.

int QMediaServerSession::volume () const   [pure virtual]

Return the current volume.

See also setVolume().

void QMediaServerSession::volumeChanged ( int volume )   [signal]

Inform listeners the volume level has changed to volume.

void QMediaServerSession::volumeMuted ( bool muted )   [signal]

Inform listeners that the mute state of the session has changed to muted.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3