TelepathyQt4: cli-media-stream-handler.h Source File

| Home · All Classes · All Namespaces · Modules · Functions · Files

# cli-media-stream-handler.h

    00001 /*
    00002  * This file contains D-Bus client proxy classes generated by qt4-client-gen.py.
    00003  *
    00004  * This file can be distributed under the same terms as the specification from
    00005  * which it was generated.
    00006  */
    00007
    00008 #ifndef IN_TELEPATHY_QT4_HEADER
    00009 #error IN_TELEPATHY_QT4_HEADER
    00010 #endif
    00011
    00012 #include <TelepathyQt4/Types>
    00013
    00014 #include <QtGlobal>
    00015
    00016 #include <QString>
    00017 #include <QObject>
    00018 #include <QVariant>
    00019
    00020 #include <QDBusPendingReply>
    00021
    00022 #include <TelepathyQt4/AbstractInterface>
    00023 #include <TelepathyQt4/DBusProxy>
    00024 #include <TelepathyQt4/Global>
    00025
    00026 // basically the same as GLib's G_GNUC_DEPRECATED
    00027 #ifndef TELEPATHY_GNUC_DEPRECATED
    00028 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
    00029 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
    00030 #   else
    00031 #       define TELEPATHY_GNUC_DEPRECATED
    00032 #   endif
    00033 #endif
    00034 namespace Tp
    00035 {
    00036 namespace Client
    00037 {
    00038
    00046 class TELEPATHY_QT4_EXPORT MediaStreamHandlerInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.Media.StreamHandler";
    00060     }
    00061
    00069     MediaStreamHandlerInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     MediaStreamHandlerInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     MediaStreamHandlerInterface(Tp::DBusProxy *proxy);
    00097
    00109     Q_PROPERTY(Tp::SocketAddressIPList STUNServers READ STUNServers)
    00110
    00111
    00119     inline Tp::SocketAddressIPList STUNServers() const TELEPATHY_GNUC_DEPRECATED
    00120     {
    00121         return qvariant_cast<Tp::SocketAddressIPList>(internalPropGet("STUNServers"));
    00122     }
    00123
    00131     Q_PROPERTY(bool CreatedLocally READ CreatedLocally)
    00132
    00133
    00141     inline bool CreatedLocally() const TELEPATHY_GNUC_DEPRECATED
    00142     {
    00143         return qvariant_cast<bool>(internalPropGet("CreatedLocally"));
    00144     }
    00145
    00181     Q_PROPERTY(QString NATTraversal READ NATTraversal)
    00182
    00183
    00191     inline QString NATTraversal() const TELEPATHY_GNUC_DEPRECATED
    00192     {
    00193         return qvariant_cast<QString>(internalPropGet("NATTraversal"));
    00194     }
    00195
    00270     Q_PROPERTY(Tp::StringVariantMapList RelayInfo READ RelayInfo)
    00271
    00272
    00280     inline Tp::StringVariantMapList RelayInfo() const TELEPATHY_GNUC_DEPRECATED
    00281     {
    00282         return qvariant_cast<Tp::StringVariantMapList>(internalPropGet("RelayInfo"));
    00283     }
    00284
    00285 public Q_SLOTS:
    00291     inline QDBusPendingReply<> CodecChoice(uint codecID)
    00292     {
    00293         if (!invalidationReason().isEmpty()) {
    00294             return QDBusPendingReply<>(QDBusMessage::createError(
    00295                 invalidationReason(),
    00296                 invalidationMessage()
    00297             ));
    00298         }
    00299
    00300
    00301         QList<QVariant> argumentList;
    00302         argumentList << QVariant::fromValue(codecID);
    00303         return asyncCallWithArgumentList(QLatin1String("CodecChoice"), argumentList);
    00304     }
    00305
    00321     inline QDBusPendingReply<> Error(uint errorCode, const QString& message)
    00322     {
    00323         if (!invalidationReason().isEmpty()) {
    00324             return QDBusPendingReply<>(QDBusMessage::createError(
    00325                 invalidationReason(),
    00326                 invalidationMessage()
    00327             ));
    00328         }
    00329
    00330
    00331         QList<QVariant> argumentList;
    00332         argumentList << QVariant::fromValue(errorCode) << QVariant::fromValue(message);
    00333         return asyncCallWithArgumentList(QLatin1String("Error"), argumentList);
    00334     }
    00335
    00342     inline QDBusPendingReply<> NativeCandidatesPrepared()
    00343     {
    00344         if (!invalidationReason().isEmpty()) {
    00345             return QDBusPendingReply<>(QDBusMessage::createError(
    00346                 invalidationReason(),
    00347                 invalidationMessage()
    00348             ));
    00349         }
    00350
    00351
    00352         return asyncCall(QLatin1String("NativeCandidatesPrepared"));
    00353     }
    00354
    00361     inline QDBusPendingReply<> NewActiveCandidatePair(const QString& nativeCandidateID, const QString& remoteCandidateID)
    00362     {
    00363         if (!invalidationReason().isEmpty()) {
    00364             return QDBusPendingReply<>(QDBusMessage::createError(
    00365                 invalidationReason(),
    00366                 invalidationMessage()
    00367             ));
    00368         }
    00369
    00370
    00371         QList<QVariant> argumentList;
    00372         argumentList << QVariant::fromValue(nativeCandidateID) << QVariant::fromValue(remoteCandidateID);
    00373         return asyncCallWithArgumentList(QLatin1String("NewActiveCandidatePair"), argumentList);
    00374     }
    00375
    00403     inline QDBusPendingReply<> NewNativeCandidate(const QString& candidateID, const Tp::MediaStreamHandlerTransportList& transports)
    00404     {
    00405         if (!invalidationReason().isEmpty()) {
    00406             return QDBusPendingReply<>(QDBusMessage::createError(
    00407                 invalidationReason(),
    00408                 invalidationMessage()
    00409             ));
    00410         }
    00411
    00412
    00413         QList<QVariant> argumentList;
    00414         argumentList << QVariant::fromValue(candidateID) << QVariant::fromValue(transports);
    00415         return asyncCallWithArgumentList(QLatin1String("NewNativeCandidate"), argumentList);
    00416     }
    00417
    00428     inline QDBusPendingReply<> Ready(const Tp::MediaStreamHandlerCodecList& codecs)
    00429     {
    00430         if (!invalidationReason().isEmpty()) {
    00431             return QDBusPendingReply<>(QDBusMessage::createError(
    00432                 invalidationReason(),
    00433                 invalidationMessage()
    00434             ));
    00435         }
    00436
    00437
    00438         QList<QVariant> argumentList;
    00439         argumentList << QVariant::fromValue(codecs);
    00440         return asyncCallWithArgumentList(QLatin1String("Ready"), argumentList);
    00441     }
    00442
    00465     inline QDBusPendingReply<> SetLocalCodecs(const Tp::MediaStreamHandlerCodecList& codecs)
    00466     {
    00467         if (!invalidationReason().isEmpty()) {
    00468             return QDBusPendingReply<>(QDBusMessage::createError(
    00469                 invalidationReason(),
    00470                 invalidationMessage()
    00471             ));
    00472         }
    00473
    00474
    00475         QList<QVariant> argumentList;
    00476         argumentList << QVariant::fromValue(codecs);
    00477         return asyncCallWithArgumentList(QLatin1String("SetLocalCodecs"), argumentList);
    00478     }
    00479
    00486     inline QDBusPendingReply<> StreamState(uint state)
    00487     {
    00488         if (!invalidationReason().isEmpty()) {
    00489             return QDBusPendingReply<>(QDBusMessage::createError(
    00490                 invalidationReason(),
    00491                 invalidationMessage()
    00492             ));
    00493         }
    00494
    00495
    00496         QList<QVariant> argumentList;
    00497         argumentList << QVariant::fromValue(state);
    00498         return asyncCallWithArgumentList(QLatin1String("StreamState"), argumentList);
    00499     }
    00500
    00514     inline QDBusPendingReply<> SupportedCodecs(const Tp::MediaStreamHandlerCodecList& codecs)
    00515     {
    00516         if (!invalidationReason().isEmpty()) {
    00517             return QDBusPendingReply<>(QDBusMessage::createError(
    00518                 invalidationReason(),
    00519                 invalidationMessage()
    00520             ));
    00521         }
    00522
    00523
    00524         QList<QVariant> argumentList;
    00525         argumentList << QVariant::fromValue(codecs);
    00526         return asyncCallWithArgumentList(QLatin1String("SupportedCodecs"), argumentList);
    00527     }
    00528
    00542     inline QDBusPendingReply<> CodecsUpdated(const Tp::MediaStreamHandlerCodecList& codecs)
    00543     {
    00544         if (!invalidationReason().isEmpty()) {
    00545             return QDBusPendingReply<>(QDBusMessage::createError(
    00546                 invalidationReason(),
    00547                 invalidationMessage()
    00548             ));
    00549         }
    00550
    00551
    00552         QList<QVariant> argumentList;
    00553         argumentList << QVariant::fromValue(codecs);
    00554         return asyncCallWithArgumentList(QLatin1String("CodecsUpdated"), argumentList);
    00555     }
    00556
    00567     inline QDBusPendingReply<> HoldState(bool held)
    00568     {
    00569         if (!invalidationReason().isEmpty()) {
    00570             return QDBusPendingReply<>(QDBusMessage::createError(
    00571                 invalidationReason(),
    00572                 invalidationMessage()
    00573             ));
    00574         }
    00575
    00576
    00577         QList<QVariant> argumentList;
    00578         argumentList << QVariant::fromValue(held);
    00579         return asyncCallWithArgumentList(QLatin1String("HoldState"), argumentList);
    00580     }
    00581
    00589     inline QDBusPendingReply<> UnholdFailure()
    00590     {
    00591         if (!invalidationReason().isEmpty()) {
    00592             return QDBusPendingReply<>(QDBusMessage::createError(
    00593                 invalidationReason(),
    00594                 invalidationMessage()
    00595             ));
    00596         }
    00597
    00598
    00599         return asyncCall(QLatin1String("UnholdFailure"));
    00600     }
    00601
    00602 Q_SIGNALS:
    00618     void AddRemoteCandidate(const QString& candidateID, const Tp::MediaStreamHandlerTransportList& transports);
    00619
    00626     void Close();
    00627
    00639     void RemoveRemoteCandidate(const QString& candidateID);
    00640
    00648     void SetActiveCandidatePair(const QString& nativeCandidateID, const QString& remoteCandidateID);
    00649
    00661     void SetRemoteCandidateList(const Tp::MediaStreamHandlerCandidateList& remoteCandidates);
    00662
    00675     void SetRemoteCodecs(const Tp::MediaStreamHandlerCodecList& codecs);
    00676
    00686     void SetStreamPlaying(bool playing);
    00687
    00694     void SetStreamSending(bool sending);
    00695
    00706     void StartTelephonyEvent(uchar event);
    00707
    00714     void StopTelephonyEvent();
    00715
    00747     void SetStreamHeld(bool held);
    00748
    00749 protected:
    00750     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00751 };
    00752 }
    00753 }