Home · All Classes · All Namespaces · Modules · Functions · Files
cli-account.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 {
00028 class PendingVariant;
00029 class PendingOperation;
00030 }
00031 
00032 namespace Tp
00033 {
00034 namespace Client
00035 {
00036 
00044 class TELEPATHY_QT4_EXPORT AccountInterface : public Tp::AbstractInterface
00045 {
00046     Q_OBJECT
00047 
00048 public:
00055     static inline QLatin1String staticInterfaceName()
00056     {
00057         return QLatin1String("org.freedesktop.Telepathy.Account");
00058     }
00059 
00067     AccountInterface(
00068         const QString& busName,
00069         const QString& objectPath,
00070         QObject* parent = 0
00071     );
00072 
00081     AccountInterface(
00082         const QDBusConnection& connection,
00083         const QString& busName,
00084         const QString& objectPath,
00085         QObject* parent = 0
00086     );
00087 
00094     AccountInterface(Tp::DBusProxy *proxy);
00095 
00105     inline Tp::PendingVariant *requestPropertyInterfaces() const
00106     {
00107         return internalRequestProperty(QLatin1String("Interfaces"));
00108     }
00109 
00123     inline Tp::PendingVariant *requestPropertyDisplayName() const
00124     {
00125         return internalRequestProperty(QLatin1String("DisplayName"));
00126     }
00127 
00141     inline Tp::PendingOperation *setPropertyDisplayName(QString newValue)
00142     {
00143         return internalSetProperty(QLatin1String("DisplayName"), QVariant::fromValue(newValue));
00144     }
00145 
00158     inline Tp::PendingVariant *requestPropertyIcon() const
00159     {
00160         return internalRequestProperty(QLatin1String("Icon"));
00161     }
00162 
00175     inline Tp::PendingOperation *setPropertyIcon(QString newValue)
00176     {
00177         return internalSetProperty(QLatin1String("Icon"), QVariant::fromValue(newValue));
00178     }
00179 
00199     inline Tp::PendingVariant *requestPropertyValid() const
00200     {
00201         return internalRequestProperty(QLatin1String("Valid"));
00202     }
00203 
00242     inline Tp::PendingVariant *requestPropertyEnabled() const
00243     {
00244         return internalRequestProperty(QLatin1String("Enabled"));
00245     }
00246 
00285     inline Tp::PendingOperation *setPropertyEnabled(bool newValue)
00286     {
00287         return internalSetProperty(QLatin1String("Enabled"), QVariant::fromValue(newValue));
00288     }
00289 
00307     inline Tp::PendingVariant *requestPropertyNickname() const
00308     {
00309         return internalRequestProperty(QLatin1String("Nickname"));
00310     }
00311 
00329     inline Tp::PendingOperation *setPropertyNickname(QString newValue)
00330     {
00331         return internalSetProperty(QLatin1String("Nickname"), QVariant::fromValue(newValue));
00332     }
00333 
00377     inline Tp::PendingVariant *requestPropertyService() const
00378     {
00379         return internalRequestProperty(QLatin1String("Service"));
00380     }
00381 
00425     inline Tp::PendingOperation *setPropertyService(QString newValue)
00426     {
00427         return internalSetProperty(QLatin1String("Service"), QVariant::fromValue(newValue));
00428     }
00429 
00449     inline Tp::PendingVariant *requestPropertyParameters() const
00450     {
00451         return internalRequestProperty(QLatin1String("Parameters"));
00452     }
00453 
00485     inline Tp::PendingVariant *requestPropertyAutomaticPresence() const
00486     {
00487         return internalRequestProperty(QLatin1String("AutomaticPresence"));
00488     }
00489 
00521     inline Tp::PendingOperation *setPropertyAutomaticPresence(Tp::SimplePresence newValue)
00522     {
00523         return internalSetProperty(QLatin1String("AutomaticPresence"), QVariant::fromValue(newValue));
00524     }
00525 
00541     inline Tp::PendingVariant *requestPropertyConnectAutomatically() const
00542     {
00543         return internalRequestProperty(QLatin1String("ConnectAutomatically"));
00544     }
00545 
00561     inline Tp::PendingOperation *setPropertyConnectAutomatically(bool newValue)
00562     {
00563         return internalSetProperty(QLatin1String("ConnectAutomatically"), QVariant::fromValue(newValue));
00564     }
00565 
00587     inline Tp::PendingVariant *requestPropertyConnection() const
00588     {
00589         return internalRequestProperty(QLatin1String("Connection"));
00590     }
00591 
00609     inline Tp::PendingVariant *requestPropertyConnectionStatus() const
00610     {
00611         return internalRequestProperty(QLatin1String("ConnectionStatus"));
00612     }
00613 
00626     inline Tp::PendingVariant *requestPropertyConnectionStatusReason() const
00627     {
00628         return internalRequestProperty(QLatin1String("ConnectionStatusReason"));
00629     }
00630 
00661     inline Tp::PendingVariant *requestPropertyConnectionError() const
00662     {
00663         return internalRequestProperty(QLatin1String("ConnectionError"));
00664     }
00665 
00690     inline Tp::PendingVariant *requestPropertyConnectionErrorDetails() const
00691     {
00692         return internalRequestProperty(QLatin1String("ConnectionErrorDetails"));
00693     }
00694 
00709     inline Tp::PendingVariant *requestPropertyCurrentPresence() const
00710     {
00711         return internalRequestProperty(QLatin1String("CurrentPresence"));
00712     }
00713 
00741     inline Tp::PendingVariant *requestPropertyRequestedPresence() const
00742     {
00743         return internalRequestProperty(QLatin1String("RequestedPresence"));
00744     }
00745 
00773     inline Tp::PendingOperation *setPropertyRequestedPresence(Tp::SimplePresence newValue)
00774     {
00775         return internalSetProperty(QLatin1String("RequestedPresence"), QVariant::fromValue(newValue));
00776     }
00777 
00819     inline Tp::PendingVariant *requestPropertyChangingPresence() const
00820     {
00821         return internalRequestProperty(QLatin1String("ChangingPresence"));
00822     }
00823 
00861     inline Tp::PendingVariant *requestPropertyNormalizedName() const
00862     {
00863         return internalRequestProperty(QLatin1String("NormalizedName"));
00864     }
00865 
00880     inline Tp::PendingVariant *requestPropertyHasBeenOnline() const
00881     {
00882         return internalRequestProperty(QLatin1String("HasBeenOnline"));
00883     }
00884 
00891     Tp::PendingVariantMap *requestAllProperties() const
00892     {
00893         return internalRequestAllProperties();
00894     }
00895 
00896 public Q_SLOTS:
00907     inline QDBusPendingReply<> Remove(int timeout = -1)
00908     {
00909         if (!invalidationReason().isEmpty()) {
00910             return QDBusPendingReply<>(QDBusMessage::createError(
00911                 invalidationReason(),
00912                 invalidationMessage()
00913             ));
00914         }
00915 
00916         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00917                 this->staticInterfaceName(), QLatin1String("Remove"));
00918         return this->connection().asyncCall(callMessage, timeout);
00919     }
00920 
00991     inline QDBusPendingReply<QStringList> UpdateParameters(const QVariantMap& set, const QStringList& unset, int timeout = -1)
00992     {
00993         if (!invalidationReason().isEmpty()) {
00994             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
00995                 invalidationReason(),
00996                 invalidationMessage()
00997             ));
00998         }
00999 
01000         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01001                 this->staticInterfaceName(), QLatin1String("UpdateParameters"));
01002         callMessage << QVariant::fromValue(set) << QVariant::fromValue(unset);
01003         return this->connection().asyncCall(callMessage, timeout);
01004     }
01005 
01047     inline QDBusPendingReply<> Reconnect(int timeout = -1)
01048     {
01049         if (!invalidationReason().isEmpty()) {
01050             return QDBusPendingReply<>(QDBusMessage::createError(
01051                 invalidationReason(),
01052                 invalidationMessage()
01053             ));
01054         }
01055 
01056         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01057                 this->staticInterfaceName(), QLatin1String("Reconnect"));
01058         return this->connection().asyncCall(callMessage, timeout);
01059     }
01060 
01061 Q_SIGNALS:
01071     void Removed();
01072 
01087     void AccountPropertyChanged(const QVariantMap& properties);
01088 
01089 protected:
01090     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01091 };
01092 
01100 class TELEPATHY_QT4_EXPORT AccountInterfaceAddressingInterface : public Tp::AbstractInterface
01101 {
01102     Q_OBJECT
01103 
01104 public:
01111     static inline QLatin1String staticInterfaceName()
01112     {
01113         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Addressing");
01114     }
01115 
01123     AccountInterfaceAddressingInterface(
01124         const QString& busName,
01125         const QString& objectPath,
01126         QObject* parent = 0
01127     );
01128 
01137     AccountInterfaceAddressingInterface(
01138         const QDBusConnection& connection,
01139         const QString& busName,
01140         const QString& objectPath,
01141         QObject* parent = 0
01142     );
01143 
01150     AccountInterfaceAddressingInterface(Tp::DBusProxy *proxy);
01151 
01159     explicit AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface);
01160 
01168     AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01169 
01188     inline Tp::PendingVariant *requestPropertyURISchemes() const
01189     {
01190         return internalRequestProperty(QLatin1String("URISchemes"));
01191     }
01192 
01199     Tp::PendingVariantMap *requestAllProperties() const
01200     {
01201         return internalRequestAllProperties();
01202     }
01203 
01204 public Q_SLOTS:
01225     inline QDBusPendingReply<> SetURISchemeAssociation(const QString& URIScheme, bool association, int timeout = -1)
01226     {
01227         if (!invalidationReason().isEmpty()) {
01228             return QDBusPendingReply<>(QDBusMessage::createError(
01229                 invalidationReason(),
01230                 invalidationMessage()
01231             ));
01232         }
01233 
01234         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01235                 this->staticInterfaceName(), QLatin1String("SetURISchemeAssociation"));
01236         callMessage << QVariant::fromValue(URIScheme) << QVariant::fromValue(association);
01237         return this->connection().asyncCall(callMessage, timeout);
01238     }
01239 
01240 protected:
01241     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01242 };
01243 
01251 class TELEPATHY_QT4_EXPORT AccountInterfaceAvatarInterface : public Tp::AbstractInterface
01252 {
01253     Q_OBJECT
01254 
01255 public:
01262     static inline QLatin1String staticInterfaceName()
01263     {
01264         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Avatar");
01265     }
01266 
01274     AccountInterfaceAvatarInterface(
01275         const QString& busName,
01276         const QString& objectPath,
01277         QObject* parent = 0
01278     );
01279 
01288     AccountInterfaceAvatarInterface(
01289         const QDBusConnection& connection,
01290         const QString& busName,
01291         const QString& objectPath,
01292         QObject* parent = 0
01293     );
01294 
01301     AccountInterfaceAvatarInterface(Tp::DBusProxy *proxy);
01302 
01310     explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
01311 
01319     AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01320 
01334     inline Tp::PendingVariant *requestPropertyAvatar() const
01335     {
01336         return internalRequestProperty(QLatin1String("Avatar"));
01337     }
01338 
01352     inline Tp::PendingOperation *setPropertyAvatar(Tp::Avatar newValue)
01353     {
01354         return internalSetProperty(QLatin1String("Avatar"), QVariant::fromValue(newValue));
01355     }
01356 
01363     Tp::PendingVariantMap *requestAllProperties() const
01364     {
01365         return internalRequestAllProperties();
01366     }
01367 
01368 Q_SIGNALS:
01377     void AvatarChanged();
01378 
01379 protected:
01380     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01381 };
01382 
01390 class TELEPATHY_QT4_EXPORT AccountInterfaceStorageInterface : public Tp::AbstractInterface
01391 {
01392     Q_OBJECT
01393 
01394 public:
01401     static inline QLatin1String staticInterfaceName()
01402     {
01403         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Storage");
01404     }
01405 
01413     AccountInterfaceStorageInterface(
01414         const QString& busName,
01415         const QString& objectPath,
01416         QObject* parent = 0
01417     );
01418 
01427     AccountInterfaceStorageInterface(
01428         const QDBusConnection& connection,
01429         const QString& busName,
01430         const QString& objectPath,
01431         QObject* parent = 0
01432     );
01433 
01440     AccountInterfaceStorageInterface(Tp::DBusProxy *proxy);
01441 
01449     explicit AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface);
01450 
01458     AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01459 
01478     inline Tp::PendingVariant *requestPropertyStorageProvider() const
01479     {
01480         return internalRequestProperty(QLatin1String("StorageProvider"));
01481     }
01482 
01510     inline Tp::PendingVariant *requestPropertyStorageIdentifier() const
01511     {
01512         return internalRequestProperty(QLatin1String("StorageIdentifier"));
01513     }
01514 
01547     inline Tp::PendingVariant *requestPropertyStorageSpecificInformation() const
01548     {
01549         return internalRequestProperty(QLatin1String("StorageSpecificInformation"));
01550     }
01551 
01568     inline Tp::PendingVariant *requestPropertyStorageRestrictions() const
01569     {
01570         return internalRequestProperty(QLatin1String("StorageRestrictions"));
01571     }
01572 
01579     Tp::PendingVariantMap *requestAllProperties() const
01580     {
01581         return internalRequestAllProperties();
01582     }
01583 
01584 protected:
01585     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01586 };
01587 }
01588 }
01589 Q_DECLARE_METATYPE(Tp::Client::AccountInterface*)
01590 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAddressingInterface*)
01591 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAvatarInterface*)
01592 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceStorageInterface*)


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.8.0