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

cli-connection.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 ConnectionInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.Connection";
00067     }
00068 
00076     ConnectionInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     ConnectionInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     ConnectionInterface(Tp::DBusProxy *proxy);
00104 
00130     Q_PROPERTY(QStringList Interfaces READ _deprecated_Interfaces)
00131 
00132     
00141     inline TELEPATHY_QT4_DEPRECATED QStringList Interfaces() const
00142     {
00143         return _deprecated_Interfaces();
00144     }
00145 
00146 private:
00147     inline QStringList _deprecated_Interfaces() const
00148     {
00149         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00150     }
00151 public:
00152 
00182     inline Tp::PendingVariant *requestPropertyInterfaces() const
00183     {
00184         return internalRequestProperty(QLatin1String("Interfaces"));
00185     }
00186 
00196     Q_PROPERTY(uint SelfHandle READ _deprecated_SelfHandle)
00197 
00198     
00207     inline TELEPATHY_QT4_DEPRECATED uint SelfHandle() const
00208     {
00209         return _deprecated_SelfHandle();
00210     }
00211 
00212 private:
00213     inline uint _deprecated_SelfHandle() const
00214     {
00215         return qvariant_cast<uint>(internalPropGet("SelfHandle"));
00216     }
00217 public:
00218 
00232     inline Tp::PendingVariant *requestPropertySelfHandle() const
00233     {
00234         return internalRequestProperty(QLatin1String("SelfHandle"));
00235     }
00236 
00249     Q_PROPERTY(uint Status READ _deprecated_Status)
00250 
00251     
00260     inline TELEPATHY_QT4_DEPRECATED uint Status() const
00261     {
00262         return _deprecated_Status();
00263     }
00264 
00265 private:
00266     inline uint _deprecated_Status() const
00267     {
00268         return qvariant_cast<uint>(internalPropGet("Status"));
00269     }
00270 public:
00271 
00288     inline Tp::PendingVariant *requestPropertyStatus() const
00289     {
00290         return internalRequestProperty(QLatin1String("Status"));
00291     }
00292 
00299     Tp::PendingVariantMap *requestAllProperties() const
00300     {
00301         return internalRequestAllProperties();
00302     }
00303 
00304 public Q_SLOTS:
00315     inline QDBusPendingReply<> Connect()
00316     {
00317         if (!invalidationReason().isEmpty()) {
00318             return QDBusPendingReply<>(QDBusMessage::createError(
00319                 invalidationReason(),
00320                 invalidationMessage()
00321             ));
00322         }
00323 
00324         return asyncCall(QLatin1String("Connect"));
00325     }
00326 
00334     inline QDBusPendingReply<> Disconnect()
00335     {
00336         if (!invalidationReason().isEmpty()) {
00337             return QDBusPendingReply<>(QDBusMessage::createError(
00338                 invalidationReason(),
00339                 invalidationMessage()
00340             ));
00341         }
00342 
00343         return asyncCall(QLatin1String("Disconnect"));
00344     }
00345 
00357     inline QDBusPendingReply<QStringList> GetInterfaces()
00358     {
00359         if (!invalidationReason().isEmpty()) {
00360             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
00361                 invalidationReason(),
00362                 invalidationMessage()
00363             ));
00364         }
00365 
00366         return asyncCall(QLatin1String("GetInterfaces"));
00367     }
00368 
00378     inline QDBusPendingReply<QString> GetProtocol()
00379     {
00380         if (!invalidationReason().isEmpty()) {
00381             return QDBusPendingReply<QString>(QDBusMessage::createError(
00382                 invalidationReason(),
00383                 invalidationMessage()
00384             ));
00385         }
00386 
00387         return asyncCall(QLatin1String("GetProtocol"));
00388     }
00389 
00400     inline QDBusPendingReply<uint> GetSelfHandle()
00401     {
00402         if (!invalidationReason().isEmpty()) {
00403             return QDBusPendingReply<uint>(QDBusMessage::createError(
00404                 invalidationReason(),
00405                 invalidationMessage()
00406             ));
00407         }
00408 
00409         return asyncCall(QLatin1String("GetSelfHandle"));
00410     }
00411 
00421     inline QDBusPendingReply<uint> GetStatus()
00422     {
00423         if (!invalidationReason().isEmpty()) {
00424             return QDBusPendingReply<uint>(QDBusMessage::createError(
00425                 invalidationReason(),
00426                 invalidationMessage()
00427             ));
00428         }
00429 
00430         return asyncCall(QLatin1String("GetStatus"));
00431     }
00432 
00462     inline QDBusPendingReply<> HoldHandles(uint handleType, const Tp::UIntList& handles)
00463     {
00464         if (!invalidationReason().isEmpty()) {
00465             return QDBusPendingReply<>(QDBusMessage::createError(
00466                 invalidationReason(),
00467                 invalidationMessage()
00468             ));
00469         }
00470 
00471         QList<QVariant> argumentList;
00472         argumentList << QVariant::fromValue(handleType) << QVariant::fromValue(handles);
00473         return asyncCallWithArgumentList(QLatin1String("HoldHandles"), argumentList);
00474     }
00475 
00494     inline QDBusPendingReply<QStringList> InspectHandles(uint handleType, const Tp::UIntList& handles)
00495     {
00496         if (!invalidationReason().isEmpty()) {
00497             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
00498                 invalidationReason(),
00499                 invalidationMessage()
00500             ));
00501         }
00502 
00503         QList<QVariant> argumentList;
00504         argumentList << QVariant::fromValue(handleType) << QVariant::fromValue(handles);
00505         return asyncCallWithArgumentList(QLatin1String("InspectHandles"), argumentList);
00506     }
00507 
00517     inline QDBusPendingReply<Tp::ChannelInfoList> ListChannels()
00518     {
00519         if (!invalidationReason().isEmpty()) {
00520             return QDBusPendingReply<Tp::ChannelInfoList>(QDBusMessage::createError(
00521                 invalidationReason(),
00522                 invalidationMessage()
00523             ));
00524         }
00525 
00526         return asyncCall(QLatin1String("ListChannels"));
00527     }
00528 
00545     inline QDBusPendingReply<> ReleaseHandles(uint handleType, const Tp::UIntList& handles)
00546     {
00547         if (!invalidationReason().isEmpty()) {
00548             return QDBusPendingReply<>(QDBusMessage::createError(
00549                 invalidationReason(),
00550                 invalidationMessage()
00551             ));
00552         }
00553 
00554         QList<QVariant> argumentList;
00555         argumentList << QVariant::fromValue(handleType) << QVariant::fromValue(handles);
00556         return asyncCallWithArgumentList(QLatin1String("ReleaseHandles"), argumentList);
00557     }
00558 
00631     inline QDBusPendingReply<QDBusObjectPath> RequestChannel(const QString& type, uint handleType, uint handle, bool suppressHandler)
00632     {
00633         if (!invalidationReason().isEmpty()) {
00634             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
00635                 invalidationReason(),
00636                 invalidationMessage()
00637             ));
00638         }
00639 
00640         QList<QVariant> argumentList;
00641         argumentList << QVariant::fromValue(type) << QVariant::fromValue(handleType) << QVariant::fromValue(handle) << QVariant::fromValue(suppressHandler);
00642         return asyncCallWithArgumentList(QLatin1String("RequestChannel"), argumentList);
00643     }
00644 
00671     inline QDBusPendingReply<Tp::UIntList> RequestHandles(uint handleType, const QStringList& identifiers)
00672     {
00673         if (!invalidationReason().isEmpty()) {
00674             return QDBusPendingReply<Tp::UIntList>(QDBusMessage::createError(
00675                 invalidationReason(),
00676                 invalidationMessage()
00677             ));
00678         }
00679 
00680         QList<QVariant> argumentList;
00681         argumentList << QVariant::fromValue(handleType) << QVariant::fromValue(identifiers);
00682         return asyncCallWithArgumentList(QLatin1String("RequestHandles"), argumentList);
00683     }
00684 
00685 Q_SIGNALS:
00697     void SelfHandleChanged(uint selfHandle);
00698 
00740     void NewChannel(const QDBusObjectPath& objectPath, const QString& channelType, uint handleType, uint handle, bool suppressHandler);
00741 
00801     void ConnectionError(const QString& error, const QVariantMap& details);
00802 
00819     void StatusChanged(uint status, uint reason);
00820 
00821 protected:
00822     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00823 };
00824 
00832 class TELEPATHY_QT4_EXPORT ConnectionInterfaceAliasingInterface : public Tp::AbstractInterface
00833 {
00834     Q_OBJECT
00835 
00836 public:
00843     static inline const char *staticInterfaceName()
00844     {
00845         return "org.freedesktop.Telepathy.Connection.Interface.Aliasing";
00846     }
00847 
00855     ConnectionInterfaceAliasingInterface(
00856         const QString& busName,
00857         const QString& objectPath,
00858         QObject* parent = 0
00859     );
00860 
00869     ConnectionInterfaceAliasingInterface(
00870         const QDBusConnection& connection,
00871         const QString& busName,
00872         const QString& objectPath,
00873         QObject* parent = 0
00874     );
00875 
00882     ConnectionInterfaceAliasingInterface(Tp::DBusProxy *proxy);
00883 
00891     explicit ConnectionInterfaceAliasingInterface(const Tp::Client::ConnectionInterface& mainInterface);
00892 
00900     ConnectionInterfaceAliasingInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
00901 
00908     Tp::PendingVariantMap *requestAllProperties() const
00909     {
00910         return internalRequestAllProperties();
00911     }
00912 
00913 public Q_SLOTS:
00924     inline QDBusPendingReply<uint> GetAliasFlags()
00925     {
00926         if (!invalidationReason().isEmpty()) {
00927             return QDBusPendingReply<uint>(QDBusMessage::createError(
00928                 invalidationReason(),
00929                 invalidationMessage()
00930             ));
00931         }
00932 
00933         return asyncCall(QLatin1String("GetAliasFlags"));
00934     }
00935 
00949     inline QDBusPendingReply<QStringList> RequestAliases(const Tp::UIntList& contacts)
00950     {
00951         if (!invalidationReason().isEmpty()) {
00952             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
00953                 invalidationReason(),
00954                 invalidationMessage()
00955             ));
00956         }
00957 
00958         QList<QVariant> argumentList;
00959         argumentList << QVariant::fromValue(contacts);
00960         return asyncCallWithArgumentList(QLatin1String("RequestAliases"), argumentList);
00961     }
00962 
00980     inline QDBusPendingReply<Tp::AliasMap> GetAliases(const Tp::UIntList& contacts)
00981     {
00982         if (!invalidationReason().isEmpty()) {
00983             return QDBusPendingReply<Tp::AliasMap>(QDBusMessage::createError(
00984                 invalidationReason(),
00985                 invalidationMessage()
00986             ));
00987         }
00988 
00989         QList<QVariant> argumentList;
00990         argumentList << QVariant::fromValue(contacts);
00991         return asyncCallWithArgumentList(QLatin1String("GetAliases"), argumentList);
00992     }
00993 
01008     inline QDBusPendingReply<> SetAliases(const Tp::AliasMap& aliases)
01009     {
01010         if (!invalidationReason().isEmpty()) {
01011             return QDBusPendingReply<>(QDBusMessage::createError(
01012                 invalidationReason(),
01013                 invalidationMessage()
01014             ));
01015         }
01016 
01017         QList<QVariant> argumentList;
01018         argumentList << QVariant::fromValue(aliases);
01019         return asyncCallWithArgumentList(QLatin1String("SetAliases"), argumentList);
01020     }
01021 
01022 Q_SIGNALS:
01037     void AliasesChanged(const Tp::AliasPairList& aliases);
01038 
01039 protected:
01040     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01041 };
01042 
01050 class TELEPATHY_QT4_EXPORT ConnectionInterfaceAnonymityInterface : public Tp::AbstractInterface
01051 {
01052     Q_OBJECT
01053 
01054 public:
01061     static inline const char *staticInterfaceName()
01062     {
01063         return "org.freedesktop.Telepathy.Connection.Interface.Anonymity";
01064     }
01065 
01073     ConnectionInterfaceAnonymityInterface(
01074         const QString& busName,
01075         const QString& objectPath,
01076         QObject* parent = 0
01077     );
01078 
01087     ConnectionInterfaceAnonymityInterface(
01088         const QDBusConnection& connection,
01089         const QString& busName,
01090         const QString& objectPath,
01091         QObject* parent = 0
01092     );
01093 
01100     ConnectionInterfaceAnonymityInterface(Tp::DBusProxy *proxy);
01101 
01109     explicit ConnectionInterfaceAnonymityInterface(const Tp::Client::ConnectionInterface& mainInterface);
01110 
01118     ConnectionInterfaceAnonymityInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
01119 
01126     Q_PROPERTY(uint SupportedAnonymityModes READ _deprecated_SupportedAnonymityModes)
01127 
01128     
01137     inline TELEPATHY_QT4_DEPRECATED uint SupportedAnonymityModes() const
01138     {
01139         return _deprecated_SupportedAnonymityModes();
01140     }
01141 
01142 private:
01143     inline uint _deprecated_SupportedAnonymityModes() const
01144     {
01145         return qvariant_cast<uint>(internalPropGet("SupportedAnonymityModes"));
01146     }
01147 public:
01148 
01159     inline Tp::PendingVariant *requestPropertySupportedAnonymityModes() const
01160     {
01161         return internalRequestProperty(QLatin1String("SupportedAnonymityModes"));
01162     }
01163 
01182     Q_PROPERTY(bool AnonymityMandatory READ _deprecated_AnonymityMandatory WRITE _deprecated_setAnonymityMandatory)
01183 
01184     
01193     inline TELEPATHY_QT4_DEPRECATED bool AnonymityMandatory() const
01194     {
01195         return _deprecated_AnonymityMandatory();
01196     }
01197 
01198 private:
01199     inline bool _deprecated_AnonymityMandatory() const
01200     {
01201         return qvariant_cast<bool>(internalPropGet("AnonymityMandatory"));
01202     }
01203 public:
01204 
01227     inline Tp::PendingVariant *requestPropertyAnonymityMandatory() const
01228     {
01229         return internalRequestProperty(QLatin1String("AnonymityMandatory"));
01230     }
01231 
01239     inline TELEPATHY_QT4_DEPRECATED void setAnonymityMandatory(bool newValue)
01240     {
01241         return _deprecated_setAnonymityMandatory(newValue);
01242     }
01243 
01244 private:
01245     inline void _deprecated_setAnonymityMandatory(bool newValue)
01246     {
01247         internalPropSet("AnonymityMandatory", QVariant::fromValue(newValue));
01248     }
01249 public:
01250 
01273     inline Tp::PendingOperation *setPropertyAnonymityMandatory(bool newValue)
01274     {
01275         return internalSetProperty(QLatin1String("AnonymityMandatory"), QVariant::fromValue(newValue));
01276     }
01277 
01293     Q_PROPERTY(uint AnonymityModes READ _deprecated_AnonymityModes WRITE _deprecated_setAnonymityModes)
01294 
01295     
01304     inline TELEPATHY_QT4_DEPRECATED uint AnonymityModes() const
01305     {
01306         return _deprecated_AnonymityModes();
01307     }
01308 
01309 private:
01310     inline uint _deprecated_AnonymityModes() const
01311     {
01312         return qvariant_cast<uint>(internalPropGet("AnonymityModes"));
01313     }
01314 public:
01315 
01335     inline Tp::PendingVariant *requestPropertyAnonymityModes() const
01336     {
01337         return internalRequestProperty(QLatin1String("AnonymityModes"));
01338     }
01339 
01347     inline TELEPATHY_QT4_DEPRECATED void setAnonymityModes(uint newValue)
01348     {
01349         return _deprecated_setAnonymityModes(newValue);
01350     }
01351 
01352 private:
01353     inline void _deprecated_setAnonymityModes(uint newValue)
01354     {
01355         internalPropSet("AnonymityModes", QVariant::fromValue(newValue));
01356     }
01357 public:
01358 
01378     inline Tp::PendingOperation *setPropertyAnonymityModes(uint newValue)
01379     {
01380         return internalSetProperty(QLatin1String("AnonymityModes"), QVariant::fromValue(newValue));
01381     }
01382 
01389     Tp::PendingVariantMap *requestAllProperties() const
01390     {
01391         return internalRequestAllProperties();
01392     }
01393 
01394 Q_SIGNALS:
01404     void AnonymityModesChanged(uint modes);
01405 
01406 protected:
01407     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01408 };
01409 
01417 class TELEPATHY_QT4_EXPORT ConnectionInterfaceAvatarsInterface : public Tp::AbstractInterface
01418 {
01419     Q_OBJECT
01420 
01421 public:
01428     static inline const char *staticInterfaceName()
01429     {
01430         return "org.freedesktop.Telepathy.Connection.Interface.Avatars";
01431     }
01432 
01440     ConnectionInterfaceAvatarsInterface(
01441         const QString& busName,
01442         const QString& objectPath,
01443         QObject* parent = 0
01444     );
01445 
01454     ConnectionInterfaceAvatarsInterface(
01455         const QDBusConnection& connection,
01456         const QString& busName,
01457         const QString& objectPath,
01458         QObject* parent = 0
01459     );
01460 
01467     ConnectionInterfaceAvatarsInterface(Tp::DBusProxy *proxy);
01468 
01476     explicit ConnectionInterfaceAvatarsInterface(const Tp::Client::ConnectionInterface& mainInterface);
01477 
01485     ConnectionInterfaceAvatarsInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
01486 
01494     Q_PROPERTY(QStringList SupportedAvatarMIMETypes READ _deprecated_SupportedAvatarMIMETypes)
01495 
01496     
01505     inline TELEPATHY_QT4_DEPRECATED QStringList SupportedAvatarMIMETypes() const
01506     {
01507         return _deprecated_SupportedAvatarMIMETypes();
01508     }
01509 
01510 private:
01511     inline QStringList _deprecated_SupportedAvatarMIMETypes() const
01512     {
01513         return qvariant_cast<QStringList>(internalPropGet("SupportedAvatarMIMETypes"));
01514     }
01515 public:
01516 
01528     inline Tp::PendingVariant *requestPropertySupportedAvatarMIMETypes() const
01529     {
01530         return internalRequestProperty(QLatin1String("SupportedAvatarMIMETypes"));
01531     }
01532 
01540     Q_PROPERTY(uint MinimumAvatarHeight READ _deprecated_MinimumAvatarHeight)
01541 
01542     
01551     inline TELEPATHY_QT4_DEPRECATED uint MinimumAvatarHeight() const
01552     {
01553         return _deprecated_MinimumAvatarHeight();
01554     }
01555 
01556 private:
01557     inline uint _deprecated_MinimumAvatarHeight() const
01558     {
01559         return qvariant_cast<uint>(internalPropGet("MinimumAvatarHeight"));
01560     }
01561 public:
01562 
01574     inline Tp::PendingVariant *requestPropertyMinimumAvatarHeight() const
01575     {
01576         return internalRequestProperty(QLatin1String("MinimumAvatarHeight"));
01577     }
01578 
01586     Q_PROPERTY(uint MinimumAvatarWidth READ _deprecated_MinimumAvatarWidth)
01587 
01588     
01597     inline TELEPATHY_QT4_DEPRECATED uint MinimumAvatarWidth() const
01598     {
01599         return _deprecated_MinimumAvatarWidth();
01600     }
01601 
01602 private:
01603     inline uint _deprecated_MinimumAvatarWidth() const
01604     {
01605         return qvariant_cast<uint>(internalPropGet("MinimumAvatarWidth"));
01606     }
01607 public:
01608 
01620     inline Tp::PendingVariant *requestPropertyMinimumAvatarWidth() const
01621     {
01622         return internalRequestProperty(QLatin1String("MinimumAvatarWidth"));
01623     }
01624 
01635     Q_PROPERTY(uint RecommendedAvatarHeight READ _deprecated_RecommendedAvatarHeight)
01636 
01637     
01646     inline TELEPATHY_QT4_DEPRECATED uint RecommendedAvatarHeight() const
01647     {
01648         return _deprecated_RecommendedAvatarHeight();
01649     }
01650 
01651 private:
01652     inline uint _deprecated_RecommendedAvatarHeight() const
01653     {
01654         return qvariant_cast<uint>(internalPropGet("RecommendedAvatarHeight"));
01655     }
01656 public:
01657 
01672     inline Tp::PendingVariant *requestPropertyRecommendedAvatarHeight() const
01673     {
01674         return internalRequestProperty(QLatin1String("RecommendedAvatarHeight"));
01675     }
01676 
01685     Q_PROPERTY(uint RecommendedAvatarWidth READ _deprecated_RecommendedAvatarWidth)
01686 
01687     
01696     inline TELEPATHY_QT4_DEPRECATED uint RecommendedAvatarWidth() const
01697     {
01698         return _deprecated_RecommendedAvatarWidth();
01699     }
01700 
01701 private:
01702     inline uint _deprecated_RecommendedAvatarWidth() const
01703     {
01704         return qvariant_cast<uint>(internalPropGet("RecommendedAvatarWidth"));
01705     }
01706 public:
01707 
01720     inline Tp::PendingVariant *requestPropertyRecommendedAvatarWidth() const
01721     {
01722         return internalRequestProperty(QLatin1String("RecommendedAvatarWidth"));
01723     }
01724 
01732     Q_PROPERTY(uint MaximumAvatarHeight READ _deprecated_MaximumAvatarHeight)
01733 
01734     
01743     inline TELEPATHY_QT4_DEPRECATED uint MaximumAvatarHeight() const
01744     {
01745         return _deprecated_MaximumAvatarHeight();
01746     }
01747 
01748 private:
01749     inline uint _deprecated_MaximumAvatarHeight() const
01750     {
01751         return qvariant_cast<uint>(internalPropGet("MaximumAvatarHeight"));
01752     }
01753 public:
01754 
01766     inline Tp::PendingVariant *requestPropertyMaximumAvatarHeight() const
01767     {
01768         return internalRequestProperty(QLatin1String("MaximumAvatarHeight"));
01769     }
01770 
01778     Q_PROPERTY(uint MaximumAvatarWidth READ _deprecated_MaximumAvatarWidth)
01779 
01780     
01789     inline TELEPATHY_QT4_DEPRECATED uint MaximumAvatarWidth() const
01790     {
01791         return _deprecated_MaximumAvatarWidth();
01792     }
01793 
01794 private:
01795     inline uint _deprecated_MaximumAvatarWidth() const
01796     {
01797         return qvariant_cast<uint>(internalPropGet("MaximumAvatarWidth"));
01798     }
01799 public:
01800 
01812     inline Tp::PendingVariant *requestPropertyMaximumAvatarWidth() const
01813     {
01814         return internalRequestProperty(QLatin1String("MaximumAvatarWidth"));
01815     }
01816 
01824     Q_PROPERTY(uint MaximumAvatarBytes READ _deprecated_MaximumAvatarBytes)
01825 
01826     
01835     inline TELEPATHY_QT4_DEPRECATED uint MaximumAvatarBytes() const
01836     {
01837         return _deprecated_MaximumAvatarBytes();
01838     }
01839 
01840 private:
01841     inline uint _deprecated_MaximumAvatarBytes() const
01842     {
01843         return qvariant_cast<uint>(internalPropGet("MaximumAvatarBytes"));
01844     }
01845 public:
01846 
01858     inline Tp::PendingVariant *requestPropertyMaximumAvatarBytes() const
01859     {
01860         return internalRequestProperty(QLatin1String("MaximumAvatarBytes"));
01861     }
01862 
01869     Tp::PendingVariantMap *requestAllProperties() const
01870     {
01871         return internalRequestAllProperties();
01872     }
01873 
01874 public Q_SLOTS:
01904     inline QDBusPendingReply<QStringList, ushort, ushort, ushort, ushort, uint> GetAvatarRequirements()
01905     {
01906         if (!invalidationReason().isEmpty()) {
01907             return QDBusPendingReply<QStringList, ushort, ushort, ushort, ushort, uint>(QDBusMessage::createError(
01908                 invalidationReason(),
01909                 invalidationMessage()
01910             ));
01911         }
01912 
01913         return asyncCall(QLatin1String("GetAvatarRequirements"));
01914     }
01915 
01932     inline QDBusPendingReply<QStringList> GetAvatarTokens(const Tp::UIntList& contacts)
01933     {
01934         if (!invalidationReason().isEmpty()) {
01935             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
01936                 invalidationReason(),
01937                 invalidationMessage()
01938             ));
01939         }
01940 
01941         QList<QVariant> argumentList;
01942         argumentList << QVariant::fromValue(contacts);
01943         return asyncCallWithArgumentList(QLatin1String("GetAvatarTokens"), argumentList);
01944     }
01945 
01968     inline QDBusPendingReply<Tp::AvatarTokenMap> GetKnownAvatarTokens(const Tp::UIntList& contacts)
01969     {
01970         if (!invalidationReason().isEmpty()) {
01971             return QDBusPendingReply<Tp::AvatarTokenMap>(QDBusMessage::createError(
01972                 invalidationReason(),
01973                 invalidationMessage()
01974             ));
01975         }
01976 
01977         QList<QVariant> argumentList;
01978         argumentList << QVariant::fromValue(contacts);
01979         return asyncCallWithArgumentList(QLatin1String("GetKnownAvatarTokens"), argumentList);
01980     }
01981 
02001     inline QDBusPendingReply<QByteArray, QString> RequestAvatar(uint contact)
02002     {
02003         if (!invalidationReason().isEmpty()) {
02004             return QDBusPendingReply<QByteArray, QString>(QDBusMessage::createError(
02005                 invalidationReason(),
02006                 invalidationMessage()
02007             ));
02008         }
02009 
02010         QList<QVariant> argumentList;
02011         argumentList << QVariant::fromValue(contact);
02012         return asyncCallWithArgumentList(QLatin1String("RequestAvatar"), argumentList);
02013     }
02014 
02028     inline QDBusPendingReply<> RequestAvatars(const Tp::UIntList& contacts)
02029     {
02030         if (!invalidationReason().isEmpty()) {
02031             return QDBusPendingReply<>(QDBusMessage::createError(
02032                 invalidationReason(),
02033                 invalidationMessage()
02034             ));
02035         }
02036 
02037         QList<QVariant> argumentList;
02038         argumentList << QVariant::fromValue(contacts);
02039         return asyncCallWithArgumentList(QLatin1String("RequestAvatars"), argumentList);
02040     }
02041 
02060     inline QDBusPendingReply<QString> SetAvatar(const QByteArray& avatar, const QString& MIMEType)
02061     {
02062         if (!invalidationReason().isEmpty()) {
02063             return QDBusPendingReply<QString>(QDBusMessage::createError(
02064                 invalidationReason(),
02065                 invalidationMessage()
02066             ));
02067         }
02068 
02069         QList<QVariant> argumentList;
02070         argumentList << QVariant::fromValue(avatar) << QVariant::fromValue(MIMEType);
02071         return asyncCallWithArgumentList(QLatin1String("SetAvatar"), argumentList);
02072     }
02073 
02079     inline QDBusPendingReply<> ClearAvatar()
02080     {
02081         if (!invalidationReason().isEmpty()) {
02082             return QDBusPendingReply<>(QDBusMessage::createError(
02083                 invalidationReason(),
02084                 invalidationMessage()
02085             ));
02086         }
02087 
02088         return asyncCall(QLatin1String("ClearAvatar"));
02089     }
02090 
02091 Q_SIGNALS:
02108     void AvatarUpdated(uint contact, const QString& newAvatarToken);
02109 
02132     void AvatarRetrieved(uint contact, const QString& token, const QByteArray& avatar, const QString& type);
02133 
02134 protected:
02135     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
02136 };
02137 
02145 class TELEPATHY_QT4_EXPORT ConnectionInterfaceBalanceInterface : public Tp::AbstractInterface
02146 {
02147     Q_OBJECT
02148 
02149 public:
02156     static inline const char *staticInterfaceName()
02157     {
02158         return "org.freedesktop.Telepathy.Connection.Interface.Balance";
02159     }
02160 
02168     ConnectionInterfaceBalanceInterface(
02169         const QString& busName,
02170         const QString& objectPath,
02171         QObject* parent = 0
02172     );
02173 
02182     ConnectionInterfaceBalanceInterface(
02183         const QDBusConnection& connection,
02184         const QString& busName,
02185         const QString& objectPath,
02186         QObject* parent = 0
02187     );
02188 
02195     ConnectionInterfaceBalanceInterface(Tp::DBusProxy *proxy);
02196 
02204     explicit ConnectionInterfaceBalanceInterface(const Tp::Client::ConnectionInterface& mainInterface);
02205 
02213     ConnectionInterfaceBalanceInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
02214 
02227     Q_PROPERTY(Tp::CurrencyAmount AccountBalance READ _deprecated_AccountBalance)
02228 
02229     
02238     inline TELEPATHY_QT4_DEPRECATED Tp::CurrencyAmount AccountBalance() const
02239     {
02240         return _deprecated_AccountBalance();
02241     }
02242 
02243 private:
02244     inline Tp::CurrencyAmount _deprecated_AccountBalance() const
02245     {
02246         return qvariant_cast<Tp::CurrencyAmount>(internalPropGet("AccountBalance"));
02247     }
02248 public:
02249 
02266     inline Tp::PendingVariant *requestPropertyAccountBalance() const
02267     {
02268         return internalRequestProperty(QLatin1String("AccountBalance"));
02269     }
02270 
02277     Tp::PendingVariantMap *requestAllProperties() const
02278     {
02279         return internalRequestAllProperties();
02280     }
02281 
02282 Q_SIGNALS:
02293     void BalanceChanged(const Tp::CurrencyAmount& balance);
02294 
02295 protected:
02296     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
02297 };
02298 
02306 class TELEPATHY_QT4_EXPORT ConnectionInterfaceCapabilitiesInterface : public Tp::AbstractInterface
02307 {
02308     Q_OBJECT
02309 
02310 public:
02317     static inline const char *staticInterfaceName()
02318     {
02319         return "org.freedesktop.Telepathy.Connection.Interface.Capabilities";
02320     }
02321 
02329     ConnectionInterfaceCapabilitiesInterface(
02330         const QString& busName,
02331         const QString& objectPath,
02332         QObject* parent = 0
02333     );
02334 
02343     ConnectionInterfaceCapabilitiesInterface(
02344         const QDBusConnection& connection,
02345         const QString& busName,
02346         const QString& objectPath,
02347         QObject* parent = 0
02348     );
02349 
02356     ConnectionInterfaceCapabilitiesInterface(Tp::DBusProxy *proxy);
02357 
02365     explicit ConnectionInterfaceCapabilitiesInterface(const Tp::Client::ConnectionInterface& mainInterface);
02366 
02374     ConnectionInterfaceCapabilitiesInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
02375 
02382     Tp::PendingVariantMap *requestAllProperties() const
02383     {
02384         return internalRequestAllProperties();
02385     }
02386 
02387 public Q_SLOTS:
02432     inline QDBusPendingReply<Tp::CapabilityPairList> AdvertiseCapabilities(const Tp::CapabilityPairList& add, const QStringList& remove)
02433     {
02434         if (!invalidationReason().isEmpty()) {
02435             return QDBusPendingReply<Tp::CapabilityPairList>(QDBusMessage::createError(
02436                 invalidationReason(),
02437                 invalidationMessage()
02438             ));
02439         }
02440 
02441         QList<QVariant> argumentList;
02442         argumentList << QVariant::fromValue(add) << QVariant::fromValue(remove);
02443         return asyncCallWithArgumentList(QLatin1String("AdvertiseCapabilities"), argumentList);
02444     }
02445 
02471     inline QDBusPendingReply<Tp::ContactCapabilityList> GetCapabilities(const Tp::UIntList& handles)
02472     {
02473         if (!invalidationReason().isEmpty()) {
02474             return QDBusPendingReply<Tp::ContactCapabilityList>(QDBusMessage::createError(
02475                 invalidationReason(),
02476                 invalidationMessage()
02477             ));
02478         }
02479 
02480         QList<QVariant> argumentList;
02481         argumentList << QVariant::fromValue(handles);
02482         return asyncCallWithArgumentList(QLatin1String("GetCapabilities"), argumentList);
02483     }
02484 
02485 Q_SIGNALS:
02508     void CapabilitiesChanged(const Tp::CapabilityChangeList& caps);
02509 
02510 protected:
02511     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
02512 };
02513 
02521 class TELEPATHY_QT4_EXPORT ConnectionInterfaceCellularInterface : public Tp::AbstractInterface
02522 {
02523     Q_OBJECT
02524 
02525 public:
02532     static inline const char *staticInterfaceName()
02533     {
02534         return "org.freedesktop.Telepathy.Connection.Interface.Cellular";
02535     }
02536 
02544     ConnectionInterfaceCellularInterface(
02545         const QString& busName,
02546         const QString& objectPath,
02547         QObject* parent = 0
02548     );
02549 
02558     ConnectionInterfaceCellularInterface(
02559         const QDBusConnection& connection,
02560         const QString& busName,
02561         const QString& objectPath,
02562         QObject* parent = 0
02563     );
02564 
02571     ConnectionInterfaceCellularInterface(Tp::DBusProxy *proxy);
02572 
02580     explicit ConnectionInterfaceCellularInterface(const Tp::Client::ConnectionInterface& mainInterface);
02581 
02589     ConnectionInterfaceCellularInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
02590 
02619     Q_PROPERTY(uint MessageValidityPeriod READ _deprecated_MessageValidityPeriod WRITE _deprecated_setMessageValidityPeriod)
02620 
02621     
02630     inline TELEPATHY_QT4_DEPRECATED uint MessageValidityPeriod() const
02631     {
02632         return _deprecated_MessageValidityPeriod();
02633     }
02634 
02635 private:
02636     inline uint _deprecated_MessageValidityPeriod() const
02637     {
02638         return qvariant_cast<uint>(internalPropGet("MessageValidityPeriod"));
02639     }
02640 public:
02641 
02674     inline Tp::PendingVariant *requestPropertyMessageValidityPeriod() const
02675     {
02676         return internalRequestProperty(QLatin1String("MessageValidityPeriod"));
02677     }
02678 
02686     inline TELEPATHY_QT4_DEPRECATED void setMessageValidityPeriod(uint newValue)
02687     {
02688         return _deprecated_setMessageValidityPeriod(newValue);
02689     }
02690 
02691 private:
02692     inline void _deprecated_setMessageValidityPeriod(uint newValue)
02693     {
02694         internalPropSet("MessageValidityPeriod", QVariant::fromValue(newValue));
02695     }
02696 public:
02697 
02730     inline Tp::PendingOperation *setPropertyMessageValidityPeriod(uint newValue)
02731     {
02732         return internalSetProperty(QLatin1String("MessageValidityPeriod"), QVariant::fromValue(newValue));
02733     }
02734 
02767     Q_PROPERTY(bool OverrideMessageServiceCentre READ _deprecated_OverrideMessageServiceCentre WRITE _deprecated_setOverrideMessageServiceCentre)
02768 
02769     
02778     inline TELEPATHY_QT4_DEPRECATED bool OverrideMessageServiceCentre() const
02779     {
02780         return _deprecated_OverrideMessageServiceCentre();
02781     }
02782 
02783 private:
02784     inline bool _deprecated_OverrideMessageServiceCentre() const
02785     {
02786         return qvariant_cast<bool>(internalPropGet("OverrideMessageServiceCentre"));
02787     }
02788 public:
02789 
02826     inline Tp::PendingVariant *requestPropertyOverrideMessageServiceCentre() const
02827     {
02828         return internalRequestProperty(QLatin1String("OverrideMessageServiceCentre"));
02829     }
02830 
02838     inline TELEPATHY_QT4_DEPRECATED void setOverrideMessageServiceCentre(bool newValue)
02839     {
02840         return _deprecated_setOverrideMessageServiceCentre(newValue);
02841     }
02842 
02843 private:
02844     inline void _deprecated_setOverrideMessageServiceCentre(bool newValue)
02845     {
02846         internalPropSet("OverrideMessageServiceCentre", QVariant::fromValue(newValue));
02847     }
02848 public:
02849 
02886     inline Tp::PendingOperation *setPropertyOverrideMessageServiceCentre(bool newValue)
02887     {
02888         return internalSetProperty(QLatin1String("OverrideMessageServiceCentre"), QVariant::fromValue(newValue));
02889     }
02890 
02917     Q_PROPERTY(QString MessageServiceCentre READ _deprecated_MessageServiceCentre WRITE _deprecated_setMessageServiceCentre)
02918 
02919     
02928     inline TELEPATHY_QT4_DEPRECATED QString MessageServiceCentre() const
02929     {
02930         return _deprecated_MessageServiceCentre();
02931     }
02932 
02933 private:
02934     inline QString _deprecated_MessageServiceCentre() const
02935     {
02936         return qvariant_cast<QString>(internalPropGet("MessageServiceCentre"));
02937     }
02938 public:
02939 
02970     inline Tp::PendingVariant *requestPropertyMessageServiceCentre() const
02971     {
02972         return internalRequestProperty(QLatin1String("MessageServiceCentre"));
02973     }
02974 
02982     inline TELEPATHY_QT4_DEPRECATED void setMessageServiceCentre(const QString& newValue)
02983     {
02984         return _deprecated_setMessageServiceCentre(newValue);
02985     }
02986 
02987 private:
02988     inline void _deprecated_setMessageServiceCentre(const QString& newValue)
02989     {
02990         internalPropSet("MessageServiceCentre", QVariant::fromValue(newValue));
02991     }
02992 public:
02993 
03024     inline Tp::PendingOperation *setPropertyMessageServiceCentre(QString newValue)
03025     {
03026         return internalSetProperty(QLatin1String("MessageServiceCentre"), QVariant::fromValue(newValue));
03027     }
03028 
03036     Q_PROPERTY(QString IMSI READ _deprecated_IMSI)
03037 
03038     
03047     inline TELEPATHY_QT4_DEPRECATED QString IMSI() const
03048     {
03049         return _deprecated_IMSI();
03050     }
03051 
03052 private:
03053     inline QString _deprecated_IMSI() const
03054     {
03055         return qvariant_cast<QString>(internalPropGet("IMSI"));
03056     }
03057 public:
03058 
03070     inline Tp::PendingVariant *requestPropertyIMSI() const
03071     {
03072         return internalRequestProperty(QLatin1String("IMSI"));
03073     }
03074 
03102     Q_PROPERTY(bool MessageReducedCharacterSet READ _deprecated_MessageReducedCharacterSet WRITE _deprecated_setMessageReducedCharacterSet)
03103 
03104     
03113     inline TELEPATHY_QT4_DEPRECATED bool MessageReducedCharacterSet() const
03114     {
03115         return _deprecated_MessageReducedCharacterSet();
03116     }
03117 
03118 private:
03119     inline bool _deprecated_MessageReducedCharacterSet() const
03120     {
03121         return qvariant_cast<bool>(internalPropGet("MessageReducedCharacterSet"));
03122     }
03123 public:
03124 
03156     inline Tp::PendingVariant *requestPropertyMessageReducedCharacterSet() const
03157     {
03158         return internalRequestProperty(QLatin1String("MessageReducedCharacterSet"));
03159     }
03160 
03168     inline TELEPATHY_QT4_DEPRECATED void setMessageReducedCharacterSet(bool newValue)
03169     {
03170         return _deprecated_setMessageReducedCharacterSet(newValue);
03171     }
03172 
03173 private:
03174     inline void _deprecated_setMessageReducedCharacterSet(bool newValue)
03175     {
03176         internalPropSet("MessageReducedCharacterSet", QVariant::fromValue(newValue));
03177     }
03178 public:
03179 
03211     inline Tp::PendingOperation *setPropertyMessageReducedCharacterSet(bool newValue)
03212     {
03213         return internalSetProperty(QLatin1String("MessageReducedCharacterSet"), QVariant::fromValue(newValue));
03214     }
03215 
03222     Tp::PendingVariantMap *requestAllProperties() const
03223     {
03224         return internalRequestAllProperties();
03225     }
03226 
03227 Q_SIGNALS:
03243     void IMSIChanged(const QString& IMSI);
03244 
03245 protected:
03246     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
03247 };
03248 
03256 class TELEPATHY_QT4_EXPORT ConnectionInterfaceClientTypesInterface : public Tp::AbstractInterface
03257 {
03258     Q_OBJECT
03259 
03260 public:
03267     static inline const char *staticInterfaceName()
03268     {
03269         return "org.freedesktop.Telepathy.Connection.Interface.ClientTypes";
03270     }
03271 
03279     ConnectionInterfaceClientTypesInterface(
03280         const QString& busName,
03281         const QString& objectPath,
03282         QObject* parent = 0
03283     );
03284 
03293     ConnectionInterfaceClientTypesInterface(
03294         const QDBusConnection& connection,
03295         const QString& busName,
03296         const QString& objectPath,
03297         QObject* parent = 0
03298     );
03299 
03306     ConnectionInterfaceClientTypesInterface(Tp::DBusProxy *proxy);
03307 
03315     explicit ConnectionInterfaceClientTypesInterface(const Tp::Client::ConnectionInterface& mainInterface);
03316 
03324     ConnectionInterfaceClientTypesInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
03325 
03332     Tp::PendingVariantMap *requestAllProperties() const
03333     {
03334         return internalRequestAllProperties();
03335     }
03336 
03337 public Q_SLOTS:
03361     inline QDBusPendingReply<Tp::ContactClientTypes> GetClientTypes(const Tp::UIntList& contacts)
03362     {
03363         if (!invalidationReason().isEmpty()) {
03364             return QDBusPendingReply<Tp::ContactClientTypes>(QDBusMessage::createError(
03365                 invalidationReason(),
03366                 invalidationMessage()
03367             ));
03368         }
03369 
03370         QList<QVariant> argumentList;
03371         argumentList << QVariant::fromValue(contacts);
03372         return asyncCallWithArgumentList(QLatin1String("GetClientTypes"), argumentList);
03373     }
03374 
03394     inline QDBusPendingReply<QStringList> RequestClientTypes(uint contact)
03395     {
03396         if (!invalidationReason().isEmpty()) {
03397             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
03398                 invalidationReason(),
03399                 invalidationMessage()
03400             ));
03401         }
03402 
03403         QList<QVariant> argumentList;
03404         argumentList << QVariant::fromValue(contact);
03405         return asyncCallWithArgumentList(QLatin1String("RequestClientTypes"), argumentList);
03406     }
03407 
03408 Q_SIGNALS:
03423     void ClientTypesUpdated(uint contact, const QStringList& clientTypes);
03424 
03425 protected:
03426     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
03427 };
03428 
03436 class TELEPATHY_QT4_EXPORT ConnectionInterfaceContactCapabilitiesInterface : public Tp::AbstractInterface
03437 {
03438     Q_OBJECT
03439 
03440 public:
03447     static inline const char *staticInterfaceName()
03448     {
03449         return "org.freedesktop.Telepathy.Connection.Interface.ContactCapabilities";
03450     }
03451 
03459     ConnectionInterfaceContactCapabilitiesInterface(
03460         const QString& busName,
03461         const QString& objectPath,
03462         QObject* parent = 0
03463     );
03464 
03473     ConnectionInterfaceContactCapabilitiesInterface(
03474         const QDBusConnection& connection,
03475         const QString& busName,
03476         const QString& objectPath,
03477         QObject* parent = 0
03478     );
03479 
03486     ConnectionInterfaceContactCapabilitiesInterface(Tp::DBusProxy *proxy);
03487 
03495     explicit ConnectionInterfaceContactCapabilitiesInterface(const Tp::Client::ConnectionInterface& mainInterface);
03496 
03504     ConnectionInterfaceContactCapabilitiesInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
03505 
03512     Tp::PendingVariantMap *requestAllProperties() const
03513     {
03514         return internalRequestAllProperties();
03515     }
03516 
03517 public Q_SLOTS:
03573     inline QDBusPendingReply<> UpdateCapabilities(const Tp::HandlerCapabilitiesList& handlerCapabilities)
03574     {
03575         if (!invalidationReason().isEmpty()) {
03576             return QDBusPendingReply<>(QDBusMessage::createError(
03577                 invalidationReason(),
03578                 invalidationMessage()
03579             ));
03580         }
03581 
03582         QList<QVariant> argumentList;
03583         argumentList << QVariant::fromValue(handlerCapabilities);
03584         return asyncCallWithArgumentList(QLatin1String("UpdateCapabilities"), argumentList);
03585     }
03586 
03611     inline QDBusPendingReply<Tp::ContactCapabilitiesMap> GetContactCapabilities(const Tp::UIntList& handles)
03612     {
03613         if (!invalidationReason().isEmpty()) {
03614             return QDBusPendingReply<Tp::ContactCapabilitiesMap>(QDBusMessage::createError(
03615                 invalidationReason(),
03616                 invalidationMessage()
03617             ));
03618         }
03619 
03620         QList<QVariant> argumentList;
03621         argumentList << QVariant::fromValue(handles);
03622         return asyncCallWithArgumentList(QLatin1String("GetContactCapabilities"), argumentList);
03623     }
03624 
03625 Q_SIGNALS:
03642     void ContactCapabilitiesChanged(const Tp::ContactCapabilitiesMap& caps);
03643 
03644 protected:
03645     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
03646 };
03647 
03655 class TELEPATHY_QT4_EXPORT ConnectionInterfaceContactGroupsInterface : public Tp::AbstractInterface
03656 {
03657     Q_OBJECT
03658 
03659 public:
03666     static inline const char *staticInterfaceName()
03667     {
03668         return "org.freedesktop.Telepathy.Connection.Interface.ContactGroups";
03669     }
03670 
03678     ConnectionInterfaceContactGroupsInterface(
03679         const QString& busName,
03680         const QString& objectPath,
03681         QObject* parent = 0
03682     );
03683 
03692     ConnectionInterfaceContactGroupsInterface(
03693         const QDBusConnection& connection,
03694         const QString& busName,
03695         const QString& objectPath,
03696         QObject* parent = 0
03697     );
03698 
03705     ConnectionInterfaceContactGroupsInterface(Tp::DBusProxy *proxy);
03706 
03714     explicit ConnectionInterfaceContactGroupsInterface(const Tp::Client::ConnectionInterface& mainInterface);
03715 
03723     ConnectionInterfaceContactGroupsInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
03724 
03735     Q_PROPERTY(bool DisjointGroups READ _deprecated_DisjointGroups)
03736 
03737     
03746     inline TELEPATHY_QT4_DEPRECATED bool DisjointGroups() const
03747     {
03748         return _deprecated_DisjointGroups();
03749     }
03750 
03751 private:
03752     inline bool _deprecated_DisjointGroups() const
03753     {
03754         return qvariant_cast<bool>(internalPropGet("DisjointGroups"));
03755     }
03756 public:
03757 
03772     inline Tp::PendingVariant *requestPropertyDisjointGroups() const
03773     {
03774         return internalRequestProperty(QLatin1String("DisjointGroups"));
03775     }
03776 
03785     Q_PROPERTY(uint GroupStorage READ _deprecated_GroupStorage)
03786 
03787     
03796     inline TELEPATHY_QT4_DEPRECATED uint GroupStorage() const
03797     {
03798         return _deprecated_GroupStorage();
03799     }
03800 
03801 private:
03802     inline uint _deprecated_GroupStorage() const
03803     {
03804         return qvariant_cast<uint>(internalPropGet("GroupStorage"));
03805     }
03806 public:
03807 
03820     inline Tp::PendingVariant *requestPropertyGroupStorage() const
03821     {
03822         return internalRequestProperty(QLatin1String("GroupStorage"));
03823     }
03824 
03842     Q_PROPERTY(QStringList Groups READ _deprecated_Groups)
03843 
03844     
03853     inline TELEPATHY_QT4_DEPRECATED QStringList Groups() const
03854     {
03855         return _deprecated_Groups();
03856     }
03857 
03858 private:
03859     inline QStringList _deprecated_Groups() const
03860     {
03861         return qvariant_cast<QStringList>(internalPropGet("Groups"));
03862     }
03863 public:
03864 
03886     inline Tp::PendingVariant *requestPropertyGroups() const
03887     {
03888         return internalRequestProperty(QLatin1String("Groups"));
03889     }
03890 
03897     Tp::PendingVariantMap *requestAllProperties() const
03898     {
03899         return internalRequestAllProperties();
03900     }
03901 
03902 public Q_SLOTS:
03944     inline QDBusPendingReply<> SetContactGroups(uint contact, const QStringList& groups)
03945     {
03946         if (!invalidationReason().isEmpty()) {
03947             return QDBusPendingReply<>(QDBusMessage::createError(
03948                 invalidationReason(),
03949                 invalidationMessage()
03950             ));
03951         }
03952 
03953         QList<QVariant> argumentList;
03954         argumentList << QVariant::fromValue(contact) << QVariant::fromValue(groups);
03955         return asyncCallWithArgumentList(QLatin1String("SetContactGroups"), argumentList);
03956     }
03957 
03998     inline QDBusPendingReply<> SetGroupMembers(const QString& group, const Tp::UIntList& members)
03999     {
04000         if (!invalidationReason().isEmpty()) {
04001             return QDBusPendingReply<>(QDBusMessage::createError(
04002                 invalidationReason(),
04003                 invalidationMessage()
04004             ));
04005         }
04006 
04007         QList<QVariant> argumentList;
04008         argumentList << QVariant::fromValue(group) << QVariant::fromValue(members);
04009         return asyncCallWithArgumentList(QLatin1String("SetGroupMembers"), argumentList);
04010     }
04011 
04045     inline QDBusPendingReply<> AddToGroup(const QString& group, const Tp::UIntList& members)
04046     {
04047         if (!invalidationReason().isEmpty()) {
04048             return QDBusPendingReply<>(QDBusMessage::createError(
04049                 invalidationReason(),
04050                 invalidationMessage()
04051             ));
04052         }
04053 
04054         QList<QVariant> argumentList;
04055         argumentList << QVariant::fromValue(group) << QVariant::fromValue(members);
04056         return asyncCallWithArgumentList(QLatin1String("AddToGroup"), argumentList);
04057     }
04058 
04091     inline QDBusPendingReply<> RemoveFromGroup(const QString& group, const Tp::UIntList& members)
04092     {
04093         if (!invalidationReason().isEmpty()) {
04094             return QDBusPendingReply<>(QDBusMessage::createError(
04095                 invalidationReason(),
04096                 invalidationMessage()
04097             ));
04098         }
04099 
04100         QList<QVariant> argumentList;
04101         argumentList << QVariant::fromValue(group) << QVariant::fromValue(members);
04102         return asyncCallWithArgumentList(QLatin1String("RemoveFromGroup"), argumentList);
04103     }
04104 
04126     inline QDBusPendingReply<> RemoveGroup(const QString& group)
04127     {
04128         if (!invalidationReason().isEmpty()) {
04129             return QDBusPendingReply<>(QDBusMessage::createError(
04130                 invalidationReason(),
04131                 invalidationMessage()
04132             ));
04133         }
04134 
04135         QList<QVariant> argumentList;
04136         argumentList << QVariant::fromValue(group);
04137         return asyncCallWithArgumentList(QLatin1String("RemoveGroup"), argumentList);
04138     }
04139 
04172     inline QDBusPendingReply<> RenameGroup(const QString& oldName, const QString& newName)
04173     {
04174         if (!invalidationReason().isEmpty()) {
04175             return QDBusPendingReply<>(QDBusMessage::createError(
04176                 invalidationReason(),
04177                 invalidationMessage()
04178             ));
04179         }
04180 
04181         QList<QVariant> argumentList;
04182         argumentList << QVariant::fromValue(oldName) << QVariant::fromValue(newName);
04183         return asyncCallWithArgumentList(QLatin1String("RenameGroup"), argumentList);
04184     }
04185 
04186 Q_SIGNALS:
04204     void GroupsChanged(const Tp::UIntList& contact, const QStringList& added, const QStringList& removed);
04205 
04216     void GroupsCreated(const QStringList& names);
04217 
04263     void GroupRenamed(const QString& oldName, const QString& newName);
04264 
04289     void GroupsRemoved(const QStringList& names);
04290 
04291 protected:
04292     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
04293 };
04294 
04302 class TELEPATHY_QT4_EXPORT ConnectionInterfaceContactInfoInterface : public Tp::AbstractInterface
04303 {
04304     Q_OBJECT
04305 
04306 public:
04313     static inline const char *staticInterfaceName()
04314     {
04315         return "org.freedesktop.Telepathy.Connection.Interface.ContactInfo";
04316     }
04317 
04325     ConnectionInterfaceContactInfoInterface(
04326         const QString& busName,
04327         const QString& objectPath,
04328         QObject* parent = 0
04329     );
04330 
04339     ConnectionInterfaceContactInfoInterface(
04340         const QDBusConnection& connection,
04341         const QString& busName,
04342         const QString& objectPath,
04343         QObject* parent = 0
04344     );
04345 
04352     ConnectionInterfaceContactInfoInterface(Tp::DBusProxy *proxy);
04353 
04361     explicit ConnectionInterfaceContactInfoInterface(const Tp::Client::ConnectionInterface& mainInterface);
04362 
04370     ConnectionInterfaceContactInfoInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
04371 
04389     Q_PROPERTY(uint ContactInfoFlags READ _deprecated_ContactInfoFlags)
04390 
04391     
04400     inline TELEPATHY_QT4_DEPRECATED uint ContactInfoFlags() const
04401     {
04402         return _deprecated_ContactInfoFlags();
04403     }
04404 
04405 private:
04406     inline uint _deprecated_ContactInfoFlags() const
04407     {
04408         return qvariant_cast<uint>(internalPropGet("ContactInfoFlags"));
04409     }
04410 public:
04411 
04433     inline Tp::PendingVariant *requestPropertyContactInfoFlags() const
04434     {
04435         return internalRequestProperty(QLatin1String("ContactInfoFlags"));
04436     }
04437 
04489     Q_PROPERTY(Tp::FieldSpecs SupportedFields READ _deprecated_SupportedFields)
04490 
04491     
04500     inline TELEPATHY_QT4_DEPRECATED Tp::FieldSpecs SupportedFields() const
04501     {
04502         return _deprecated_SupportedFields();
04503     }
04504 
04505 private:
04506     inline Tp::FieldSpecs _deprecated_SupportedFields() const
04507     {
04508         return qvariant_cast<Tp::FieldSpecs>(internalPropGet("SupportedFields"));
04509     }
04510 public:
04511 
04567     inline Tp::PendingVariant *requestPropertySupportedFields() const
04568     {
04569         return internalRequestProperty(QLatin1String("SupportedFields"));
04570     }
04571 
04578     Tp::PendingVariantMap *requestAllProperties() const
04579     {
04580         return internalRequestAllProperties();
04581     }
04582 
04583 public Q_SLOTS:
04601     inline QDBusPendingReply<Tp::ContactInfoMap> GetContactInfo(const Tp::UIntList& contacts)
04602     {
04603         if (!invalidationReason().isEmpty()) {
04604             return QDBusPendingReply<Tp::ContactInfoMap>(QDBusMessage::createError(
04605                 invalidationReason(),
04606                 invalidationMessage()
04607             ));
04608         }
04609 
04610         QList<QVariant> argumentList;
04611         argumentList << QVariant::fromValue(contacts);
04612         return asyncCallWithArgumentList(QLatin1String("GetContactInfo"), argumentList);
04613     }
04614 
04629     inline QDBusPendingReply<> RefreshContactInfo(const Tp::UIntList& contacts)
04630     {
04631         if (!invalidationReason().isEmpty()) {
04632             return QDBusPendingReply<>(QDBusMessage::createError(
04633                 invalidationReason(),
04634                 invalidationMessage()
04635             ));
04636         }
04637 
04638         QList<QVariant> argumentList;
04639         argumentList << QVariant::fromValue(contacts);
04640         return asyncCallWithArgumentList(QLatin1String("RefreshContactInfo"), argumentList);
04641     }
04642 
04659     inline QDBusPendingReply<Tp::ContactInfoFieldList> RequestContactInfo(uint contact)
04660     {
04661         if (!invalidationReason().isEmpty()) {
04662             return QDBusPendingReply<Tp::ContactInfoFieldList>(QDBusMessage::createError(
04663                 invalidationReason(),
04664                 invalidationMessage()
04665             ));
04666         }
04667 
04668         QList<QVariant> argumentList;
04669         argumentList << QVariant::fromValue(contact);
04670         return asyncCallWithArgumentList(QLatin1String("RequestContactInfo"), argumentList);
04671     }
04672 
04685     inline QDBusPendingReply<> SetContactInfo(const Tp::ContactInfoFieldList& contactInfo)
04686     {
04687         if (!invalidationReason().isEmpty()) {
04688             return QDBusPendingReply<>(QDBusMessage::createError(
04689                 invalidationReason(),
04690                 invalidationMessage()
04691             ));
04692         }
04693 
04694         QList<QVariant> argumentList;
04695         argumentList << QVariant::fromValue(contactInfo);
04696         return asyncCallWithArgumentList(QLatin1String("SetContactInfo"), argumentList);
04697     }
04698 
04699 Q_SIGNALS:
04714     void ContactInfoChanged(uint contact, const Tp::ContactInfoFieldList& contactInfo);
04715 
04716 protected:
04717     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
04718 };
04719 
04727 class TELEPATHY_QT4_EXPORT ConnectionInterfaceContactListInterface : public Tp::AbstractInterface
04728 {
04729     Q_OBJECT
04730 
04731 public:
04738     static inline const char *staticInterfaceName()
04739     {
04740         return "org.freedesktop.Telepathy.Connection.Interface.ContactList";
04741     }
04742 
04750     ConnectionInterfaceContactListInterface(
04751         const QString& busName,
04752         const QString& objectPath,
04753         QObject* parent = 0
04754     );
04755 
04764     ConnectionInterfaceContactListInterface(
04765         const QDBusConnection& connection,
04766         const QString& busName,
04767         const QString& objectPath,
04768         QObject* parent = 0
04769     );
04770 
04777     ConnectionInterfaceContactListInterface(Tp::DBusProxy *proxy);
04778 
04786     explicit ConnectionInterfaceContactListInterface(const Tp::Client::ConnectionInterface& mainInterface);
04787 
04795     ConnectionInterfaceContactListInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
04796 
04803     Q_PROPERTY(uint ContactListState READ _deprecated_ContactListState)
04804 
04805     
04814     inline TELEPATHY_QT4_DEPRECATED uint ContactListState() const
04815     {
04816         return _deprecated_ContactListState();
04817     }
04818 
04819 private:
04820     inline uint _deprecated_ContactListState() const
04821     {
04822         return qvariant_cast<uint>(internalPropGet("ContactListState"));
04823     }
04824 public:
04825 
04836     inline Tp::PendingVariant *requestPropertyContactListState() const
04837     {
04838         return internalRequestProperty(QLatin1String("ContactListState"));
04839     }
04840 
04894     Q_PROPERTY(bool ContactListPersists READ _deprecated_ContactListPersists)
04895 
04896     
04905     inline TELEPATHY_QT4_DEPRECATED bool ContactListPersists() const
04906     {
04907         return _deprecated_ContactListPersists();
04908     }
04909 
04910 private:
04911     inline bool _deprecated_ContactListPersists() const
04912     {
04913         return qvariant_cast<bool>(internalPropGet("ContactListPersists"));
04914     }
04915 public:
04916 
04974     inline Tp::PendingVariant *requestPropertyContactListPersists() const
04975     {
04976         return internalRequestProperty(QLatin1String("ContactListPersists"));
04977     }
04978 
05001     Q_PROPERTY(bool CanChangeContactList READ _deprecated_CanChangeContactList)
05002 
05003     
05012     inline TELEPATHY_QT4_DEPRECATED bool CanChangeContactList() const
05013     {
05014         return _deprecated_CanChangeContactList();
05015     }
05016 
05017 private:
05018     inline bool _deprecated_CanChangeContactList() const
05019     {
05020         return qvariant_cast<bool>(internalPropGet("CanChangeContactList"));
05021     }
05022 public:
05023 
05050     inline Tp::PendingVariant *requestPropertyCanChangeContactList() const
05051     {
05052         return internalRequestProperty(QLatin1String("CanChangeContactList"));
05053     }
05054 
05077     Q_PROPERTY(bool RequestUsesMessage READ _deprecated_RequestUsesMessage)
05078 
05079     
05088     inline TELEPATHY_QT4_DEPRECATED bool RequestUsesMessage() const
05089     {
05090         return _deprecated_RequestUsesMessage();
05091     }
05092 
05093 private:
05094     inline bool _deprecated_RequestUsesMessage() const
05095     {
05096         return qvariant_cast<bool>(internalPropGet("RequestUsesMessage"));
05097     }
05098 public:
05099 
05126     inline Tp::PendingVariant *requestPropertyRequestUsesMessage() const
05127     {
05128         return internalRequestProperty(QLatin1String("RequestUsesMessage"));
05129     }
05130 
05137     Tp::PendingVariantMap *requestAllProperties() const
05138     {
05139         return internalRequestAllProperties();
05140     }
05141 
05142 public Q_SLOTS:
05198     inline QDBusPendingReply<Tp::ContactAttributesMap> GetContactListAttributes(const QStringList& interfaces, bool hold)
05199     {
05200         if (!invalidationReason().isEmpty()) {
05201             return QDBusPendingReply<Tp::ContactAttributesMap>(QDBusMessage::createError(
05202                 invalidationReason(),
05203                 invalidationMessage()
05204             ));
05205         }
05206 
05207         QList<QVariant> argumentList;
05208         argumentList << QVariant::fromValue(interfaces) << QVariant::fromValue(hold);
05209         return asyncCallWithArgumentList(QLatin1String("GetContactListAttributes"), argumentList);
05210     }
05211 
05299     inline QDBusPendingReply<> RequestSubscription(const Tp::UIntList& contacts, const QString& message)
05300     {
05301         if (!invalidationReason().isEmpty()) {
05302             return QDBusPendingReply<>(QDBusMessage::createError(
05303                 invalidationReason(),
05304                 invalidationMessage()
05305             ));
05306         }
05307 
05308         QList<QVariant> argumentList;
05309         argumentList << QVariant::fromValue(contacts) << QVariant::fromValue(message);
05310         return asyncCallWithArgumentList(QLatin1String("RequestSubscription"), argumentList);
05311     }
05312 
05362     inline QDBusPendingReply<> AuthorizePublication(const Tp::UIntList& contacts)
05363     {
05364         if (!invalidationReason().isEmpty()) {
05365             return QDBusPendingReply<>(QDBusMessage::createError(
05366                 invalidationReason(),
05367                 invalidationMessage()
05368             ));
05369         }
05370 
05371         QList<QVariant> argumentList;
05372         argumentList << QVariant::fromValue(contacts);
05373         return asyncCallWithArgumentList(QLatin1String("AuthorizePublication"), argumentList);
05374     }
05375 
05416     inline QDBusPendingReply<> RemoveContacts(const Tp::UIntList& contacts)
05417     {
05418         if (!invalidationReason().isEmpty()) {
05419             return QDBusPendingReply<>(QDBusMessage::createError(
05420                 invalidationReason(),
05421                 invalidationMessage()
05422             ));
05423         }
05424 
05425         QList<QVariant> argumentList;
05426         argumentList << QVariant::fromValue(contacts);
05427         return asyncCallWithArgumentList(QLatin1String("RemoveContacts"), argumentList);
05428     }
05429 
05457     inline QDBusPendingReply<> Unsubscribe(const Tp::UIntList& contacts)
05458     {
05459         if (!invalidationReason().isEmpty()) {
05460             return QDBusPendingReply<>(QDBusMessage::createError(
05461                 invalidationReason(),
05462                 invalidationMessage()
05463             ));
05464         }
05465 
05466         QList<QVariant> argumentList;
05467         argumentList << QVariant::fromValue(contacts);
05468         return asyncCallWithArgumentList(QLatin1String("Unsubscribe"), argumentList);
05469     }
05470 
05498     inline QDBusPendingReply<> Unpublish(const Tp::UIntList& contacts)
05499     {
05500         if (!invalidationReason().isEmpty()) {
05501             return QDBusPendingReply<>(QDBusMessage::createError(
05502                 invalidationReason(),
05503                 invalidationMessage()
05504             ));
05505         }
05506 
05507         QList<QVariant> argumentList;
05508         argumentList << QVariant::fromValue(contacts);
05509         return asyncCallWithArgumentList(QLatin1String("Unpublish"), argumentList);
05510     }
05511 
05512 Q_SIGNALS:
05522     void ContactListStateChanged(uint contactListState);
05523 
05563     void ContactsChanged(const Tp::ContactSubscriptionMap& changes, const Tp::UIntList& removals);
05564 
05565 protected:
05566     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
05567 };
05568 
05576 class TELEPATHY_QT4_EXPORT ConnectionInterfaceContactsInterface : public Tp::AbstractInterface
05577 {
05578     Q_OBJECT
05579 
05580 public:
05587     static inline const char *staticInterfaceName()
05588     {
05589         return "org.freedesktop.Telepathy.Connection.Interface.Contacts";
05590     }
05591 
05599     ConnectionInterfaceContactsInterface(
05600         const QString& busName,
05601         const QString& objectPath,
05602         QObject* parent = 0
05603     );
05604 
05613     ConnectionInterfaceContactsInterface(
05614         const QDBusConnection& connection,
05615         const QString& busName,
05616         const QString& objectPath,
05617         QObject* parent = 0
05618     );
05619 
05626     ConnectionInterfaceContactsInterface(Tp::DBusProxy *proxy);
05627 
05635     explicit ConnectionInterfaceContactsInterface(const Tp::Client::ConnectionInterface& mainInterface);
05636 
05644     ConnectionInterfaceContactsInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
05645 
05652     Q_PROPERTY(QStringList ContactAttributeInterfaces READ _deprecated_ContactAttributeInterfaces)
05653 
05654     
05663     inline TELEPATHY_QT4_DEPRECATED QStringList ContactAttributeInterfaces() const
05664     {
05665         return _deprecated_ContactAttributeInterfaces();
05666     }
05667 
05668 private:
05669     inline QStringList _deprecated_ContactAttributeInterfaces() const
05670     {
05671         return qvariant_cast<QStringList>(internalPropGet("ContactAttributeInterfaces"));
05672     }
05673 public:
05674 
05685     inline Tp::PendingVariant *requestPropertyContactAttributeInterfaces() const
05686     {
05687         return internalRequestProperty(QLatin1String("ContactAttributeInterfaces"));
05688     }
05689 
05696     Tp::PendingVariantMap *requestAllProperties() const
05697     {
05698         return internalRequestAllProperties();
05699     }
05700 
05701 public Q_SLOTS:
05767     inline QDBusPendingReply<Tp::ContactAttributesMap> GetContactAttributes(const Tp::UIntList& handles, const QStringList& interfaces, bool hold)
05768     {
05769         if (!invalidationReason().isEmpty()) {
05770             return QDBusPendingReply<Tp::ContactAttributesMap>(QDBusMessage::createError(
05771                 invalidationReason(),
05772                 invalidationMessage()
05773             ));
05774         }
05775 
05776         QList<QVariant> argumentList;
05777         argumentList << QVariant::fromValue(handles) << QVariant::fromValue(interfaces) << QVariant::fromValue(hold);
05778         return asyncCallWithArgumentList(QLatin1String("GetContactAttributes"), argumentList);
05779     }
05780 
05781 protected:
05782     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
05783 };
05784 
05792 class TELEPATHY_QT4_EXPORT ConnectionInterfaceLocationInterface : public Tp::AbstractInterface
05793 {
05794     Q_OBJECT
05795 
05796 public:
05803     static inline const char *staticInterfaceName()
05804     {
05805         return "org.freedesktop.Telepathy.Connection.Interface.Location";
05806     }
05807 
05815     ConnectionInterfaceLocationInterface(
05816         const QString& busName,
05817         const QString& objectPath,
05818         QObject* parent = 0
05819     );
05820 
05829     ConnectionInterfaceLocationInterface(
05830         const QDBusConnection& connection,
05831         const QString& busName,
05832         const QString& objectPath,
05833         QObject* parent = 0
05834     );
05835 
05842     ConnectionInterfaceLocationInterface(Tp::DBusProxy *proxy);
05843 
05851     explicit ConnectionInterfaceLocationInterface(const Tp::Client::ConnectionInterface& mainInterface);
05852 
05860     ConnectionInterfaceLocationInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
05861 
05867     Q_PROPERTY(Tp::UIntList LocationAccessControlTypes READ _deprecated_LocationAccessControlTypes)
05868 
05869     
05878     inline TELEPATHY_QT4_DEPRECATED Tp::UIntList LocationAccessControlTypes() const
05879     {
05880         return _deprecated_LocationAccessControlTypes();
05881     }
05882 
05883 private:
05884     inline Tp::UIntList _deprecated_LocationAccessControlTypes() const
05885     {
05886         return qvariant_cast<Tp::UIntList>(internalPropGet("LocationAccessControlTypes"));
05887     }
05888 public:
05889 
05899     inline Tp::PendingVariant *requestPropertyLocationAccessControlTypes() const
05900     {
05901         return internalRequestProperty(QLatin1String("LocationAccessControlTypes"));
05902     }
05903 
05912     Q_PROPERTY(Tp::RichPresenceAccessControl LocationAccessControl READ _deprecated_LocationAccessControl WRITE _deprecated_setLocationAccessControl)
05913 
05914     
05923     inline TELEPATHY_QT4_DEPRECATED Tp::RichPresenceAccessControl LocationAccessControl() const
05924     {
05925         return _deprecated_LocationAccessControl();
05926     }
05927 
05928 private:
05929     inline Tp::RichPresenceAccessControl _deprecated_LocationAccessControl() const
05930     {
05931         return qvariant_cast<Tp::RichPresenceAccessControl>(internalPropGet("LocationAccessControl"));
05932     }
05933 public:
05934 
05947     inline Tp::PendingVariant *requestPropertyLocationAccessControl() const
05948     {
05949         return internalRequestProperty(QLatin1String("LocationAccessControl"));
05950     }
05951 
05959     inline TELEPATHY_QT4_DEPRECATED void setLocationAccessControl(const Tp::RichPresenceAccessControl& newValue)
05960     {
05961         return _deprecated_setLocationAccessControl(newValue);
05962     }
05963 
05964 private:
05965     inline void _deprecated_setLocationAccessControl(const Tp::RichPresenceAccessControl& newValue)
05966     {
05967         internalPropSet("LocationAccessControl", QVariant::fromValue(newValue));
05968     }
05969 public:
05970 
05983     inline Tp::PendingOperation *setPropertyLocationAccessControl(Tp::RichPresenceAccessControl newValue)
05984     {
05985         return internalSetProperty(QLatin1String("LocationAccessControl"), QVariant::fromValue(newValue));
05986     }
05987 
05995     Q_PROPERTY(uint SupportedLocationFeatures READ _deprecated_SupportedLocationFeatures)
05996 
05997     
06006     inline TELEPATHY_QT4_DEPRECATED uint SupportedLocationFeatures() const
06007     {
06008         return _deprecated_SupportedLocationFeatures();
06009     }
06010 
06011 private:
06012     inline uint _deprecated_SupportedLocationFeatures() const
06013     {
06014         return qvariant_cast<uint>(internalPropGet("SupportedLocationFeatures"));
06015     }
06016 public:
06017 
06029     inline Tp::PendingVariant *requestPropertySupportedLocationFeatures() const
06030     {
06031         return internalRequestProperty(QLatin1String("SupportedLocationFeatures"));
06032     }
06033 
06040     Tp::PendingVariantMap *requestAllProperties() const
06041     {
06042         return internalRequestAllProperties();
06043     }
06044 
06045 public Q_SLOTS:
06069     inline QDBusPendingReply<Tp::ContactLocations> GetLocations(const Tp::UIntList& contacts)
06070     {
06071         if (!invalidationReason().isEmpty()) {
06072             return QDBusPendingReply<Tp::ContactLocations>(QDBusMessage::createError(
06073                 invalidationReason(),
06074                 invalidationMessage()
06075             ));
06076         }
06077 
06078         QList<QVariant> argumentList;
06079         argumentList << QVariant::fromValue(contacts);
06080         return asyncCallWithArgumentList(QLatin1String("GetLocations"), argumentList);
06081     }
06082 
06102     inline QDBusPendingReply<QVariantMap> RequestLocation(uint contact)
06103     {
06104         if (!invalidationReason().isEmpty()) {
06105             return QDBusPendingReply<QVariantMap>(QDBusMessage::createError(
06106                 invalidationReason(),
06107                 invalidationMessage()
06108             ));
06109         }
06110 
06111         QList<QVariant> argumentList;
06112         argumentList << QVariant::fromValue(contact);
06113         return asyncCallWithArgumentList(QLatin1String("RequestLocation"), argumentList);
06114     }
06115 
06132     inline QDBusPendingReply<> SetLocation(const QVariantMap& location)
06133     {
06134         if (!invalidationReason().isEmpty()) {
06135             return QDBusPendingReply<>(QDBusMessage::createError(
06136                 invalidationReason(),
06137                 invalidationMessage()
06138             ));
06139         }
06140 
06141         QList<QVariant> argumentList;
06142         argumentList << QVariant::fromValue(location);
06143         return asyncCallWithArgumentList(QLatin1String("SetLocation"), argumentList);
06144     }
06145 
06146 Q_SIGNALS:
06161     void LocationUpdated(uint contact, const QVariantMap& location);
06162 
06163 protected:
06164     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
06165 };
06166 
06174 class TELEPATHY_QT4_EXPORT ConnectionInterfacePowerSavingInterface : public Tp::AbstractInterface
06175 {
06176     Q_OBJECT
06177 
06178 public:
06185     static inline const char *staticInterfaceName()
06186     {
06187         return "org.freedesktop.Telepathy.Connection.Interface.PowerSaving.DRAFT";
06188     }
06189 
06197     ConnectionInterfacePowerSavingInterface(
06198         const QString& busName,
06199         const QString& objectPath,
06200         QObject* parent = 0
06201     );
06202 
06211     ConnectionInterfacePowerSavingInterface(
06212         const QDBusConnection& connection,
06213         const QString& busName,
06214         const QString& objectPath,
06215         QObject* parent = 0
06216     );
06217 
06224     ConnectionInterfacePowerSavingInterface(Tp::DBusProxy *proxy);
06225 
06233     explicit ConnectionInterfacePowerSavingInterface(const Tp::Client::ConnectionInterface& mainInterface);
06234 
06242     ConnectionInterfacePowerSavingInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
06243 
06253     Q_PROPERTY(bool PowerSavingActive READ _deprecated_PowerSavingActive)
06254 
06255     
06264     inline TELEPATHY_QT4_DEPRECATED bool PowerSavingActive() const
06265     {
06266         return _deprecated_PowerSavingActive();
06267     }
06268 
06269 private:
06270     inline bool _deprecated_PowerSavingActive() const
06271     {
06272         return qvariant_cast<bool>(internalPropGet("PowerSavingActive"));
06273     }
06274 public:
06275 
06289     inline Tp::PendingVariant *requestPropertyPowerSavingActive() const
06290     {
06291         return internalRequestProperty(QLatin1String("PowerSavingActive"));
06292     }
06293 
06300     Tp::PendingVariantMap *requestAllProperties() const
06301     {
06302         return internalRequestAllProperties();
06303     }
06304 
06305 public Q_SLOTS:
06332     inline QDBusPendingReply<> SetPowerSaving(bool activate)
06333     {
06334         if (!invalidationReason().isEmpty()) {
06335             return QDBusPendingReply<>(QDBusMessage::createError(
06336                 invalidationReason(),
06337                 invalidationMessage()
06338             ));
06339         }
06340 
06341         QList<QVariant> argumentList;
06342         argumentList << QVariant::fromValue(activate);
06343         return asyncCallWithArgumentList(QLatin1String("SetPowerSaving"), argumentList);
06344     }
06345 
06346 Q_SIGNALS:
06357     void PowerSavingChanged(bool active);
06358 
06359 protected:
06360     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
06361 };
06362 
06370 class TELEPATHY_QT4_EXPORT ConnectionInterfacePresenceInterface : public Tp::AbstractInterface
06371 {
06372     Q_OBJECT
06373 
06374 public:
06381     static inline const char *staticInterfaceName()
06382     {
06383         return "org.freedesktop.Telepathy.Connection.Interface.Presence";
06384     }
06385 
06393     ConnectionInterfacePresenceInterface(
06394         const QString& busName,
06395         const QString& objectPath,
06396         QObject* parent = 0
06397     );
06398 
06407     ConnectionInterfacePresenceInterface(
06408         const QDBusConnection& connection,
06409         const QString& busName,
06410         const QString& objectPath,
06411         QObject* parent = 0
06412     );
06413 
06420     ConnectionInterfacePresenceInterface(Tp::DBusProxy *proxy);
06421 
06429     explicit ConnectionInterfacePresenceInterface(const Tp::Client::ConnectionInterface& mainInterface);
06430 
06438     ConnectionInterfacePresenceInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
06439 
06446     Tp::PendingVariantMap *requestAllProperties() const
06447     {
06448         return internalRequestAllProperties();
06449     }
06450 
06451 public Q_SLOTS:
06468     inline QDBusPendingReply<> AddStatus(const QString& status, const QVariantMap& parameters)
06469     {
06470         if (!invalidationReason().isEmpty()) {
06471             return QDBusPendingReply<>(QDBusMessage::createError(
06472                 invalidationReason(),
06473                 invalidationMessage()
06474             ));
06475         }
06476 
06477         QList<QVariant> argumentList;
06478         argumentList << QVariant::fromValue(status) << QVariant::fromValue(parameters);
06479         return asyncCallWithArgumentList(QLatin1String("AddStatus"), argumentList);
06480     }
06481 
06490     inline QDBusPendingReply<> ClearStatus()
06491     {
06492         if (!invalidationReason().isEmpty()) {
06493             return QDBusPendingReply<>(QDBusMessage::createError(
06494                 invalidationReason(),
06495                 invalidationMessage()
06496             ));
06497         }
06498 
06499         return asyncCall(QLatin1String("ClearStatus"));
06500     }
06501 
06520     inline QDBusPendingReply<Tp::ContactPresences> GetPresence(const Tp::UIntList& contacts)
06521     {
06522         if (!invalidationReason().isEmpty()) {
06523             return QDBusPendingReply<Tp::ContactPresences>(QDBusMessage::createError(
06524                 invalidationReason(),
06525                 invalidationMessage()
06526             ));
06527         }
06528 
06529         QList<QVariant> argumentList;
06530         argumentList << QVariant::fromValue(contacts);
06531         return asyncCallWithArgumentList(QLatin1String("GetPresence"), argumentList);
06532     }
06533 
06550     inline QDBusPendingReply<Tp::StatusSpecMap> GetStatuses()
06551     {
06552         if (!invalidationReason().isEmpty()) {
06553             return QDBusPendingReply<Tp::StatusSpecMap>(QDBusMessage::createError(
06554                 invalidationReason(),
06555                 invalidationMessage()
06556             ));
06557         }
06558 
06559         return asyncCall(QLatin1String("GetStatuses"));
06560     }
06561 
06575     inline QDBusPendingReply<> RemoveStatus(const QString& status)
06576     {
06577         if (!invalidationReason().isEmpty()) {
06578             return QDBusPendingReply<>(QDBusMessage::createError(
06579                 invalidationReason(),
06580                 invalidationMessage()
06581             ));
06582         }
06583 
06584         QList<QVariant> argumentList;
06585         argumentList << QVariant::fromValue(status);
06586         return asyncCallWithArgumentList(QLatin1String("RemoveStatus"), argumentList);
06587     }
06588 
06602     inline QDBusPendingReply<> RequestPresence(const Tp::UIntList& contacts)
06603     {
06604         if (!invalidationReason().isEmpty()) {
06605             return QDBusPendingReply<>(QDBusMessage::createError(
06606                 invalidationReason(),
06607                 invalidationMessage()
06608             ));
06609         }
06610 
06611         QList<QVariant> argumentList;
06612         argumentList << QVariant::fromValue(contacts);
06613         return asyncCallWithArgumentList(QLatin1String("RequestPresence"), argumentList);
06614     }
06615 
06626     inline QDBusPendingReply<> SetLastActivityTime(uint time)
06627     {
06628         if (!invalidationReason().isEmpty()) {
06629             return QDBusPendingReply<>(QDBusMessage::createError(
06630                 invalidationReason(),
06631                 invalidationMessage()
06632             ));
06633         }
06634 
06635         QList<QVariant> argumentList;
06636         argumentList << QVariant::fromValue(time);
06637         return asyncCallWithArgumentList(QLatin1String("SetLastActivityTime"), argumentList);
06638     }
06639 
06670     inline QDBusPendingReply<> SetStatus(const Tp::MultipleStatusMap& statuses)
06671     {
06672         if (!invalidationReason().isEmpty()) {
06673             return QDBusPendingReply<>(QDBusMessage::createError(
06674                 invalidationReason(),
06675                 invalidationMessage()
06676             ));
06677         }
06678 
06679         QList<QVariant> argumentList;
06680         argumentList << QVariant::fromValue(statuses);
06681         return asyncCallWithArgumentList(QLatin1String("SetStatus"), argumentList);
06682     }
06683 
06684 Q_SIGNALS:
06701     void PresenceUpdate(const Tp::ContactPresences& presence);
06702 
06703 protected:
06704     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
06705 };
06706 
06714 class TELEPATHY_QT4_EXPORT ConnectionInterfaceRequestsInterface : public Tp::AbstractInterface
06715 {
06716     Q_OBJECT
06717 
06718 public:
06725     static inline const char *staticInterfaceName()
06726     {
06727         return "org.freedesktop.Telepathy.Connection.Interface.Requests";
06728     }
06729 
06737     ConnectionInterfaceRequestsInterface(
06738         const QString& busName,
06739         const QString& objectPath,
06740         QObject* parent = 0
06741     );
06742 
06751     ConnectionInterfaceRequestsInterface(
06752         const QDBusConnection& connection,
06753         const QString& busName,
06754         const QString& objectPath,
06755         QObject* parent = 0
06756     );
06757 
06764     ConnectionInterfaceRequestsInterface(Tp::DBusProxy *proxy);
06765 
06773     explicit ConnectionInterfaceRequestsInterface(const Tp::Client::ConnectionInterface& mainInterface);
06774 
06782     ConnectionInterfaceRequestsInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
06783 
06790     Q_PROPERTY(Tp::ChannelDetailsList Channels READ _deprecated_Channels)
06791 
06792     
06801     inline TELEPATHY_QT4_DEPRECATED Tp::ChannelDetailsList Channels() const
06802     {
06803         return _deprecated_Channels();
06804     }
06805 
06806 private:
06807     inline Tp::ChannelDetailsList _deprecated_Channels() const
06808     {
06809         return qvariant_cast<Tp::ChannelDetailsList>(internalPropGet("Channels"));
06810     }
06811 public:
06812 
06823     inline Tp::PendingVariant *requestPropertyChannels() const
06824     {
06825         return internalRequestProperty(QLatin1String("Channels"));
06826     }
06827 
06851     Q_PROPERTY(Tp::RequestableChannelClassList RequestableChannelClasses READ _deprecated_RequestableChannelClasses)
06852 
06853     
06862     inline TELEPATHY_QT4_DEPRECATED Tp::RequestableChannelClassList RequestableChannelClasses() const
06863     {
06864         return _deprecated_RequestableChannelClasses();
06865     }
06866 
06867 private:
06868     inline Tp::RequestableChannelClassList _deprecated_RequestableChannelClasses() const
06869     {
06870         return qvariant_cast<Tp::RequestableChannelClassList>(internalPropGet("RequestableChannelClasses"));
06871     }
06872 public:
06873 
06901     inline Tp::PendingVariant *requestPropertyRequestableChannelClasses() const
06902     {
06903         return internalRequestProperty(QLatin1String("RequestableChannelClasses"));
06904     }
06905 
06912     Tp::PendingVariantMap *requestAllProperties() const
06913     {
06914         return internalRequestAllProperties();
06915     }
06916 
06917 public Q_SLOTS:
06986     inline QDBusPendingReply<QDBusObjectPath, QVariantMap> CreateChannel(const QVariantMap& request)
06987     {
06988         if (!invalidationReason().isEmpty()) {
06989             return QDBusPendingReply<QDBusObjectPath, QVariantMap>(QDBusMessage::createError(
06990                 invalidationReason(),
06991                 invalidationMessage()
06992             ));
06993         }
06994 
06995         QList<QVariant> argumentList;
06996         argumentList << QVariant::fromValue(request);
06997         return asyncCallWithArgumentList(QLatin1String("CreateChannel"), argumentList);
06998     }
06999 
07051     inline QDBusPendingReply<bool, QDBusObjectPath, QVariantMap> EnsureChannel(const QVariantMap& request)
07052     {
07053         if (!invalidationReason().isEmpty()) {
07054             return QDBusPendingReply<bool, QDBusObjectPath, QVariantMap>(QDBusMessage::createError(
07055                 invalidationReason(),
07056                 invalidationMessage()
07057             ));
07058         }
07059 
07060         QList<QVariant> argumentList;
07061         argumentList << QVariant::fromValue(request);
07062         return asyncCallWithArgumentList(QLatin1String("EnsureChannel"), argumentList);
07063     }
07064 
07065 Q_SIGNALS:
07107     void NewChannels(const Tp::ChannelDetailsList& channels);
07108 
07121     void ChannelClosed(const QDBusObjectPath& removed);
07122 
07123 protected:
07124     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
07125 };
07126 
07134 class TELEPATHY_QT4_EXPORT ConnectionInterfaceServicePointInterface : public Tp::AbstractInterface
07135 {
07136     Q_OBJECT
07137 
07138 public:
07145     static inline const char *staticInterfaceName()
07146     {
07147         return "org.freedesktop.Telepathy.Connection.Interface.ServicePoint";
07148     }
07149 
07157     ConnectionInterfaceServicePointInterface(
07158         const QString& busName,
07159         const QString& objectPath,
07160         QObject* parent = 0
07161     );
07162 
07171     ConnectionInterfaceServicePointInterface(
07172         const QDBusConnection& connection,
07173         const QString& busName,
07174         const QString& objectPath,
07175         QObject* parent = 0
07176     );
07177 
07184     ConnectionInterfaceServicePointInterface(Tp::DBusProxy *proxy);
07185 
07193     explicit ConnectionInterfaceServicePointInterface(const Tp::Client::ConnectionInterface& mainInterface);
07194 
07202     ConnectionInterfaceServicePointInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
07203 
07209     Q_PROPERTY(Tp::ServicePointInfoList KnownServicePoints READ _deprecated_KnownServicePoints)
07210 
07211     
07220     inline TELEPATHY_QT4_DEPRECATED Tp::ServicePointInfoList KnownServicePoints() const
07221     {
07222         return _deprecated_KnownServicePoints();
07223     }
07224 
07225 private:
07226     inline Tp::ServicePointInfoList _deprecated_KnownServicePoints() const
07227     {
07228         return qvariant_cast<Tp::ServicePointInfoList>(internalPropGet("KnownServicePoints"));
07229     }
07230 public:
07231 
07241     inline Tp::PendingVariant *requestPropertyKnownServicePoints() const
07242     {
07243         return internalRequestProperty(QLatin1String("KnownServicePoints"));
07244     }
07245 
07252     Tp::PendingVariantMap *requestAllProperties() const
07253     {
07254         return internalRequestAllProperties();
07255     }
07256 
07257 Q_SIGNALS:
07269     void ServicePointsChanged(const Tp::ServicePointInfoList& servicePoints);
07270 
07271 protected:
07272     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
07273 };
07274 
07282 class TELEPATHY_QT4_EXPORT ConnectionInterfaceSimplePresenceInterface : public Tp::AbstractInterface
07283 {
07284     Q_OBJECT
07285 
07286 public:
07293     static inline const char *staticInterfaceName()
07294     {
07295         return "org.freedesktop.Telepathy.Connection.Interface.SimplePresence";
07296     }
07297 
07305     ConnectionInterfaceSimplePresenceInterface(
07306         const QString& busName,
07307         const QString& objectPath,
07308         QObject* parent = 0
07309     );
07310 
07319     ConnectionInterfaceSimplePresenceInterface(
07320         const QDBusConnection& connection,
07321         const QString& busName,
07322         const QString& objectPath,
07323         QObject* parent = 0
07324     );
07325 
07332     ConnectionInterfaceSimplePresenceInterface(Tp::DBusProxy *proxy);
07333 
07341     explicit ConnectionInterfaceSimplePresenceInterface(const Tp::Client::ConnectionInterface& mainInterface);
07342 
07350     ConnectionInterfaceSimplePresenceInterface(const Tp::Client::ConnectionInterface& mainInterface, QObject* parent);
07351 
07387     Q_PROPERTY(Tp::SimpleStatusSpecMap Statuses READ _deprecated_Statuses)
07388 
07389     
07398     inline TELEPATHY_QT4_DEPRECATED Tp::SimpleStatusSpecMap Statuses() const
07399     {
07400         return _deprecated_Statuses();
07401     }
07402 
07403 private:
07404     inline Tp::SimpleStatusSpecMap _deprecated_Statuses() const
07405     {
07406         return qvariant_cast<Tp::SimpleStatusSpecMap>(internalPropGet("Statuses"));
07407     }
07408 public:
07409 
07449     inline Tp::PendingVariant *requestPropertyStatuses() const
07450     {
07451         return internalRequestProperty(QLatin1String("Statuses"));
07452     }
07453 
07460     Tp::PendingVariantMap *requestAllProperties() const
07461     {
07462         return internalRequestAllProperties();
07463     }
07464 
07465 public Q_SLOTS:
07520     inline QDBusPendingReply<> SetPresence(const QString& status, const QString& statusMessage)
07521     {
07522         if (!invalidationReason().isEmpty()) {
07523             return QDBusPendingReply<>(QDBusMessage::createError(
07524                 invalidationReason(),
07525                 invalidationMessage()
07526             ));
07527         }
07528 
07529         QList<QVariant> argumentList;
07530         argumentList << QVariant::fromValue(status) << QVariant::fromValue(statusMessage);
07531         return asyncCallWithArgumentList(QLatin1String("SetPresence"), argumentList);
07532     }
07533 
07558     inline QDBusPendingReply<Tp::SimpleContactPresences> GetPresences(const Tp::UIntList& contacts)
07559     {
07560         if (!invalidationReason().isEmpty()) {
07561             return QDBusPendingReply<Tp::SimpleContactPresences>(QDBusMessage::createError(
07562                 invalidationReason(),
07563                 invalidationMessage()
07564             ));
07565         }
07566 
07567         QList<QVariant> argumentList;
07568         argumentList << QVariant::fromValue(contacts);
07569         return asyncCallWithArgumentList(QLatin1String("GetPresences"), argumentList);
07570     }
07571 
07572 Q_SIGNALS:
07585     void PresencesChanged(const Tp::SimpleContactPresences& presence);
07586 
07587 protected:
07588     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
07589 };
07590 }
07591 }
07592 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterface*)
07593 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceAliasingInterface*)
07594 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceAnonymityInterface*)
07595 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceAvatarsInterface*)
07596 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceBalanceInterface*)
07597 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceCapabilitiesInterface*)
07598 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceCellularInterface*)
07599 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceClientTypesInterface*)
07600 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceContactCapabilitiesInterface*)
07601 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceContactGroupsInterface*)
07602 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceContactInfoInterface*)
07603 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceContactListInterface*)
07604 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceContactsInterface*)
07605 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceLocationInterface*)
07606 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfacePowerSavingInterface*)
07607 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfacePresenceInterface*)
07608 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceRequestsInterface*)
07609 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceServicePointInterface*)
07610 Q_DECLARE_METATYPE(Tp::Client::ConnectionInterfaceSimplePresenceInterface*)


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