|
QDBusPendingReply | CodecChoice (uint codecID, int timeout=-1) |
|
QDBusPendingReply | Error (uint errorCode, const QString &message, int timeout=-1) |
|
QDBusPendingReply | NativeCandidatesPrepared (int timeout=-1) |
|
QDBusPendingReply | NewActiveCandidatePair (const QString &nativeCandidateID, const QString &remoteCandidateID, int timeout=-1) |
|
QDBusPendingReply | NewActiveTransportPair (const QString &nativeCandidateID, const Tp::MediaStreamHandlerTransport &nativeTransport, const QString &remoteCandidateID, const Tp::MediaStreamHandlerTransport &remoteTransport, int timeout=-1) |
|
QDBusPendingReply | NewNativeCandidate (const QString &candidateID, const Tp::MediaStreamHandlerTransportList &transports, int timeout=-1) |
|
QDBusPendingReply | Ready (const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1) |
|
QDBusPendingReply | SetLocalCodecs (const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1) |
|
QDBusPendingReply | StreamState (uint state, int timeout=-1) |
|
QDBusPendingReply | SupportedCodecs (const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1) |
|
QDBusPendingReply | CodecsUpdated (const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1) |
|
QDBusPendingReply | HoldState (bool held, int timeout=-1) |
|
QDBusPendingReply | UnholdFailure (int timeout=-1) |
|
QDBusPendingReply | SupportedFeedbackMessages (const Tp::RTCPFeedbackMessageMap &messages, int timeout=-1) |
|
QDBusPendingReply | SupportedHeaderExtensions (const Tp::RTPHeaderExtensionsList &headerExtensions, int timeout=-1) |
|
|
| MediaStreamHandlerInterface (const QString &busName, const QString &objectPath, QObject *parent=0) |
|
| MediaStreamHandlerInterface (const QDBusConnection &connection, const QString &busName, const QString &objectPath, QObject *parent=0) |
|
| MediaStreamHandlerInterface (Tp::DBusProxy *proxy) |
|
Tp::PendingVariant * | requestPropertySTUNServers () const |
|
Tp::PendingVariant * | requestPropertyCreatedLocally () const |
|
Tp::PendingVariant * | requestPropertyNATTraversal () const |
|
Tp::PendingVariant * | requestPropertyRelayInfo () const |
|
Tp::PendingVariantMap * | requestAllProperties () const |
|
virtual | ~AbstractInterface () |
|
bool | isValid () const |
|
QString | invalidationReason () const |
|
QString | invalidationMessage () const |
|
void | setMonitorProperties (bool monitorProperties) |
|
bool | isMonitoringProperties () const |
|
virtual | ~QDBusAbstractInterface () |
|
bool | isValid () const |
|
QDBusConnection | connection () const |
|
QString | service () const |
|
QString | path () const |
|
QString | interface () const |
|
QDBusError | lastError () const |
|
void | setTimeout (int timeout) |
|
int | timeout () const |
|
QDBusMessage | call (const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8) |
|
QDBusMessage | call (QDBus::CallMode mode, const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8) |
|
QDBusMessage | callWithArgumentList (QDBus::CallMode mode, const QString &method, const QList< QVariant > &args) |
|
bool | callWithCallback (const QString &method, const QList< QVariant > &args, QObject *receiver, const char *returnMethod, const char *errorMethod) |
|
bool | callWithCallback (const QString &method, const QList< QVariant > &args, QObject *receiver, const char *slot) |
|
QDBusPendingCall | asyncCall (const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8) |
|
QDBusPendingCall | asyncCallWithArgumentList (const QString &method, const QList< QVariant > &args) |
|
| QObject (QObject *parent) |
|
virtual | ~QObject () |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
| QObject (QObject *parent, const char *name) |
|
void | insertChild (QObject *object) |
|
void | removeChild (QObject *object) |
|
bool | isA (const char *className) const |
|
const char * | className () const |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
void | setName (const char *name) |
|
|
static QLatin1String | staticInterfaceName () |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
|
virtual void | invalidate (Tp::DBusProxy *, const QString &, const QString &) |
|
| AbstractInterface (DBusProxy *proxy, const QLatin1String &interface) |
|
| AbstractInterface (const QString &busName, const QString &path, const QLatin1String &interface, const QDBusConnection &connection, QObject *parent) |
|
PendingVariant * | internalRequestProperty (const QString &name) const |
|
PendingOperation * | internalSetProperty (const QString &name, const QVariant &newValue) |
|
PendingVariantMap * | internalRequestAllProperties () const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
int | receivers (const char *signal) const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | connectNotify (const char *signal) |
|
virtual void | disconnectNotify (const char *signal) |
|
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
|
Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Media.StreamHandler".
Tp::PendingVariant* Tp::Client::MediaStreamHandlerInterface::requestPropertyRelayInfo |
( |
| ) |
const |
|
inline |
Asynchronous getter for the remote object property RelayInfo
of type Tp::StringVariantMapList
.
A list of mappings describing TURN or Google relay servers
available for the client to use in its candidate gathering, as
determined from the protocol. Map keys are:
ip
- s
- The IP address of the relay server as a dotted-quad IPv4
address literal or an RFC2373 IPv6 address literal. This MUST NOT
be a DNS hostname.
High-quality connection managers already need an asynchronous
DNS resolver, so they might as well resolve this name to an IP
and make life easier for streaming implementations.
type
- s
-
Either udp
for UDP (UDP MUST be assumed if this
key is omitted), tcp
for TCP, or
tls
.
The precise meaning of this key depends on the
NATTraversal property: if
NATTraversal is ice-udp
, tls
means
TLS over TCP as referenced by ICE draft 19, and if
NATTraversal is gtalk-p2p
, tls
means
a fake SSL session over TCP as implemented by libjingle.
port
- q
- The UDP or TCP port of the relay server as an ASCII unsigned
integer
username
- s
- The username to use
password
- s
- The password to use
component
- u
- The component number to use this relay server for, as an
ASCII unsigned integer; if not included, this relay server
may be used for any or all components.
In ICE draft 6, as used by Google Talk, credentials are only
valid once, so each component needs relaying separately.
An equivalent of the gtalk-p2p-relay-token property on
MediaSignalling channels is not included here. The connection
manager should be responsible for making the necessary HTTP
requests to turn the token into a username and password.
The type of relay server that this represents depends on
the value of the NATTraversal
property. If NATTraversal is ice-udp, this is a TURN server;
if NATTraversal is gtalk-p2p, this is a Google relay server;
otherwise, the meaning of RelayInfo is undefined.
If relaying is not possible for this stream, the list is empty.
This property cannot change once the stream has been created, so
there is no change notification.
- Returns
- A pending variant which will emit finished when the property has been retrieved.
Begins a call to the D-Bus method NewActiveTransportPair
on the remote object.
Informs the connection manager that a valid transport pair has been discovered and streaming is in progress. Component id MUST be the same for both transports and the pair is only valid for that component. The connection manager might need to send the details of the active transport pair (e.g. c and o parameters of SDP body need to contain address of selected native RTP transport as stipulated by RFC 5245). However, the candidate ID might not be enough to determine these info if the transport was found after NativeCandidatesPrepared has been called (e.g. peer reflexive ICE candidate). This method must be called before NewActiveCandidatePair. This way, connection managers supporting this method can safely ignore subsequent NewActiveCandidatePair call. Connection managers SHOULD NOT implement this method unless they need to inform the peer about selected transports. As a result, streaming implementations MUST NOT treat errors raised by this method as fatal. Usually, connection managers only need to do one answer/offer round-trip. However, some protocols give the possibility to to send an updated offer (e.g. ICE defines such mechanism to avoid some race conditions and to properly set the state of gateway devices).
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
- Parameters
-
timeout | The timeout in milliseconds. |
Begins a call to the D-Bus method SetLocalCodecs
on the remote object.
Used to provide codecs after Ready(), so the media client can go
ready for an incoming call and exchange candidates/codecs before
knowing what local codecs are available.
This is useful for gatewaying calls between two connection managers.
Given an incoming call, you need to call
Ready() to get the remote codecs before
you can use them as the "local" codecs to place the outgoing call,
and hence receive the outgoing call's remote codecs to use as the
incoming call's "local" codecs.
In this situation, you would pass an empty list of codecs to the
incoming call's Ready method, then later call SetLocalCodecs on the
incoming call in order to respond to the offer.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
- Parameters
-
codecs | Locally-supported codecs
|
timeout | The timeout in milliseconds. |
void Tp::Client::MediaStreamHandlerInterface::SetStreamHeld |
( |
bool |
held | ) |
|
|
signal |
Represents the signal SetStreamHeld
on the remote object.
Emitted when the connection manager wishes to place the stream on
hold (so the streaming client should free hardware or software
resources) or take the stream off hold (so the streaming client
should reacquire the necessary resources).
When placing a channel's streams on hold, the connection manager
SHOULD notify the remote contact that this will be done (if
appropriate in the protocol) before it emits this signal.
It is assumed that relinquishing a resource will not fail.
If it does, the call is probably doomed anyway.
When unholding a channel's streams, the connection manager
SHOULD emit this signal and wait for success to be indicated
via HoldState before it notifies the remote contact that the
channel has been taken off hold.
This means that if a resource is unavailable, the remote
contact will never even be told that we tried to acquire it.
- Parameters
-
held | If true, the stream is to be placed on hold. |