23 #ifndef _TelepathyQt_streamed_media_channel_h_HEADER_GUARD_
24 #define _TelepathyQt_streamed_media_channel_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
30 #include <TelepathyQt/Channel>
31 #include <TelepathyQt/PendingOperation>
32 #include <TelepathyQt/Object>
33 #include <TelepathyQt/SharedPtr>
34 #include <TelepathyQt/Types>
51 StreamedMediaChannelPtr channel()
const;
56 TP_QT_NO_EXPORT
void gotStreams(QDBusPendingCallWatcher *op);
58 TP_QT_NO_EXPORT
void onStreamRemoved(
const Tp::StreamedMediaStreamPtr &stream);
65 const ContactPtr &contact,
66 const QList<MediaStreamType> &types);
69 friend struct Private;
87 StreamedMediaChannelPtr channel()
const;
91 ContactPtr contact()
const;
100 bool receiving()
const;
102 bool localSendingRequested()
const;
103 bool remoteSendingRequested()
const;
128 static const Feature FeatureCore;
132 TP_QT_NO_EXPORT
void gotDirection(uint direction, uint pendingSend);
133 TP_QT_NO_EXPORT
void gotStreamState(uint state);
136 friend struct Private;
152 StateChangeReasonUnknown = 0,
153 StateChangeReasonUserRequested = 1
156 static StreamedMediaChannelPtr create(
const ConnectionPtr &connection,
157 const QString &objectPath,
const QVariantMap &immutableProperties);
161 bool awaitingLocalAnswer()
const;
162 bool awaitingRemoteAnswer()
const;
176 bool handlerStreamingRequired()
const;
183 void streamAdded(
const Tp::StreamedMediaStreamPtr &stream);
184 void streamRemoved(
const Tp::StreamedMediaStreamPtr &stream);
185 void streamDirectionChanged(
const Tp::StreamedMediaStreamPtr &stream,
188 void streamStateChanged(
const Tp::StreamedMediaStreamPtr &stream,
190 void streamError(
const Tp::StreamedMediaStreamPtr &stream,
192 const QString &errorMessage);
199 const QString &objectPath,
const QVariantMap &immutableProperties,
205 TP_QT_NO_EXPORT
void gotStreams(QDBusPendingCallWatcher *);
206 TP_QT_NO_EXPORT
void onStreamAdded(uint, uint, uint);
207 TP_QT_NO_EXPORT
void onStreamRemoved(uint);
208 TP_QT_NO_EXPORT
void onStreamDirectionChanged(uint, uint, uint);
209 TP_QT_NO_EXPORT
void onStreamStateChanged(uint streamId, uint streamState);
210 TP_QT_NO_EXPORT
void onStreamError(uint, uint,
const QString &);
212 TP_QT_NO_EXPORT
void gotLocalHoldState(QDBusPendingCallWatcher *);
213 TP_QT_NO_EXPORT
void onLocalHoldStateChanged(uint, uint);
219 StreamedMediaStreamPtr lookupStreamById(uint streamId);
222 friend struct Private;
SendingState
Definition: streamed-media-channel.h:79
MediaStreamType
Definition: build/TelepathyQt/_gen/constants.h:2716
DTMFEvent
Definition: build/TelepathyQt/_gen/constants.h:3121
The StreamedMediaStream class represents a Telepathy streamed media stream.
Definition: streamed-media-channel.h:73
The Object class provides an object with property notification.
Definition: object.h:39
static const Feature FeatureLocalHoldState
Definition: streamed-media-channel.h:149
StateChangeReason
Definition: streamed-media-channel.h:151
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
static const Feature FeatureStreams
Definition: streamed-media-channel.h:148
QFlags< MediaStreamPending > MediaStreamPendingSend
Definition: build/TelepathyQt/_gen/constants.h:682
Definition: ready-object.h:42
MediaStreamState
Definition: build/TelepathyQt/_gen/constants.h:2744
The StreamedMediaChannel class represents a Telepathy channel of type StreamedMedia.
Definition: streamed-media-channel.h:140
static const Feature FeatureCore
Definition: streamed-media-channel.h:147
Definition: build/TelepathyQt/_gen/types.h:1979
Class containing the result of an asynchronous streamed media stream creation request.
Definition: streamed-media-channel.h:43
MediaStreamDirection
Definition: build/TelepathyQt/_gen/constants.h:2777
QList< StreamedMediaStreamPtr > StreamedMediaStreams
Definition: streamed-media-channel.h:39
Definition: build/TelepathyQt/_gen/constants.h:4534
Definition: build/TelepathyQt/_gen/constants.h:4544
LocalHoldState
Definition: build/TelepathyQt/_gen/constants.h:3466
Definition: build/TelepathyQt/_gen/constants.h:4539
MediaStreamError
Definition: build/TelepathyQt/_gen/constants.h:3912
SendingState
Definition: build/TelepathyQt/_gen/constants.h:4529
LocalHoldStateReason
Definition: build/TelepathyQt/_gen/constants.h:3516
The Channel class represents a Telepathy channel.
Definition: channel.h:51