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 AccountInterfaceAvatarInterface : public Tp::AbstractInterface
01084 {
01085     Q_OBJECT
01086 
01087 public:
01094     static inline QLatin1String staticInterfaceName()
01095     {
01096         return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Avatar");
01097     }
01098 
01106     AccountInterfaceAvatarInterface(
01107         const QString& busName,
01108         const QString& objectPath,
01109         QObject* parent = 0
01110     );
01111 
01120     AccountInterfaceAvatarInterface(
01121         const QDBusConnection& connection,
01122         const QString& busName,
01123         const QString& objectPath,
01124         QObject* parent = 0
01125     );
01126 
01133     AccountInterfaceAvatarInterface(Tp::DBusProxy *proxy);
01134 
01142     explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
01143 
01151     AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
01152 
01167     inline Tp::PendingVariant *requestPropertyAvatar() const
01168     {
01169         return internalRequestProperty(QLatin1String("Avatar"));
01170     }
01171 
01186     inline Tp::PendingOperation *setPropertyAvatar(Tp::Avatar newValue)
01187     {
01188         return internalSetProperty(QLatin1String("Avatar"), QVariant::fromValue(newValue));
01189     }
01190 
01197     Tp::PendingVariantMap *requestAllProperties() const
01198     {
01199         return internalRequestAllProperties();
01200     }
01201 
01202 Q_SIGNALS:
01211     void AvatarChanged();
01212 
01213 protected:
01214     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01215 };
01216 }
01217 }
01218 Q_DECLARE_METATYPE(Tp::Client::AccountInterface*)
01219 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAvatarInterface*)


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