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 namespace Tp{
00027 class PendingVariant;
00028 class PendingOperation;
00029 }
00030 
00031 // FIXME: (API/ABI break) Remove definition of TELEPATHY_GNUC_DEPRECATED
00032 
00033 // basically the same as GLib's G_GNUC_DEPRECATED
00034 #ifndef TELEPATHY_GNUC_DEPRECATED
00035 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
00036 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
00037 #   else
00038 #       define TELEPATHY_GNUC_DEPRECATED
00039 #   endif
00040 #endif
00041 namespace Tp
00042 {
00043 namespace Client
00044 {
00045 
00053 class TELEPATHY_QT4_EXPORT ClientInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.Client";
00067     }
00068 
00076     ClientInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     ClientInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     ClientInterface(Tp::DBusProxy *proxy);
00104 
00121     Q_PROPERTY(QStringList Interfaces READ _deprecated_Interfaces)
00122 
00123     
00132     inline TELEPATHY_QT4_DEPRECATED QStringList Interfaces() const
00133     {
00134         return _deprecated_Interfaces();
00135     }
00136 
00137 private:
00138     inline QStringList _deprecated_Interfaces() const
00139     {
00140         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00141     }
00142 public:
00143 
00164     inline Tp::PendingVariant *requestPropertyInterfaces() const
00165     {
00166         return internalRequestProperty(QLatin1String("Interfaces"));
00167     }
00168 
00175     Tp::PendingVariantMap *requestAllProperties() const
00176     {
00177         return internalRequestAllProperties();
00178     }
00179 
00180 protected:
00181     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00182 };
00183 
00191 class TELEPATHY_QT4_EXPORT ClientApproverInterface : public Tp::AbstractInterface
00192 {
00193     Q_OBJECT
00194 
00195 public:
00202     static inline const char *staticInterfaceName()
00203     {
00204         return "org.freedesktop.Telepathy.Client.Approver";
00205     }
00206 
00214     ClientApproverInterface(
00215         const QString& busName,
00216         const QString& objectPath,
00217         QObject* parent = 0
00218     );
00219 
00228     ClientApproverInterface(
00229         const QDBusConnection& connection,
00230         const QString& busName,
00231         const QString& objectPath,
00232         QObject* parent = 0
00233     );
00234 
00241     ClientApproverInterface(Tp::DBusProxy *proxy);
00242 
00250     explicit ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface);
00251 
00259     ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
00260 
00280     Q_PROPERTY(Tp::ChannelClassList ApproverChannelFilter READ _deprecated_ApproverChannelFilter)
00281 
00282     
00291     inline TELEPATHY_QT4_DEPRECATED Tp::ChannelClassList ApproverChannelFilter() const
00292     {
00293         return _deprecated_ApproverChannelFilter();
00294     }
00295 
00296 private:
00297     inline Tp::ChannelClassList _deprecated_ApproverChannelFilter() const
00298     {
00299         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("ApproverChannelFilter"));
00300     }
00301 public:
00302 
00326     inline Tp::PendingVariant *requestPropertyApproverChannelFilter() const
00327     {
00328         return internalRequestProperty(QLatin1String("ApproverChannelFilter"));
00329     }
00330 
00337     Tp::PendingVariantMap *requestAllProperties() const
00338     {
00339         return internalRequestAllProperties();
00340     }
00341 
00342 public Q_SLOTS:
00414     inline QDBusPendingReply<> AddDispatchOperation(const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const QVariantMap& properties)
00415     {
00416         if (!invalidationReason().isEmpty()) {
00417             return QDBusPendingReply<>(QDBusMessage::createError(
00418                 invalidationReason(),
00419                 invalidationMessage()
00420             ));
00421         }
00422 
00423         QList<QVariant> argumentList;
00424         argumentList << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(properties);
00425         return asyncCallWithArgumentList(QLatin1String("AddDispatchOperation"), argumentList);
00426     }
00427 
00428 protected:
00429     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00430 };
00431 
00439 class TELEPATHY_QT4_EXPORT ClientHandlerInterface : public Tp::AbstractInterface
00440 {
00441     Q_OBJECT
00442 
00443 public:
00450     static inline const char *staticInterfaceName()
00451     {
00452         return "org.freedesktop.Telepathy.Client.Handler";
00453     }
00454 
00462     ClientHandlerInterface(
00463         const QString& busName,
00464         const QString& objectPath,
00465         QObject* parent = 0
00466     );
00467 
00476     ClientHandlerInterface(
00477         const QDBusConnection& connection,
00478         const QString& busName,
00479         const QString& objectPath,
00480         QObject* parent = 0
00481     );
00482 
00489     ClientHandlerInterface(Tp::DBusProxy *proxy);
00490 
00498     explicit ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface);
00499 
00507     ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
00508 
00527     Q_PROPERTY(Tp::ChannelClassList HandlerChannelFilter READ _deprecated_HandlerChannelFilter)
00528 
00529     
00538     inline TELEPATHY_QT4_DEPRECATED Tp::ChannelClassList HandlerChannelFilter() const
00539     {
00540         return _deprecated_HandlerChannelFilter();
00541     }
00542 
00543 private:
00544     inline Tp::ChannelClassList _deprecated_HandlerChannelFilter() const
00545     {
00546         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("HandlerChannelFilter"));
00547     }
00548 public:
00549 
00572     inline Tp::PendingVariant *requestPropertyHandlerChannelFilter() const
00573     {
00574         return internalRequestProperty(QLatin1String("HandlerChannelFilter"));
00575     }
00576 
00607     Q_PROPERTY(bool BypassApproval READ _deprecated_BypassApproval)
00608 
00609     
00618     inline TELEPATHY_QT4_DEPRECATED bool BypassApproval() const
00619     {
00620         return _deprecated_BypassApproval();
00621     }
00622 
00623 private:
00624     inline bool _deprecated_BypassApproval() const
00625     {
00626         return qvariant_cast<bool>(internalPropGet("BypassApproval"));
00627     }
00628 public:
00629 
00664     inline Tp::PendingVariant *requestPropertyBypassApproval() const
00665     {
00666         return internalRequestProperty(QLatin1String("BypassApproval"));
00667     }
00668 
00710     Q_PROPERTY(QStringList Capabilities READ _deprecated_Capabilities)
00711 
00712     
00721     inline TELEPATHY_QT4_DEPRECATED QStringList Capabilities() const
00722     {
00723         return _deprecated_Capabilities();
00724     }
00725 
00726 private:
00727     inline QStringList _deprecated_Capabilities() const
00728     {
00729         return qvariant_cast<QStringList>(internalPropGet("Capabilities"));
00730     }
00731 public:
00732 
00778     inline Tp::PendingVariant *requestPropertyCapabilities() const
00779     {
00780         return internalRequestProperty(QLatin1String("Capabilities"));
00781     }
00782 
00814     Q_PROPERTY(Tp::ObjectPathList HandledChannels READ _deprecated_HandledChannels)
00815 
00816     
00825     inline TELEPATHY_QT4_DEPRECATED Tp::ObjectPathList HandledChannels() const
00826     {
00827         return _deprecated_HandledChannels();
00828     }
00829 
00830 private:
00831     inline Tp::ObjectPathList _deprecated_HandledChannels() const
00832     {
00833         return qvariant_cast<Tp::ObjectPathList>(internalPropGet("HandledChannels"));
00834     }
00835 public:
00836 
00872     inline Tp::PendingVariant *requestPropertyHandledChannels() const
00873     {
00874         return internalRequestProperty(QLatin1String("HandledChannels"));
00875     }
00876 
00883     Tp::PendingVariantMap *requestAllProperties() const
00884     {
00885         return internalRequestAllProperties();
00886     }
00887 
00888 public Q_SLOTS:
00983     inline QDBusPendingReply<> HandleChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const Tp::ObjectPathList& requestsSatisfied, qulonglong userActionTime, const QVariantMap& handlerInfo)
00984     {
00985         if (!invalidationReason().isEmpty()) {
00986             return QDBusPendingReply<>(QDBusMessage::createError(
00987                 invalidationReason(),
00988                 invalidationMessage()
00989             ));
00990         }
00991 
00992         QList<QVariant> argumentList;
00993         argumentList << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(userActionTime) << QVariant::fromValue(handlerInfo);
00994         return asyncCallWithArgumentList(QLatin1String("HandleChannels"), argumentList);
00995     }
00996 
00997 protected:
00998     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00999 };
01000 
01008 class TELEPATHY_QT4_EXPORT ClientInterfaceRequestsInterface : public Tp::AbstractInterface
01009 {
01010     Q_OBJECT
01011 
01012 public:
01019     static inline const char *staticInterfaceName()
01020     {
01021         return "org.freedesktop.Telepathy.Client.Interface.Requests";
01022     }
01023 
01031     ClientInterfaceRequestsInterface(
01032         const QString& busName,
01033         const QString& objectPath,
01034         QObject* parent = 0
01035     );
01036 
01045     ClientInterfaceRequestsInterface(
01046         const QDBusConnection& connection,
01047         const QString& busName,
01048         const QString& objectPath,
01049         QObject* parent = 0
01050     );
01051 
01058     ClientInterfaceRequestsInterface(Tp::DBusProxy *proxy);
01059 
01067     explicit ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface);
01068 
01076     ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
01077 
01084     Tp::PendingVariantMap *requestAllProperties() const
01085     {
01086         return internalRequestAllProperties();
01087     }
01088 
01089 public Q_SLOTS:
01165     inline QDBusPendingReply<> AddRequest(const QDBusObjectPath& request, const QVariantMap& properties)
01166     {
01167         if (!invalidationReason().isEmpty()) {
01168             return QDBusPendingReply<>(QDBusMessage::createError(
01169                 invalidationReason(),
01170                 invalidationMessage()
01171             ));
01172         }
01173 
01174         QList<QVariant> argumentList;
01175         argumentList << QVariant::fromValue(request) << QVariant::fromValue(properties);
01176         return asyncCallWithArgumentList(QLatin1String("AddRequest"), argumentList);
01177     }
01178 
01210     inline QDBusPendingReply<> RemoveRequest(const QDBusObjectPath& request, const QString& error, const QString& message)
01211     {
01212         if (!invalidationReason().isEmpty()) {
01213             return QDBusPendingReply<>(QDBusMessage::createError(
01214                 invalidationReason(),
01215                 invalidationMessage()
01216             ));
01217         }
01218 
01219         QList<QVariant> argumentList;
01220         argumentList << QVariant::fromValue(request) << QVariant::fromValue(error) << QVariant::fromValue(message);
01221         return asyncCallWithArgumentList(QLatin1String("RemoveRequest"), argumentList);
01222     }
01223 
01224 protected:
01225     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01226 };
01227 
01235 class TELEPATHY_QT4_EXPORT ClientObserverInterface : public Tp::AbstractInterface
01236 {
01237     Q_OBJECT
01238 
01239 public:
01246     static inline const char *staticInterfaceName()
01247     {
01248         return "org.freedesktop.Telepathy.Client.Observer";
01249     }
01250 
01258     ClientObserverInterface(
01259         const QString& busName,
01260         const QString& objectPath,
01261         QObject* parent = 0
01262     );
01263 
01272     ClientObserverInterface(
01273         const QDBusConnection& connection,
01274         const QString& busName,
01275         const QString& objectPath,
01276         QObject* parent = 0
01277     );
01278 
01285     ClientObserverInterface(Tp::DBusProxy *proxy);
01286 
01294     explicit ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface);
01295 
01303     ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
01304 
01391     Q_PROPERTY(Tp::ChannelClassList ObserverChannelFilter READ _deprecated_ObserverChannelFilter)
01392 
01393     
01402     inline TELEPATHY_QT4_DEPRECATED Tp::ChannelClassList ObserverChannelFilter() const
01403     {
01404         return _deprecated_ObserverChannelFilter();
01405     }
01406 
01407 private:
01408     inline Tp::ChannelClassList _deprecated_ObserverChannelFilter() const
01409     {
01410         return qvariant_cast<Tp::ChannelClassList>(internalPropGet("ObserverChannelFilter"));
01411     }
01412 public:
01413 
01504     inline Tp::PendingVariant *requestPropertyObserverChannelFilter() const
01505     {
01506         return internalRequestProperty(QLatin1String("ObserverChannelFilter"));
01507     }
01508 
01544     Q_PROPERTY(bool Recover READ _deprecated_Recover)
01545 
01546     
01555     inline TELEPATHY_QT4_DEPRECATED bool Recover() const
01556     {
01557         return _deprecated_Recover();
01558     }
01559 
01560 private:
01561     inline bool _deprecated_Recover() const
01562     {
01563         return qvariant_cast<bool>(internalPropGet("Recover"));
01564     }
01565 public:
01566 
01606     inline Tp::PendingVariant *requestPropertyRecover() const
01607     {
01608         return internalRequestProperty(QLatin1String("Recover"));
01609     }
01610 
01617     Tp::PendingVariantMap *requestAllProperties() const
01618     {
01619         return internalRequestAllProperties();
01620     }
01621 
01622 public Q_SLOTS:
01736     inline QDBusPendingReply<> ObserveChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const Tp::ObjectPathList& requestsSatisfied, const QVariantMap& observerInfo)
01737     {
01738         if (!invalidationReason().isEmpty()) {
01739             return QDBusPendingReply<>(QDBusMessage::createError(
01740                 invalidationReason(),
01741                 invalidationMessage()
01742             ));
01743         }
01744 
01745         QList<QVariant> argumentList;
01746         argumentList << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(observerInfo);
01747         return asyncCallWithArgumentList(QLatin1String("ObserveChannels"), argumentList);
01748     }
01749 
01750 protected:
01751     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01752 };
01753 }
01754 }
01755 Q_DECLARE_METATYPE(Tp::Client::ClientInterface*)
01756 Q_DECLARE_METATYPE(Tp::Client::ClientApproverInterface*)
01757 Q_DECLARE_METATYPE(Tp::Client::ClientHandlerInterface*)
01758 Q_DECLARE_METATYPE(Tp::Client::ClientInterfaceRequestsInterface*)
01759 Q_DECLARE_METATYPE(Tp::Client::ClientObserverInterface*)


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.4.4