#include <TelepathyQt4/Client/MediaSessionHandler>
Public Slots | |
QDBusPendingReply | Error (uint errorCode, const QString &message) |
QDBusPendingReply | Ready () |
Signals | |
void | NewStreamHandler (const QDBusObjectPath &streamHandler, uint ID, uint mediaType, uint direction) |
Public Member Functions | |
MediaSessionHandlerInterface (const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
MediaSessionHandlerInterface (const QDBusConnection &connection, const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
MediaSessionHandlerInterface (Telepathy::Client::DBusProxy *proxy) | |
Static Public Member Functions | |
static const char * | staticInterfaceName () |
Protected Member Functions | |
virtual void | invalidate (Telepathy::Client::DBusProxy *, const QString &, const QString &) |
Telepathy::Client::MediaSessionHandlerInterface::MediaSessionHandlerInterface | ( | const QString & | serviceName, | |
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a MediaSessionHandlerInterface associated with the given object on the session bus.
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::MediaSessionHandlerInterface::MediaSessionHandlerInterface | ( | const QDBusConnection & | connection, | |
const QString & | serviceName, | |||
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a MediaSessionHandlerInterface associated with the given object on the given bus.
connection | The bus via which the object can be reached. | |
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::MediaSessionHandlerInterface::MediaSessionHandlerInterface | ( | Telepathy::Client::DBusProxy * | proxy | ) |
Creates a MediaSessionHandlerInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
QDBusPendingReply Telepathy::Client::MediaSessionHandlerInterface::Error | ( | uint | errorCode, | |
const QString & | message | |||
) | [inline, slot] |
Begins a call to the D-Bus method "Error" on the remote object.
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. Instead the Error function should be used on the relevant MediaStreamHandler objects. Informs the connection manager that an error occured in this session. If used, the connection manager must terminate the session and all of the streams within it, and may also emit a StreamError signal on the channel for each stream within the session.
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
virtual void Telepathy::Client::MediaSessionHandlerInterface::invalidate | ( | Telepathy::Client::DBusProxy * | , | |
const QString & | , | |||
const QString & | ||||
) | [protected, virtual] |
Reimplemented from Telepathy::Client::AbstractInterface.
void Telepathy::Client::MediaSessionHandlerInterface::NewStreamHandler | ( | const QDBusObjectPath & | streamHandler, | |
uint | ID, | |||
uint | mediaType, | |||
uint | direction | |||
) | [signal] |
Represents the signal "NewStreamHandler" on the remote object.
Emitted when a new stream handler has been created for this session.
streamHandler | An object path to a new MediaStreamHandler | |
ID | The unique ID of the new stream | |
mediaType | Enum for type of media that this stream should handle (a value from MediaStreamType) | |
direction | Enum for direction of this stream (a value from MediaStreamDirection) |
QDBusPendingReply Telepathy::Client::MediaSessionHandlerInterface::Ready | ( | ) | [inline, slot] |
Begins a call to the D-Bus method "Ready" on the remote object.
Inform the connection manager that a client is ready to handle this session handler (i.e. that it has connected to the NewStreamHandler signal and done any other necessary setup).
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
static const char* Telepathy::Client::MediaSessionHandlerInterface::staticInterfaceName | ( | ) | [inline, static] |
Returns the name of the interface "org.freedesktop.Telepathy.Media.SessionHandler", which this class represents.