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 namespace Tp{
00027 class PendingVariant;
00028 class PendingOperation;
00029 }
00030 
00031 // FIXME: (API/ABI break) Remove definition of TELEPATHY_GNUC_DEPRECATED
00032 
00033 // basically the same as GLib's G_GNUC_DEPRECATED
00034 #ifndef TELEPATHY_GNUC_DEPRECATED
00035 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
00036 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
00037 #   else
00038 #       define TELEPATHY_GNUC_DEPRECATED
00039 #   endif
00040 #endif
00041 namespace Tp
00042 {
00043 namespace Client
00044 {
00045 
00053 class TELEPATHY_QT4_EXPORT PropertiesInterfaceInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.Properties";
00067     }
00068 
00076     PropertiesInterfaceInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     PropertiesInterfaceInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     PropertiesInterfaceInterface(Tp::DBusProxy *proxy);
00104 
00112     explicit PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface);
00113 
00121     PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
00122 
00129     Tp::PendingVariantMap *requestAllProperties() const
00130     {
00131         return internalRequestAllProperties();
00132     }
00133 
00134 public Q_SLOTS:
00153     inline QDBusPendingReply<Tp::PropertyValueList> GetProperties(const Tp::UIntList& properties)
00154     {
00155         if (!invalidationReason().isEmpty()) {
00156             return QDBusPendingReply<Tp::PropertyValueList>(QDBusMessage::createError(
00157                 invalidationReason(),
00158                 invalidationMessage()
00159             ));
00160         }
00161 
00162         QList<QVariant> argumentList;
00163         argumentList << QVariant::fromValue(properties);
00164         return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList);
00165     }
00166 
00178     inline QDBusPendingReply<Tp::PropertySpecList> ListProperties()
00179     {
00180         if (!invalidationReason().isEmpty()) {
00181             return QDBusPendingReply<Tp::PropertySpecList>(QDBusMessage::createError(
00182                 invalidationReason(),
00183                 invalidationMessage()
00184             ));
00185         }
00186 
00187         return asyncCall(QLatin1String("ListProperties"));
00188     }
00189 
00207     inline QDBusPendingReply<> SetProperties(const Tp::PropertyValueList& properties)
00208     {
00209         if (!invalidationReason().isEmpty()) {
00210             return QDBusPendingReply<>(QDBusMessage::createError(
00211                 invalidationReason(),
00212                 invalidationMessage()
00213             ));
00214         }
00215 
00216         QList<QVariant> argumentList;
00217         argumentList << QVariant::fromValue(properties);
00218         return asyncCallWithArgumentList(QLatin1String("SetProperties"), argumentList);
00219     }
00220 
00221 Q_SIGNALS:
00237     void PropertiesChanged(const Tp::PropertyValueList& properties);
00238 
00254     void PropertyFlagsChanged(const Tp::PropertyFlagsChangeList& properties);
00255 
00256 protected:
00257     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00258 };
00259 }
00260 }
00261 Q_DECLARE_METATYPE(Tp::Client::PropertiesInterfaceInterface*)


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