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

# cli-properties.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 PropertiesInterfaceInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.Properties";
    00060     }
    00061
    00069     PropertiesInterfaceInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     PropertiesInterfaceInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     PropertiesInterfaceInterface(Tp::DBusProxy *proxy);
    00097
    00105     explicit PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface);
    00106
    00114     PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
    00115
    00116 public Q_SLOTS:
    00135     inline QDBusPendingReply<Tp::PropertyValueList> GetProperties(const Tp::UIntList& properties)
    00136     {
    00137         if (!invalidationReason().isEmpty()) {
    00138             return QDBusPendingReply<Tp::PropertyValueList>(QDBusMessage::createError(
    00139                 invalidationReason(),
    00140                 invalidationMessage()
    00141             ));
    00142         }
    00143
    00144
    00145         QList<QVariant> argumentList;
    00146         argumentList << QVariant::fromValue(properties);
    00147         return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList);
    00148     }
    00149
    00161     inline QDBusPendingReply<Tp::PropertySpecList> ListProperties()
    00162     {
    00163         if (!invalidationReason().isEmpty()) {
    00164             return QDBusPendingReply<Tp::PropertySpecList>(QDBusMessage::createError(
    00165                 invalidationReason(),
    00166                 invalidationMessage()
    00167             ));
    00168         }
    00169
    00170
    00171         return asyncCall(QLatin1String("ListProperties"));
    00172     }
    00173
    00191     inline QDBusPendingReply<> SetProperties(const Tp::PropertyValueList& properties)
    00192     {
    00193         if (!invalidationReason().isEmpty()) {
    00194             return QDBusPendingReply<>(QDBusMessage::createError(
    00195                 invalidationReason(),
    00196                 invalidationMessage()
    00197             ));
    00198         }
    00199
    00200
    00201         QList<QVariant> argumentList;
    00202         argumentList << QVariant::fromValue(properties);
    00203         return asyncCallWithArgumentList(QLatin1String("SetProperties"), argumentList);
    00204     }
    00205
    00206 Q_SIGNALS:
    00222     void PropertiesChanged(const Tp::PropertyValueList& properties);
    00223
    00239     void PropertyFlagsChanged(const Tp::PropertyFlagsChangeList& properties);
    00240
    00241 protected:
    00242     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00243 };
    00244 }
    00245 }