| 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 // basically the same as GLib's G_GNUC_DEPRECATED
    00027 #ifndef TELEPATHY_GNUC_DEPRECATED
    00028 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
    00029 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
    00030 #   else
    00031 #       define TELEPATHY_GNUC_DEPRECATED
    00032 #   endif
    00033 #endif
    00034 namespace Tp
    00035 {
    00036 namespace Client
    00037 {
    00038
    00046 class TELEPATHY_QT4_EXPORT AccountInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.Account";
    00060     }
    00061
    00069     AccountInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     AccountInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     AccountInterface(Tp::DBusProxy *proxy);
    00097
    00103     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00104
    00105
    00113     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00114     {
    00115         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00116     }
    00117
    00128     Q_PROPERTY(QString DisplayName READ DisplayName WRITE setDisplayName)
    00129
    00130
    00138     inline QString DisplayName() const TELEPATHY_GNUC_DEPRECATED
    00139     {
    00140         return qvariant_cast<QString>(internalPropGet("DisplayName"));
    00141     }
    00142
    00150     inline void setDisplayName(const QString& newValue) TELEPATHY_GNUC_DEPRECATED
    00151     {
    00152         internalPropSet("DisplayName", QVariant::fromValue(newValue));
    00153     }
    00154
    00167     Q_PROPERTY(QString Icon READ Icon WRITE setIcon)
    00168
    00169
    00177     inline QString Icon() const TELEPATHY_GNUC_DEPRECATED
    00178     {
    00179         return qvariant_cast<QString>(internalPropGet("Icon"));
    00180     }
    00181
    00189     inline void setIcon(const QString& newValue) TELEPATHY_GNUC_DEPRECATED
    00190     {
    00191         internalPropSet("Icon", QVariant::fromValue(newValue));
    00192     }
    00193
    00209     Q_PROPERTY(bool Valid READ Valid)
    00210
    00211
    00219     inline bool Valid() const TELEPATHY_GNUC_DEPRECATED
    00220     {
    00221         return qvariant_cast<bool>(internalPropGet("Valid"));
    00222     }
    00223
    00256     Q_PROPERTY(bool Enabled READ Enabled WRITE setEnabled)
    00257
    00258
    00266     inline bool Enabled() const TELEPATHY_GNUC_DEPRECATED
    00267     {
    00268         return qvariant_cast<bool>(internalPropGet("Enabled"));
    00269     }
    00270
    00278     inline void setEnabled(bool newValue) TELEPATHY_GNUC_DEPRECATED
    00279     {
    00280         internalPropSet("Enabled", QVariant::fromValue(newValue));
    00281     }
    00282
    00296     Q_PROPERTY(QString Nickname READ Nickname WRITE setNickname)
    00297
    00298
    00306     inline QString Nickname() const TELEPATHY_GNUC_DEPRECATED
    00307     {
    00308         return qvariant_cast<QString>(internalPropGet("Nickname"));
    00309     }
    00310
    00318     inline void setNickname(const QString& newValue) TELEPATHY_GNUC_DEPRECATED
    00319     {
    00320         internalPropSet("Nickname", QVariant::fromValue(newValue));
    00321     }
    00322
    00339     Q_PROPERTY(QVariantMap Parameters READ Parameters)
    00340
    00341
    00349     inline QVariantMap Parameters() const TELEPATHY_GNUC_DEPRECATED
    00350     {
    00351         return qvariant_cast<QVariantMap>(internalPropGet("Parameters"));
    00352     }
    00353
    00372     Q_PROPERTY(Tp::SimplePresence AutomaticPresence READ AutomaticPresence WRITE setAutomaticPresence)
    00373
    00374
    00382     inline Tp::SimplePresence AutomaticPresence() const TELEPATHY_GNUC_DEPRECATED
    00383     {
    00384         return qvariant_cast<Tp::SimplePresence>(internalPropGet("AutomaticPresence"));
    00385     }
    00386
    00394     inline void setAutomaticPresence(const Tp::SimplePresence& newValue) TELEPATHY_GNUC_DEPRECATED
    00395     {
    00396         internalPropSet("AutomaticPresence", QVariant::fromValue(newValue));
    00397     }
    00398
    00412     Q_PROPERTY(bool ConnectAutomatically READ ConnectAutomatically WRITE setConnectAutomatically)
    00413
    00414
    00422     inline bool ConnectAutomatically() const TELEPATHY_GNUC_DEPRECATED
    00423     {
    00424         return qvariant_cast<bool>(internalPropGet("ConnectAutomatically"));
    00425     }
    00426
    00434     inline void setConnectAutomatically(bool newValue) TELEPATHY_GNUC_DEPRECATED
    00435     {
    00436         internalPropSet("ConnectAutomatically", QVariant::fromValue(newValue));
    00437     }
    00438
    00454     Q_PROPERTY(QDBusObjectPath Connection READ Connection)
    00455
    00456
    00464     inline QDBusObjectPath Connection() const TELEPATHY_GNUC_DEPRECATED
    00465     {
    00466         return qvariant_cast<QDBusObjectPath>(internalPropGet("Connection"));
    00467     }
    00468
    00483     Q_PROPERTY(uint ConnectionStatus READ ConnectionStatus)
    00484
    00485
    00493     inline uint ConnectionStatus() const TELEPATHY_GNUC_DEPRECATED
    00494     {
    00495         return qvariant_cast<uint>(internalPropGet("ConnectionStatus"));
    00496     }
    00497
    00507     Q_PROPERTY(uint ConnectionStatusReason READ ConnectionStatusReason)
    00508
    00509
    00517     inline uint ConnectionStatusReason() const TELEPATHY_GNUC_DEPRECATED
    00518     {
    00519         return qvariant_cast<uint>(internalPropGet("ConnectionStatusReason"));
    00520     }
    00521
    00533     Q_PROPERTY(Tp::SimplePresence CurrentPresence READ CurrentPresence)
    00534
    00535
    00543     inline Tp::SimplePresence CurrentPresence() const TELEPATHY_GNUC_DEPRECATED
    00544     {
    00545         return qvariant_cast<Tp::SimplePresence>(internalPropGet("CurrentPresence"));
    00546     }
    00547
    00567     Q_PROPERTY(Tp::SimplePresence RequestedPresence READ RequestedPresence WRITE setRequestedPresence)
    00568
    00569
    00577     inline Tp::SimplePresence RequestedPresence() const TELEPATHY_GNUC_DEPRECATED
    00578     {
    00579         return qvariant_cast<Tp::SimplePresence>(internalPropGet("RequestedPresence"));
    00580     }
    00581
    00589     inline void setRequestedPresence(const Tp::SimplePresence& newValue) TELEPATHY_GNUC_DEPRECATED
    00590     {
    00591         internalPropSet("RequestedPresence", QVariant::fromValue(newValue));
    00592     }
    00593
    00625     Q_PROPERTY(QString NormalizedName READ NormalizedName)
    00626
    00627
    00635     inline QString NormalizedName() const TELEPATHY_GNUC_DEPRECATED
    00636     {
    00637         return qvariant_cast<QString>(internalPropGet("NormalizedName"));
    00638     }
    00639
    00650     Q_PROPERTY(bool HasBeenOnline READ HasBeenOnline)
    00651
    00652
    00660     inline bool HasBeenOnline() const TELEPATHY_GNUC_DEPRECATED
    00661     {
    00662         return qvariant_cast<bool>(internalPropGet("HasBeenOnline"));
    00663     }
    00664
    00665 public Q_SLOTS:
    00671     inline QDBusPendingReply<> Remove()
    00672     {
    00673         if (!invalidationReason().isEmpty()) {
    00674             return QDBusPendingReply<>(QDBusMessage::createError(
    00675                 invalidationReason(),
    00676                 invalidationMessage()
    00677             ));
    00678         }
    00679
    00680
    00681         return asyncCall(QLatin1String("Remove"));
    00682     }
    00683
    00726     inline QDBusPendingReply<QStringList> UpdateParameters(const QVariantMap& set, const QStringList& unset)
    00727     {
    00728         if (!invalidationReason().isEmpty()) {
    00729             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
    00730                 invalidationReason(),
    00731                 invalidationMessage()
    00732             ));
    00733         }
    00734
    00735
    00736         QList<QVariant> argumentList;
    00737         argumentList << QVariant::fromValue(set) << QVariant::fromValue(unset);
    00738         return asyncCallWithArgumentList(QLatin1String("UpdateParameters"), argumentList);
    00739     }
    00740
    00775     inline QDBusPendingReply<> Reconnect()
    00776     {
    00777         if (!invalidationReason().isEmpty()) {
    00778             return QDBusPendingReply<>(QDBusMessage::createError(
    00779                 invalidationReason(),
    00780                 invalidationMessage()
    00781             ));
    00782         }
    00783
    00784
    00785         return asyncCall(QLatin1String("Reconnect"));
    00786     }
    00787
    00788 Q_SIGNALS:
    00798     void Removed();
    00799
    00814     void AccountPropertyChanged(const QVariantMap& properties);
    00815
    00816 protected:
    00817     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00818 };
    00819
    00827 class TELEPATHY_QT4_EXPORT AccountInterfaceAvatarInterface : public Tp::AbstractInterface
    00828 {
    00829     Q_OBJECT
    00830
    00831 public:
    00838     static inline const char *staticInterfaceName()
    00839     {
    00840         return "org.freedesktop.Telepathy.Account.Interface.Avatar";
    00841     }
    00842
    00850     AccountInterfaceAvatarInterface(
    00851         const QString& busName,
    00852         const QString& objectPath,
    00853         QObject* parent = 0
    00854     );
    00855
    00864     AccountInterfaceAvatarInterface(
    00865         const QDBusConnection& connection,
    00866         const QString& busName,
    00867         const QString& objectPath,
    00868         QObject* parent = 0
    00869     );
    00870
    00877     AccountInterfaceAvatarInterface(Tp::DBusProxy *proxy);
    00878
    00886     explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
    00887
    00895     AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
    00896
    00907     Q_PROPERTY(Tp::Avatar Avatar READ Avatar WRITE setAvatar)
    00908
    00909
    00917     inline Tp::Avatar Avatar() const TELEPATHY_GNUC_DEPRECATED
    00918     {
    00919         return qvariant_cast<Tp::Avatar>(internalPropGet("Avatar"));
    00920     }
    00921
    00929     inline void setAvatar(const Tp::Avatar& newValue) TELEPATHY_GNUC_DEPRECATED
    00930     {
    00931         internalPropSet("Avatar", QVariant::fromValue(newValue));
    00932     }
    00933
    00934 Q_SIGNALS:
    00943     void AvatarChanged();
    00944
    00945 protected:
    00946     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00947 };
    00948 }
    00949 }