TelepathyQt4: cli-client.h Source File

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

# cli-client.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 ClientInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.Client";
    00060     }
    00061
    00069     ClientInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     ClientInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     ClientInterface(Tp::DBusProxy *proxy);
    00097
    00114     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00115
    00116
    00124     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00125     {
    00126         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00127     }
    00128
    00129 protected:
    00130     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00131 };
    00132
    00140 class TELEPATHY_QT4_EXPORT ClientApproverInterface : public Tp::AbstractInterface
    00141 {
    00142     Q_OBJECT
    00143
    00144 public:
    00151     static inline const char *staticInterfaceName()
    00152     {
    00153         return "org.freedesktop.Telepathy.Client.Approver";
    00154     }
    00155
    00163     ClientApproverInterface(
    00164         const QString& busName,
    00165         const QString& objectPath,
    00166         QObject* parent = 0
    00167     );
    00168
    00177     ClientApproverInterface(
    00178         const QDBusConnection& connection,
    00179         const QString& busName,
    00180         const QString& objectPath,
    00181         QObject* parent = 0
    00182     );
    00183
    00190     ClientApproverInterface(Tp::DBusProxy *proxy);
    00191
    00199     explicit ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface);
    00200
    00208     ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
    00209
    00229     Q_PROPERTY(Tp::ChannelClassList ApproverChannelFilter READ ApproverChannelFilter)
    00230
    00231
    00239     inline Tp::ChannelClassList ApproverChannelFilter() const TELEPATHY_GNUC_DEPRECATED
    00240     {
    00241         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("ApproverChannelFilter"));
    00242     }
    00243
    00244 public Q_SLOTS:
    00316     inline QDBusPendingReply<> AddDispatchOperation(const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const QVariantMap& properties)
    00317     {
    00318         if (!invalidationReason().isEmpty()) {
    00319             return QDBusPendingReply<>(QDBusMessage::createError(
    00320                 invalidationReason(),
    00321                 invalidationMessage()
    00322             ));
    00323         }
    00324
    00325
    00326         QList<QVariant> argumentList;
    00327         argumentList << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(properties);
    00328         return asyncCallWithArgumentList(QLatin1String("AddDispatchOperation"), argumentList);
    00329     }
    00330
    00331 protected:
    00332     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00333 };
    00334
    00342 class TELEPATHY_QT4_EXPORT ClientHandlerInterface : public Tp::AbstractInterface
    00343 {
    00344     Q_OBJECT
    00345
    00346 public:
    00353     static inline const char *staticInterfaceName()
    00354     {
    00355         return "org.freedesktop.Telepathy.Client.Handler";
    00356     }
    00357
    00365     ClientHandlerInterface(
    00366         const QString& busName,
    00367         const QString& objectPath,
    00368         QObject* parent = 0
    00369     );
    00370
    00379     ClientHandlerInterface(
    00380         const QDBusConnection& connection,
    00381         const QString& busName,
    00382         const QString& objectPath,
    00383         QObject* parent = 0
    00384     );
    00385
    00392     ClientHandlerInterface(Tp::DBusProxy *proxy);
    00393
    00401     explicit ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface);
    00402
    00410     ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
    00411
    00430     Q_PROPERTY(Tp::ChannelClassList HandlerChannelFilter READ HandlerChannelFilter)
    00431
    00432
    00440     inline Tp::ChannelClassList HandlerChannelFilter() const TELEPATHY_GNUC_DEPRECATED
    00441     {
    00442         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("HandlerChannelFilter"));
    00443     }
    00444
    00467     Q_PROPERTY(bool BypassApproval READ BypassApproval)
    00468
    00469
    00477     inline bool BypassApproval() const TELEPATHY_GNUC_DEPRECATED
    00478     {
    00479         return qvariant_cast<bool>(internalPropGet("BypassApproval"));
    00480     }
    00481
    00523     Q_PROPERTY(QStringList Capabilities READ Capabilities)
    00524
    00525
    00533     inline QStringList Capabilities() const TELEPATHY_GNUC_DEPRECATED
    00534     {
    00535         return qvariant_cast<QStringList>(internalPropGet("Capabilities"));
    00536     }
    00537
    00569     Q_PROPERTY(Tp::ObjectPathList HandledChannels READ HandledChannels)
    00570
    00571
    00579     inline Tp::ObjectPathList HandledChannels() const TELEPATHY_GNUC_DEPRECATED
    00580     {
    00581         return qvariant_cast<Tp::ObjectPathList>(internalPropGet("HandledChannels"));
    00582     }
    00583
    00584 public Q_SLOTS:
    00668     inline QDBusPendingReply<> HandleChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const Tp::ObjectPathList& requestsSatisfied, qulonglong userActionTime, const QVariantMap& handlerInfo)
    00669     {
    00670         if (!invalidationReason().isEmpty()) {
    00671             return QDBusPendingReply<>(QDBusMessage::createError(
    00672                 invalidationReason(),
    00673                 invalidationMessage()
    00674             ));
    00675         }
    00676
    00677
    00678         QList<QVariant> argumentList;
    00679         argumentList << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(userActionTime) << QVariant::fromValue(handlerInfo);
    00680         return asyncCallWithArgumentList(QLatin1String("HandleChannels"), argumentList);
    00681     }
    00682
    00683 protected:
    00684     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00685 };
    00686
    00694 class TELEPATHY_QT4_EXPORT ClientInterfaceRequestsInterface : public Tp::AbstractInterface
    00695 {
    00696     Q_OBJECT
    00697
    00698 public:
    00705     static inline const char *staticInterfaceName()
    00706     {
    00707         return "org.freedesktop.Telepathy.Client.Interface.Requests";
    00708     }
    00709
    00717     ClientInterfaceRequestsInterface(
    00718         const QString& busName,
    00719         const QString& objectPath,
    00720         QObject* parent = 0
    00721     );
    00722
    00731     ClientInterfaceRequestsInterface(
    00732         const QDBusConnection& connection,
    00733         const QString& busName,
    00734         const QString& objectPath,
    00735         QObject* parent = 0
    00736     );
    00737
    00744     ClientInterfaceRequestsInterface(Tp::DBusProxy *proxy);
    00745
    00753     explicit ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface);
    00754
    00762     ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
    00763
    00764 public Q_SLOTS:
    00839     inline QDBusPendingReply<> AddRequest(const QDBusObjectPath& request, const QVariantMap& properties)
    00840     {
    00841         if (!invalidationReason().isEmpty()) {
    00842             return QDBusPendingReply<>(QDBusMessage::createError(
    00843                 invalidationReason(),
    00844                 invalidationMessage()
    00845             ));
    00846         }
    00847
    00848
    00849         QList<QVariant> argumentList;
    00850         argumentList << QVariant::fromValue(request) << QVariant::fromValue(properties);
    00851         return asyncCallWithArgumentList(QLatin1String("AddRequest"), argumentList);
    00852     }
    00853
    00885     inline QDBusPendingReply<> RemoveRequest(const QDBusObjectPath& request, const QString& error, const QString& message)
    00886     {
    00887         if (!invalidationReason().isEmpty()) {
    00888             return QDBusPendingReply<>(QDBusMessage::createError(
    00889                 invalidationReason(),
    00890                 invalidationMessage()
    00891             ));
    00892         }
    00893
    00894
    00895         QList<QVariant> argumentList;
    00896         argumentList << QVariant::fromValue(request) << QVariant::fromValue(error) << QVariant::fromValue(message);
    00897         return asyncCallWithArgumentList(QLatin1String("RemoveRequest"), argumentList);
    00898     }
    00899
    00900 protected:
    00901     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00902 };
    00903
    00911 class TELEPATHY_QT4_EXPORT ClientObserverInterface : public Tp::AbstractInterface
    00912 {
    00913     Q_OBJECT
    00914
    00915 public:
    00922     static inline const char *staticInterfaceName()
    00923     {
    00924         return "org.freedesktop.Telepathy.Client.Observer";
    00925     }
    00926
    00934     ClientObserverInterface(
    00935         const QString& busName,
    00936         const QString& objectPath,
    00937         QObject* parent = 0
    00938     );
    00939
    00948     ClientObserverInterface(
    00949         const QDBusConnection& connection,
    00950         const QString& busName,
    00951         const QString& objectPath,
    00952         QObject* parent = 0
    00953     );
    00954
    00961     ClientObserverInterface(Tp::DBusProxy *proxy);
    00962
    00970     explicit ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface);
    00971
    00979     ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
    00980
    01067     Q_PROPERTY(Tp::ChannelClassList ObserverChannelFilter READ ObserverChannelFilter)
    01068
    01069
    01077     inline Tp::ChannelClassList ObserverChannelFilter() const TELEPATHY_GNUC_DEPRECATED
    01078     {
    01079         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("ObserverChannelFilter"));
    01080     }
    01081
    01082 public Q_SLOTS:
    01174     inline QDBusPendingReply<> ObserveChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const Tp::ObjectPathList& requestsSatisfied, const QVariantMap& observerInfo)
    01175     {
    01176         if (!invalidationReason().isEmpty()) {
    01177             return QDBusPendingReply<>(QDBusMessage::createError(
    01178                 invalidationReason(),
    01179                 invalidationMessage()
    01180             ));
    01181         }
    01182
    01183
    01184         QList<QVariant> argumentList;
    01185         argumentList << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(observerInfo);
    01186         return asyncCallWithArgumentList(QLatin1String("ObserveChannels"), argumentList);
    01187     }
    01188
    01189 protected:
    01190     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    01191 };
    01192 }
    01193 }