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

cli-channel-request.h

    00001 /*
    00002  * This file contains D-Bus client proxy classes generated by qt-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_TP_QT_HEADER
    00009 #error IN_TP_QT_HEADER
    00010 #endif
    00011
    00012 #include <TelepathyQt/Types>
    00013
    00014 #include <QtGlobal>
    00015
    00016 #include <QString>
    00017 #include <QObject>
    00018 #include <QVariant>
    00019
    00020 #include <QDBusPendingReply>
    00021
    00022 #include <TelepathyQt/AbstractInterface>
    00023 #include <TelepathyQt/DBusProxy>
    00024 #include <TelepathyQt/Global>
    00025
    00026 namespace Tp
    00027 {
    00028 class PendingVariant;
    00029 class PendingOperation;
    00030 }
    00031
    00032 namespace Tp
    00033 {
    00034 namespace Client
    00035 {
    00036
    00044 class TP_QT_EXPORT ChannelRequestInterface : public Tp::AbstractInterface
    00045 {
    00046     Q_OBJECT
    00047
    00048 public:
    00055     static inline QLatin1String staticInterfaceName()
    00056     {
    00057         return QLatin1String("org.freedesktop.Telepathy.ChannelRequest");
    00058     }
    00059
    00067     ChannelRequestInterface(
    00068         const QString& busName,
    00069         const QString& objectPath,
    00070         QObject* parent = 0
    00071     );
    00072
    00081     ChannelRequestInterface(
    00082         const QDBusConnection& connection,
    00083         const QString& busName,
    00084         const QString& objectPath,
    00085         QObject* parent = 0
    00086     );
    00087
    00094     ChannelRequestInterface(Tp::DBusProxy *proxy);
    00095
    00105     inline Tp::PendingVariant *requestPropertyAccount() const
    00106     {
    00107         return internalRequestProperty(QLatin1String("Account"));
    00108     }
    00109
    00125     inline Tp::PendingVariant *requestPropertyUserActionTime() const
    00126     {
    00127         return internalRequestProperty(QLatin1String("UserActionTime"));
    00128     }
    00129
    00148     inline Tp::PendingVariant *requestPropertyPreferredHandler() const
    00149     {
    00150         return internalRequestProperty(QLatin1String("PreferredHandler"));
    00151     }
    00152
    00173     inline Tp::PendingVariant *requestPropertyRequests() const
    00174     {
    00175         return internalRequestProperty(QLatin1String("Requests"));
    00176     }
    00177
    00188     inline Tp::PendingVariant *requestPropertyInterfaces() const
    00189     {
    00190         return internalRequestProperty(QLatin1String("Interfaces"));
    00191     }
    00192
    00275     inline Tp::PendingVariant *requestPropertyHints() const
    00276     {
    00277         return internalRequestProperty(QLatin1String("Hints"));
    00278     }
    00279
    00286     Tp::PendingVariantMap *requestAllProperties() const
    00287     {
    00288         return internalRequestAllProperties();
    00289     }
    00290
    00291 public Q_SLOTS:
    00324     inline QDBusPendingReply<> Proceed(int timeout = -1)
    00325     {
    00326         if (!invalidationReason().isEmpty()) {
    00327             return QDBusPendingReply<>(QDBusMessage::createError(
    00328                 invalidationReason(),
    00329                 invalidationMessage()
    00330             ));
    00331         }
    00332
    00333         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00334                 this->staticInterfaceName(), QLatin1String("Proceed"));
    00335         return this->connection().asyncCall(callMessage, timeout);
    00336     }
    00337
    00380     inline QDBusPendingReply<> Cancel(int timeout = -1)
    00381     {
    00382         if (!invalidationReason().isEmpty()) {
    00383             return QDBusPendingReply<>(QDBusMessage::createError(
    00384                 invalidationReason(),
    00385                 invalidationMessage()
    00386             ));
    00387         }
    00388
    00389         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00390                 this->staticInterfaceName(), QLatin1String("Cancel"));
    00391         return this->connection().asyncCall(callMessage, timeout);
    00392     }
    00393
    00394 Q_SIGNALS:
    00417     void Failed(const QString& error, const QString& message);
    00418
    00427     void Succeeded();
    00428
    00469     void SucceededWithChannel(const QDBusObjectPath& connection, const QVariantMap& connectionProperties, const QDBusObjectPath& channel, const QVariantMap& channelProperties);
    00470
    00471 protected:
    00472     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00473 };
    00474 }
    00475 }
    00476 Q_DECLARE_METATYPE(Tp::Client::ChannelRequestInterface*)