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

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

# cli-media-session-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 MediaSessionHandlerInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.Media.SessionHandler";
    00060     }
    00061
    00069     MediaSessionHandlerInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     MediaSessionHandlerInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     MediaSessionHandlerInterface(Tp::DBusProxy *proxy);
    00097
    00098 public Q_SLOTS:
    00107     inline QDBusPendingReply<> Error(uint errorCode, const QString& message)
    00108     {
    00109         if (!invalidationReason().isEmpty()) {
    00110             return QDBusPendingReply<>(QDBusMessage::createError(
    00111                 invalidationReason(),
    00112                 invalidationMessage()
    00113             ));
    00114         }
    00115
    00116
    00117         QList<QVariant> argumentList;
    00118         argumentList << QVariant::fromValue(errorCode) << QVariant::fromValue(message);
    00119         return asyncCallWithArgumentList(QLatin1String("Error"), argumentList);
    00120     }
    00121
    00129     inline QDBusPendingReply<> Ready()
    00130     {
    00131         if (!invalidationReason().isEmpty()) {
    00132             return QDBusPendingReply<>(QDBusMessage::createError(
    00133                 invalidationReason(),
    00134                 invalidationMessage()
    00135             ));
    00136         }
    00137
    00138
    00139         return asyncCall(QLatin1String("Ready"));
    00140     }
    00141
    00142 Q_SIGNALS:
    00164     void NewStreamHandler(const QDBusObjectPath& streamHandler, uint ID, uint mediaType, uint direction);
    00165
    00166 protected:
    00167     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00168 };
    00169 }
    00170 }