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 
00124     inline Tp::PendingVariant *requestPropertyDisplayName() const
00125     {
00126         return internalRequestProperty(QLatin1String("DisplayName"));
00127     }
00128 
00143     inline Tp::PendingOperation *setPropertyDisplayName(QString newValue)
00144     {
00145         return internalSetProperty(QLatin1String("DisplayName"), QVariant::fromValue(newValue));
00146     }
00147 
00164     inline Tp::PendingVariant *requestPropertyIcon() const
00165     {
00166         return internalRequestProperty(QLatin1String("Icon"));
00167     }
00168 
00185     inline Tp::PendingOperation *setPropertyIcon(QString newValue)
00186     {
00187         return internalSetProperty(QLatin1String("Icon"), QVariant::fromValue(newValue));
00188     }
00189 
00209     inline Tp::PendingVariant *requestPropertyValid() const
00210     {
00211         return internalRequestProperty(QLatin1String("Valid"));
00212     }
00213 
00250     inline Tp::PendingVariant *requestPropertyEnabled() const
00251     {
00252         return internalRequestProperty(QLatin1String("Enabled"));
00253     }
00254 
00291     inline Tp::PendingOperation *setPropertyEnabled(bool newValue)
00292     {
00293         return internalSetProperty(QLatin1String("Enabled"), QVariant::fromValue(newValue));
00294     }
00295 
00313     inline Tp::PendingVariant *requestPropertyNickname() const
00314     {
00315         return internalRequestProperty(QLatin1String("Nickname"));
00316     }
00317 
00335     inline Tp::PendingOperation *setPropertyNickname(QString newValue)
00336     {
00337         return internalSetProperty(QLatin1String("Nickname"), QVariant::fromValue(newValue));
00338     }
00339 
00381     inline Tp::PendingVariant *requestPropertyService() const
00382     {
00383         return internalRequestProperty(QLatin1String("Service"));
00384     }
00385 
00427     inline Tp::PendingOperation *setPropertyService(QString newValue)
00428     {
00429         return internalSetProperty(QLatin1String("Service"), QVariant::fromValue(newValue));
00430     }
00431 
00448     inline Tp::PendingVariant *requestPropertyParameters() const
00449     {
00450         return internalRequestProperty(QLatin1String("Parameters"));
00451     }
00452 
00482     inline Tp::PendingVariant *requestPropertyAutomaticPresence() const
00483     {
00484         return internalRequestProperty(QLatin1String("AutomaticPresence"));
00485     }
00486 
00516     inline Tp::PendingOperation *setPropertyAutomaticPresence(Tp::SimplePresence newValue)
00517     {
00518         return internalSetProperty(QLatin1String("AutomaticPresence"), QVariant::fromValue(newValue));
00519     }
00520 
00538     inline Tp::PendingVariant *requestPropertyConnectAutomatically() const
00539     {
00540         return internalRequestProperty(QLatin1String("ConnectAutomatically"));
00541     }
00542 
00560     inline Tp::PendingOperation *setPropertyConnectAutomatically(bool newValue)
00561     {
00562         return internalSetProperty(QLatin1String("ConnectAutomatically"), QVariant::fromValue(newValue));
00563     }
00564 
00584     inline Tp::PendingVariant *requestPropertyConnection() const
00585     {
00586         return internalRequestProperty(QLatin1String("Connection"));
00587     }
00588 
00607     inline Tp::PendingVariant *requestPropertyConnectionStatus() const
00608     {
00609         return internalRequestProperty(QLatin1String("ConnectionStatus"));
00610     }
00611 
00625     inline Tp::PendingVariant *requestPropertyConnectionStatusReason() const
00626     {
00627         return internalRequestProperty(QLatin1String("ConnectionStatusReason"));
00628     }
00629 
00658     inline Tp::PendingVariant *requestPropertyConnectionError() const
00659     {
00660         return internalRequestProperty(QLatin1String("ConnectionError"));
00661     }
00662 
00685     inline Tp::PendingVariant *requestPropertyConnectionErrorDetails() const
00686     {
00687         return internalRequestProperty(QLatin1String("ConnectionErrorDetails"));
00688     }
00689 
00704     inline Tp::PendingVariant *requestPropertyCurrentPresence() const
00705     {
00706         return internalRequestProperty(QLatin1String("CurrentPresence"));
00707     }
00708 
00739     inline Tp::PendingVariant *requestPropertyRequestedPresence() const
00740     {
00741         return internalRequestProperty(QLatin1String("RequestedPresence"));
00742     }
00743 
00774     inline Tp::PendingOperation *setPropertyRequestedPresence(Tp::SimplePresence newValue)
00775     {
00776         return internalSetProperty(QLatin1String("RequestedPresence"), QVariant::fromValue(newValue));
00777     }
00778 
00818     inline Tp::PendingVariant *requestPropertyChangingPresence() const
00819     {
00820         return internalRequestProperty(QLatin1String("ChangingPresence"));
00821     }
00822 
00858     inline Tp::PendingVariant *requestPropertyNormalizedName() const
00859     {
00860         return internalRequestProperty(QLatin1String("NormalizedName"));
00861     }
00862 
00877     inline Tp::PendingVariant *requestPropertyHasBeenOnline() const
00878     {
00879         return internalRequestProperty(QLatin1String("HasBeenOnline"));
00880     }
00881 
00888     Tp::PendingVariantMap *requestAllProperties() const
00889     {
00890         return internalRequestAllProperties();
00891     }
00892 
00893 public Q_SLOTS:
00904     inline QDBusPendingReply<> Remove(int timeout = -1)
00905     {
00906         if (!invalidationReason().isEmpty()) {
00907             return QDBusPendingReply<>(QDBusMessage::createError(
00908                 invalidationReason(),
00909                 invalidationMessage()
00910             ));
00911         }
00912 
00913         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00914                 this->staticInterfaceName(), QLatin1String("Remove"));
00915         return this->connection().asyncCall(callMessage, timeout);
00916     }
00917 
00976     inline QDBusPendingReply<QStringList> UpdateParameters(const QVariantMap& set, const QStringList& unset, int timeout = -1)
00977     {
00978         if (!invalidationReason().isEmpty()) {
00979             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
00980                 invalidationReason(),
00981                 invalidationMessage()
00982             ));
00983         }
00984 
00985         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00986                 this->staticInterfaceName(), QLatin1String("UpdateParameters"));
00987         callMessage << QVariant::fromValue(set) << QVariant::fromValue(unset);
00988         return this->connection().asyncCall(callMessage, timeout);
00989     }
00990 
01030     inline QDBusPendingReply<> Reconnect(int timeout = -1)
01031     {
01032         if (!invalidationReason().isEmpty()) {
01033             return QDBusPendingReply<>(QDBusMessage::createError(
01034                 invalidationReason(),
01035                 invalidationMessage()
01036             ));
01037         }
01038 
01039         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01040                 this->staticInterfaceName(), QLatin1String("Reconnect"));
01041         return this->connection().asyncCall(callMessage, timeout);
01042     }
01043 
01044 Q_SIGNALS:
01054     void Removed();
01055 
01070     void AccountPropertyChanged(const QVariantMap& properties);
01071 
01072 protected:
01073     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01074 };
01075 
01083 class TELEPATHY_QT4_EXPORT AccountInterfaceAddressingInterface : public Tp::AbstractInterface
01084 {
01085     Q_OBJECT
01086 
01087 public:
01094     static inline QLatin1String staticInterfaceName()
01095     {
01096         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Addressing");
01097     }
01098 
01106     AccountInterfaceAddressingInterface(
01107         const QString& busName,
01108         const QString& objectPath,
01109         QObject* parent = 0
01110     );
01111 
01120     AccountInterfaceAddressingInterface(
01121         const QDBusConnection& connection,
01122         const QString& busName,
01123         const QString& objectPath,
01124         QObject* parent = 0
01125     );
01126 
01133     AccountInterfaceAddressingInterface(Tp::DBusProxy *proxy);
01134 
01142     explicit AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface);
01143 
01151     AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01152 
01169     inline Tp::PendingVariant *requestPropertyURISchemes() const
01170     {
01171         return internalRequestProperty(QLatin1String("URISchemes"));
01172     }
01173 
01180     Tp::PendingVariantMap *requestAllProperties() const
01181     {
01182         return internalRequestAllProperties();
01183     }
01184 
01185 public Q_SLOTS:
01206     inline QDBusPendingReply<> SetURISchemeAssociation(const QString& URIScheme, bool association, int timeout = -1)
01207     {
01208         if (!invalidationReason().isEmpty()) {
01209             return QDBusPendingReply<>(QDBusMessage::createError(
01210                 invalidationReason(),
01211                 invalidationMessage()
01212             ));
01213         }
01214 
01215         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01216                 this->staticInterfaceName(), QLatin1String("SetURISchemeAssociation"));
01217         callMessage << QVariant::fromValue(URIScheme) << QVariant::fromValue(association);
01218         return this->connection().asyncCall(callMessage, timeout);
01219     }
01220 
01221 protected:
01222     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01223 };
01224 
01232 class TELEPATHY_QT4_EXPORT AccountInterfaceAvatarInterface : public Tp::AbstractInterface
01233 {
01234     Q_OBJECT
01235 
01236 public:
01243     static inline QLatin1String staticInterfaceName()
01244     {
01245         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Avatar");
01246     }
01247 
01255     AccountInterfaceAvatarInterface(
01256         const QString& busName,
01257         const QString& objectPath,
01258         QObject* parent = 0
01259     );
01260 
01269     AccountInterfaceAvatarInterface(
01270         const QDBusConnection& connection,
01271         const QString& busName,
01272         const QString& objectPath,
01273         QObject* parent = 0
01274     );
01275 
01282     AccountInterfaceAvatarInterface(Tp::DBusProxy *proxy);
01283 
01291     explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
01292 
01300     AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01301 
01316     inline Tp::PendingVariant *requestPropertyAvatar() const
01317     {
01318         return internalRequestProperty(QLatin1String("Avatar"));
01319     }
01320 
01335     inline Tp::PendingOperation *setPropertyAvatar(Tp::Avatar newValue)
01336     {
01337         return internalSetProperty(QLatin1String("Avatar"), QVariant::fromValue(newValue));
01338     }
01339 
01346     Tp::PendingVariantMap *requestAllProperties() const
01347     {
01348         return internalRequestAllProperties();
01349     }
01350 
01351 Q_SIGNALS:
01360     void AvatarChanged();
01361 
01362 protected:
01363     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01364 };
01365 }
01366 }
01367 Q_DECLARE_METATYPE(Tp::Client::AccountInterface*)
01368 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAddressingInterface*)
01369 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAvatarInterface*)


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