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

# cli-channel-dispatch-operation.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 ChannelDispatchOperationInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.ChannelDispatchOperation";
    00060     }
    00061
    00069     ChannelDispatchOperationInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     ChannelDispatchOperationInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     ChannelDispatchOperationInterface(Tp::DBusProxy *proxy);
    00097
    00104     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00105
    00106
    00114     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00115     {
    00116         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00117     }
    00118
    00127     Q_PROPERTY(QDBusObjectPath Connection READ Connection)
    00128
    00129
    00137     inline QDBusObjectPath Connection() const TELEPATHY_GNUC_DEPRECATED
    00138     {
    00139         return qvariant_cast<QDBusObjectPath>(internalPropGet("Connection"));
    00140     }
    00141
    00148     Q_PROPERTY(QDBusObjectPath Account READ Account)
    00149
    00150
    00158     inline QDBusObjectPath Account() const TELEPATHY_GNUC_DEPRECATED
    00159     {
    00160         return qvariant_cast<QDBusObjectPath>(internalPropGet("Account"));
    00161     }
    00162
    00170     Q_PROPERTY(Tp::ChannelDetailsList Channels READ Channels)
    00171
    00172
    00180     inline Tp::ChannelDetailsList Channels() const TELEPATHY_GNUC_DEPRECATED
    00181     {
    00182         return qvariant_cast<Tp::ChannelDetailsList>(internalPropGet("Channels"));
    00183     }
    00184
    00198     Q_PROPERTY(QStringList PossibleHandlers READ PossibleHandlers)
    00199
    00200
    00208     inline QStringList PossibleHandlers() const TELEPATHY_GNUC_DEPRECATED
    00209     {
    00210         return qvariant_cast<QStringList>(internalPropGet("PossibleHandlers"));
    00211     }
    00212
    00213 public Q_SLOTS:
    00250     inline QDBusPendingReply<> HandleWith(const QString& handler)
    00251     {
    00252         if (!invalidationReason().isEmpty()) {
    00253             return QDBusPendingReply<>(QDBusMessage::createError(
    00254                 invalidationReason(),
    00255                 invalidationMessage()
    00256             ));
    00257         }
    00258
    00259
    00260         QList<QVariant> argumentList;
    00261         argumentList << QVariant::fromValue(handler);
    00262         return asyncCallWithArgumentList(QLatin1String("HandleWith"), argumentList);
    00263     }
    00264
    00311     inline QDBusPendingReply<> Claim()
    00312     {
    00313         if (!invalidationReason().isEmpty()) {
    00314             return QDBusPendingReply<>(QDBusMessage::createError(
    00315                 invalidationReason(),
    00316                 invalidationMessage()
    00317             ));
    00318         }
    00319
    00320
    00321         return asyncCall(QLatin1String("Claim"));
    00322     }
    00323
    00324 Q_SIGNALS:
    00366     void ChannelLost(const QDBusObjectPath& channel, const QString& error, const QString& message);
    00367
    00408     void Finished();
    00409
    00410 protected:
    00411     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00412 };
    00413 }
    00414 }