Home · All Classes · All Namespaces · Modules · Functions · Files
cli-client.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 ClientInterface : public Tp::AbstractInterface
00045 {
00046     Q_OBJECT
00047 
00048 public:
00055     static inline QLatin1String staticInterfaceName()
00056     {
00057         return QLatin1String("org.freedesktop.Telepathy.Client");
00058     }
00059 
00067     ClientInterface(
00068         const QString& busName,
00069         const QString& objectPath,
00070         QObject* parent = 0
00071     );
00072 
00081     ClientInterface(
00082         const QDBusConnection& connection,
00083         const QString& busName,
00084         const QString& objectPath,
00085         QObject* parent = 0
00086     );
00087 
00094     ClientInterface(Tp::DBusProxy *proxy);
00095 
00118     inline Tp::PendingVariant *requestPropertyInterfaces() const
00119     {
00120         return internalRequestProperty(QLatin1String("Interfaces"));
00121     }
00122 
00129     Tp::PendingVariantMap *requestAllProperties() const
00130     {
00131         return internalRequestAllProperties();
00132     }
00133 
00134 protected:
00135     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00136 };
00137 
00145 class TP_QT_EXPORT ClientApproverInterface : public Tp::AbstractInterface
00146 {
00147     Q_OBJECT
00148 
00149 public:
00156     static inline QLatin1String staticInterfaceName()
00157     {
00158         return QLatin1String("org.freedesktop.Telepathy.Client.Approver");
00159     }
00160 
00168     ClientApproverInterface(
00169         const QString& busName,
00170         const QString& objectPath,
00171         QObject* parent = 0
00172     );
00173 
00182     ClientApproverInterface(
00183         const QDBusConnection& connection,
00184         const QString& busName,
00185         const QString& objectPath,
00186         QObject* parent = 0
00187     );
00188 
00195     ClientApproverInterface(Tp::DBusProxy *proxy);
00196 
00204     explicit ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface);
00205 
00213     ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
00214 
00240     inline Tp::PendingVariant *requestPropertyApproverChannelFilter() const
00241     {
00242         return internalRequestProperty(QLatin1String("ApproverChannelFilter"));
00243     }
00244 
00251     Tp::PendingVariantMap *requestAllProperties() const
00252     {
00253         return internalRequestAllProperties();
00254     }
00255 
00256 public Q_SLOTS:
00339     inline QDBusPendingReply<> AddDispatchOperation(const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const QVariantMap& properties, int timeout = -1)
00340     {
00341         if (!invalidationReason().isEmpty()) {
00342             return QDBusPendingReply<>(QDBusMessage::createError(
00343                 invalidationReason(),
00344                 invalidationMessage()
00345             ));
00346         }
00347 
00348         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00349                 this->staticInterfaceName(), QLatin1String("AddDispatchOperation"));
00350         callMessage << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(properties);
00351         return this->connection().asyncCall(callMessage, timeout);
00352     }
00353 
00354 protected:
00355     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00356 };
00357 
00365 class TP_QT_EXPORT ClientHandlerInterface : public Tp::AbstractInterface
00366 {
00367     Q_OBJECT
00368 
00369 public:
00376     static inline QLatin1String staticInterfaceName()
00377     {
00378         return QLatin1String("org.freedesktop.Telepathy.Client.Handler");
00379     }
00380 
00388     ClientHandlerInterface(
00389         const QString& busName,
00390         const QString& objectPath,
00391         QObject* parent = 0
00392     );
00393 
00402     ClientHandlerInterface(
00403         const QDBusConnection& connection,
00404         const QString& busName,
00405         const QString& objectPath,
00406         QObject* parent = 0
00407     );
00408 
00415     ClientHandlerInterface(Tp::DBusProxy *proxy);
00416 
00424     explicit ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface);
00425 
00433     ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
00434 
00459     inline Tp::PendingVariant *requestPropertyHandlerChannelFilter() const
00460     {
00461         return internalRequestProperty(QLatin1String("HandlerChannelFilter"));
00462     }
00463 
00499     inline Tp::PendingVariant *requestPropertyBypassApproval() const
00500     {
00501         return internalRequestProperty(QLatin1String("BypassApproval"));
00502     }
00503 
00551     inline Tp::PendingVariant *requestPropertyCapabilities() const
00552     {
00553         return internalRequestProperty(QLatin1String("Capabilities"));
00554     }
00555 
00593     inline Tp::PendingVariant *requestPropertyHandledChannels() const
00594     {
00595         return internalRequestProperty(QLatin1String("HandledChannels"));
00596     }
00597 
00604     Tp::PendingVariantMap *requestAllProperties() const
00605     {
00606         return internalRequestAllProperties();
00607     }
00608 
00609 public Q_SLOTS:
00715     inline QDBusPendingReply<> HandleChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const Tp::ObjectPathList& requestsSatisfied, qulonglong userActionTime, const QVariantMap& handlerInfo, int timeout = -1)
00716     {
00717         if (!invalidationReason().isEmpty()) {
00718             return QDBusPendingReply<>(QDBusMessage::createError(
00719                 invalidationReason(),
00720                 invalidationMessage()
00721             ));
00722         }
00723 
00724         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00725                 this->staticInterfaceName(), QLatin1String("HandleChannels"));
00726         callMessage << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(userActionTime) << QVariant::fromValue(handlerInfo);
00727         return this->connection().asyncCall(callMessage, timeout);
00728     }
00729 
00730 protected:
00731     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00732 };
00733 
00741 class TP_QT_EXPORT ClientInterfaceRequestsInterface : public Tp::AbstractInterface
00742 {
00743     Q_OBJECT
00744 
00745 public:
00752     static inline QLatin1String staticInterfaceName()
00753     {
00754         return QLatin1String("org.freedesktop.Telepathy.Client.Interface.Requests");
00755     }
00756 
00764     ClientInterfaceRequestsInterface(
00765         const QString& busName,
00766         const QString& objectPath,
00767         QObject* parent = 0
00768     );
00769 
00778     ClientInterfaceRequestsInterface(
00779         const QDBusConnection& connection,
00780         const QString& busName,
00781         const QString& objectPath,
00782         QObject* parent = 0
00783     );
00784 
00791     ClientInterfaceRequestsInterface(Tp::DBusProxy *proxy);
00792 
00800     explicit ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface);
00801 
00809     ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
00810 
00817     Tp::PendingVariantMap *requestAllProperties() const
00818     {
00819         return internalRequestAllProperties();
00820     }
00821 
00822 public Q_SLOTS:
00905     inline QDBusPendingReply<> AddRequest(const QDBusObjectPath& request, const QVariantMap& properties, int timeout = -1)
00906     {
00907         if (!invalidationReason().isEmpty()) {
00908             return QDBusPendingReply<>(QDBusMessage::createError(
00909                 invalidationReason(),
00910                 invalidationMessage()
00911             ));
00912         }
00913 
00914         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00915                 this->staticInterfaceName(), QLatin1String("AddRequest"));
00916         callMessage << QVariant::fromValue(request) << QVariant::fromValue(properties);
00917         return this->connection().asyncCall(callMessage, timeout);
00918     }
00919 
00960     inline QDBusPendingReply<> RemoveRequest(const QDBusObjectPath& request, const QString& error, const QString& message, int timeout = -1)
00961     {
00962         if (!invalidationReason().isEmpty()) {
00963             return QDBusPendingReply<>(QDBusMessage::createError(
00964                 invalidationReason(),
00965                 invalidationMessage()
00966             ));
00967         }
00968 
00969         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00970                 this->staticInterfaceName(), QLatin1String("RemoveRequest"));
00971         callMessage << QVariant::fromValue(request) << QVariant::fromValue(error) << QVariant::fromValue(message);
00972         return this->connection().asyncCall(callMessage, timeout);
00973     }
00974 
00975 protected:
00976     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00977 };
00978 
00986 class TP_QT_EXPORT ClientObserverInterface : public Tp::AbstractInterface
00987 {
00988     Q_OBJECT
00989 
00990 public:
00997     static inline QLatin1String staticInterfaceName()
00998     {
00999         return QLatin1String("org.freedesktop.Telepathy.Client.Observer");
01000     }
01001 
01009     ClientObserverInterface(
01010         const QString& busName,
01011         const QString& objectPath,
01012         QObject* parent = 0
01013     );
01014 
01023     ClientObserverInterface(
01024         const QDBusConnection& connection,
01025         const QString& busName,
01026         const QString& objectPath,
01027         QObject* parent = 0
01028     );
01029 
01036     ClientObserverInterface(Tp::DBusProxy *proxy);
01037 
01045     explicit ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface);
01046 
01054     ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
01055 
01148     inline Tp::PendingVariant *requestPropertyObserverChannelFilter() const
01149     {
01150         return internalRequestProperty(QLatin1String("ObserverChannelFilter"));
01151     }
01152 
01194     inline Tp::PendingVariant *requestPropertyRecover() const
01195     {
01196         return internalRequestProperty(QLatin1String("Recover"));
01197     }
01198 
01242     inline Tp::PendingVariant *requestPropertyDelayApprovers() const
01243     {
01244         return internalRequestProperty(QLatin1String("DelayApprovers"));
01245     }
01246 
01253     Tp::PendingVariantMap *requestAllProperties() const
01254     {
01255         return internalRequestAllProperties();
01256     }
01257 
01258 public Q_SLOTS:
01383     inline QDBusPendingReply<> ObserveChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const Tp::ObjectPathList& requestsSatisfied, const QVariantMap& observerInfo, int timeout = -1)
01384     {
01385         if (!invalidationReason().isEmpty()) {
01386             return QDBusPendingReply<>(QDBusMessage::createError(
01387                 invalidationReason(),
01388                 invalidationMessage()
01389             ));
01390         }
01391 
01392         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01393                 this->staticInterfaceName(), QLatin1String("ObserveChannels"));
01394         callMessage << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(observerInfo);
01395         return this->connection().asyncCall(callMessage, timeout);
01396     }
01397 
01398 protected:
01399     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01400 };
01401 }
01402 }
01403 Q_DECLARE_METATYPE(Tp::Client::ClientInterface*)
01404 Q_DECLARE_METATYPE(Tp::Client::ClientApproverInterface*)
01405 Q_DECLARE_METATYPE(Tp::Client::ClientHandlerInterface*)
01406 Q_DECLARE_METATYPE(Tp::Client::ClientInterfaceRequestsInterface*)
01407 Q_DECLARE_METATYPE(Tp::Client::ClientObserverInterface*)


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.3