TelepathyQt4: cli-dbus.h Source File

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

# cli-dbus.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 namespace DBus
    00039 {
    00040
    00048 class TELEPATHY_QT4_EXPORT DBusDaemonInterface : public Tp::AbstractInterface
    00049 {
    00050     Q_OBJECT
    00051
    00052 public:
    00059     static inline const char *staticInterfaceName()
    00060     {
    00061         return "org.freedesktop.DBus";
    00062     }
    00063
    00071     DBusDaemonInterface(
    00072         const QString& busName,
    00073         const QString& objectPath,
    00074         QObject* parent = 0
    00075     );
    00076
    00085     DBusDaemonInterface(
    00086         const QDBusConnection& connection,
    00087         const QString& busName,
    00088         const QString& objectPath,
    00089         QObject* parent = 0
    00090     );
    00091
    00098     DBusDaemonInterface(Tp::DBusProxy *proxy);
    00099
    00107     explicit DBusDaemonInterface(const Tp::AbstractInterface& mainInterface);
    00108
    00116     DBusDaemonInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
    00117
    00118 public Q_SLOTS:
    00122     inline QDBusPendingReply<QString> Hello()
    00123     {
    00124         if (!invalidationReason().isEmpty()) {
    00125             return QDBusPendingReply<QString>(QDBusMessage::createError(
    00126                 invalidationReason(),
    00127                 invalidationMessage()
    00128             ));
    00129         }
    00130
    00131
    00132         return asyncCall(QLatin1String("Hello"));
    00133     }
    00134
    00138     inline QDBusPendingReply<uint> RequestName(const QString& name, uint flags)
    00139     {
    00140         if (!invalidationReason().isEmpty()) {
    00141             return QDBusPendingReply<uint>(QDBusMessage::createError(
    00142                 invalidationReason(),
    00143                 invalidationMessage()
    00144             ));
    00145         }
    00146
    00147
    00148         QList<QVariant> argumentList;
    00149         argumentList << QVariant::fromValue(name) << QVariant::fromValue(flags);
    00150         return asyncCallWithArgumentList(QLatin1String("RequestName"), argumentList);
    00151     }
    00152
    00156     inline QDBusPendingReply<uint> ReleaseName(const QString& name)
    00157     {
    00158         if (!invalidationReason().isEmpty()) {
    00159             return QDBusPendingReply<uint>(QDBusMessage::createError(
    00160                 invalidationReason(),
    00161                 invalidationMessage()
    00162             ));
    00163         }
    00164
    00165
    00166         QList<QVariant> argumentList;
    00167         argumentList << QVariant::fromValue(name);
    00168         return asyncCallWithArgumentList(QLatin1String("ReleaseName"), argumentList);
    00169     }
    00170
    00174     inline QDBusPendingReply<uint> StartServiceByName(const QString& service, uint flags)
    00175     {
    00176         if (!invalidationReason().isEmpty()) {
    00177             return QDBusPendingReply<uint>(QDBusMessage::createError(
    00178                 invalidationReason(),
    00179                 invalidationMessage()
    00180             ));
    00181         }
    00182
    00183
    00184         QList<QVariant> argumentList;
    00185         argumentList << QVariant::fromValue(service) << QVariant::fromValue(flags);
    00186         return asyncCallWithArgumentList(QLatin1String("StartServiceByName"), argumentList);
    00187     }
    00188
    00192     inline QDBusPendingReply<bool> NameHasOwner(const QString& nameToCheck)
    00193     {
    00194         if (!invalidationReason().isEmpty()) {
    00195             return QDBusPendingReply<bool>(QDBusMessage::createError(
    00196                 invalidationReason(),
    00197                 invalidationMessage()
    00198             ));
    00199         }
    00200
    00201
    00202         QList<QVariant> argumentList;
    00203         argumentList << QVariant::fromValue(nameToCheck);
    00204         return asyncCallWithArgumentList(QLatin1String("NameHasOwner"), argumentList);
    00205     }
    00206
    00210     inline QDBusPendingReply<QStringList> ListNames()
    00211     {
    00212         if (!invalidationReason().isEmpty()) {
    00213             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
    00214                 invalidationReason(),
    00215                 invalidationMessage()
    00216             ));
    00217         }
    00218
    00219
    00220         return asyncCall(QLatin1String("ListNames"));
    00221     }
    00222
    00226     inline QDBusPendingReply<QStringList> ListActivatableNames()
    00227     {
    00228         if (!invalidationReason().isEmpty()) {
    00229             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
    00230                 invalidationReason(),
    00231                 invalidationMessage()
    00232             ));
    00233         }
    00234
    00235
    00236         return asyncCall(QLatin1String("ListActivatableNames"));
    00237     }
    00238
    00242     inline QDBusPendingReply<> AddMatch(const QString& rule)
    00243     {
    00244         if (!invalidationReason().isEmpty()) {
    00245             return QDBusPendingReply<>(QDBusMessage::createError(
    00246                 invalidationReason(),
    00247                 invalidationMessage()
    00248             ));
    00249         }
    00250
    00251
    00252         QList<QVariant> argumentList;
    00253         argumentList << QVariant::fromValue(rule);
    00254         return asyncCallWithArgumentList(QLatin1String("AddMatch"), argumentList);
    00255     }
    00256
    00260     inline QDBusPendingReply<> RemoveMatch(const QString& rule)
    00261     {
    00262         if (!invalidationReason().isEmpty()) {
    00263             return QDBusPendingReply<>(QDBusMessage::createError(
    00264                 invalidationReason(),
    00265                 invalidationMessage()
    00266             ));
    00267         }
    00268
    00269
    00270         QList<QVariant> argumentList;
    00271         argumentList << QVariant::fromValue(rule);
    00272         return asyncCallWithArgumentList(QLatin1String("RemoveMatch"), argumentList);
    00273     }
    00274
    00278     inline QDBusPendingReply<QString> GetNameOwner(const QString& name)
    00279     {
    00280         if (!invalidationReason().isEmpty()) {
    00281             return QDBusPendingReply<QString>(QDBusMessage::createError(
    00282                 invalidationReason(),
    00283                 invalidationMessage()
    00284             ));
    00285         }
    00286
    00287
    00288         QList<QVariant> argumentList;
    00289         argumentList << QVariant::fromValue(name);
    00290         return asyncCallWithArgumentList(QLatin1String("GetNameOwner"), argumentList);
    00291     }
    00292
    00296     inline QDBusPendingReply<QStringList> ListQueuedOwners(const QString& name)
    00297     {
    00298         if (!invalidationReason().isEmpty()) {
    00299             return QDBusPendingReply<QStringList>(QDBusMessage::createError(
    00300                 invalidationReason(),
    00301                 invalidationMessage()
    00302             ));
    00303         }
    00304
    00305
    00306         QList<QVariant> argumentList;
    00307         argumentList << QVariant::fromValue(name);
    00308         return asyncCallWithArgumentList(QLatin1String("ListQueuedOwners"), argumentList);
    00309     }
    00310
    00314     inline QDBusPendingReply<uint> GetConnectionUnixUser(const QString& connectionName)
    00315     {
    00316         if (!invalidationReason().isEmpty()) {
    00317             return QDBusPendingReply<uint>(QDBusMessage::createError(
    00318                 invalidationReason(),
    00319                 invalidationMessage()
    00320             ));
    00321         }
    00322
    00323
    00324         QList<QVariant> argumentList;
    00325         argumentList << QVariant::fromValue(connectionName);
    00326         return asyncCallWithArgumentList(QLatin1String("GetConnectionUnixUser"), argumentList);
    00327     }
    00328
    00332     inline QDBusPendingReply<uint> GetConnectionUnixProcessID(const QString& connectionName)
    00333     {
    00334         if (!invalidationReason().isEmpty()) {
    00335             return QDBusPendingReply<uint>(QDBusMessage::createError(
    00336                 invalidationReason(),
    00337                 invalidationMessage()
    00338             ));
    00339         }
    00340
    00341
    00342         QList<QVariant> argumentList;
    00343         argumentList << QVariant::fromValue(connectionName);
    00344         return asyncCallWithArgumentList(QLatin1String("GetConnectionUnixProcessID"), argumentList);
    00345     }
    00346
    00350     inline QDBusPendingReply<QByteArray> GetConnectionSELinuxSecurityContext(const QString& connectionName)
    00351     {
    00352         if (!invalidationReason().isEmpty()) {
    00353             return QDBusPendingReply<QByteArray>(QDBusMessage::createError(
    00354                 invalidationReason(),
    00355                 invalidationMessage()
    00356             ));
    00357         }
    00358
    00359
    00360         QList<QVariant> argumentList;
    00361         argumentList << QVariant::fromValue(connectionName);
    00362         return asyncCallWithArgumentList(QLatin1String("GetConnectionSELinuxSecurityContext"), argumentList);
    00363     }
    00364
    00368     inline QDBusPendingReply<> ReloadConfig()
    00369     {
    00370         if (!invalidationReason().isEmpty()) {
    00371             return QDBusPendingReply<>(QDBusMessage::createError(
    00372                 invalidationReason(),
    00373                 invalidationMessage()
    00374             ));
    00375         }
    00376
    00377
    00378         return asyncCall(QLatin1String("ReloadConfig"));
    00379     }
    00380
    00384     inline QDBusPendingReply<QString> GetId()
    00385     {
    00386         if (!invalidationReason().isEmpty()) {
    00387             return QDBusPendingReply<QString>(QDBusMessage::createError(
    00388                 invalidationReason(),
    00389                 invalidationMessage()
    00390             ));
    00391         }
    00392
    00393
    00394         return asyncCall(QLatin1String("GetId"));
    00395     }
    00396
    00397 Q_SIGNALS:
    00401     void NameOwnerChanged(const QString& name, const QString& oldOwner, const QString& newOwner);
    00402
    00406     void NameLost(const QString& name);
    00407
    00411     void NameAcquired(const QString& name);
    00412
    00413 protected:
    00414     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00415 };
    00416
    00424 class TELEPATHY_QT4_EXPORT IntrospectableInterface : public Tp::AbstractInterface
    00425 {
    00426     Q_OBJECT
    00427
    00428 public:
    00435     static inline const char *staticInterfaceName()
    00436     {
    00437         return "org.freedesktop.DBus.Introspectable";
    00438     }
    00439
    00447     IntrospectableInterface(
    00448         const QString& busName,
    00449         const QString& objectPath,
    00450         QObject* parent = 0
    00451     );
    00452
    00461     IntrospectableInterface(
    00462         const QDBusConnection& connection,
    00463         const QString& busName,
    00464         const QString& objectPath,
    00465         QObject* parent = 0
    00466     );
    00467
    00474     IntrospectableInterface(Tp::DBusProxy *proxy);
    00475
    00483     explicit IntrospectableInterface(const Tp::AbstractInterface& mainInterface);
    00484
    00492     IntrospectableInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
    00493
    00494 public Q_SLOTS:
    00498     inline QDBusPendingReply<QString> Introspect()
    00499     {
    00500         if (!invalidationReason().isEmpty()) {
    00501             return QDBusPendingReply<QString>(QDBusMessage::createError(
    00502                 invalidationReason(),
    00503                 invalidationMessage()
    00504             ));
    00505         }
    00506
    00507
    00508         return asyncCall(QLatin1String("Introspect"));
    00509     }
    00510
    00511 protected:
    00512     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00513 };
    00514
    00522 class TELEPATHY_QT4_EXPORT PeerInterface : public Tp::AbstractInterface
    00523 {
    00524     Q_OBJECT
    00525
    00526 public:
    00533     static inline const char *staticInterfaceName()
    00534     {
    00535         return "org.freedesktop.DBus.Peer";
    00536     }
    00537
    00545     PeerInterface(
    00546         const QString& busName,
    00547         const QString& objectPath,
    00548         QObject* parent = 0
    00549     );
    00550
    00559     PeerInterface(
    00560         const QDBusConnection& connection,
    00561         const QString& busName,
    00562         const QString& objectPath,
    00563         QObject* parent = 0
    00564     );
    00565
    00572     PeerInterface(Tp::DBusProxy *proxy);
    00573
    00581     explicit PeerInterface(const Tp::AbstractInterface& mainInterface);
    00582
    00590     PeerInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
    00591
    00592 public Q_SLOTS:
    00596     inline QDBusPendingReply<> Ping()
    00597     {
    00598         if (!invalidationReason().isEmpty()) {
    00599             return QDBusPendingReply<>(QDBusMessage::createError(
    00600                 invalidationReason(),
    00601                 invalidationMessage()
    00602             ));
    00603         }
    00604
    00605
    00606         return asyncCall(QLatin1String("Ping"));
    00607     }
    00608
    00612     inline QDBusPendingReply<QString> GetMachineId()
    00613     {
    00614         if (!invalidationReason().isEmpty()) {
    00615             return QDBusPendingReply<QString>(QDBusMessage::createError(
    00616                 invalidationReason(),
    00617                 invalidationMessage()
    00618             ));
    00619         }
    00620
    00621
    00622         return asyncCall(QLatin1String("GetMachineId"));
    00623     }
    00624
    00625 protected:
    00626     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00627 };
    00628
    00636 class TELEPATHY_QT4_EXPORT PropertiesInterface : public Tp::AbstractInterface
    00637 {
    00638     Q_OBJECT
    00639
    00640 public:
    00647     static inline const char *staticInterfaceName()
    00648     {
    00649         return "org.freedesktop.DBus.Properties";
    00650     }
    00651
    00659     PropertiesInterface(
    00660         const QString& busName,
    00661         const QString& objectPath,
    00662         QObject* parent = 0
    00663     );
    00664
    00673     PropertiesInterface(
    00674         const QDBusConnection& connection,
    00675         const QString& busName,
    00676         const QString& objectPath,
    00677         QObject* parent = 0
    00678     );
    00679
    00686     PropertiesInterface(Tp::DBusProxy *proxy);
    00687
    00695     explicit PropertiesInterface(const Tp::AbstractInterface& mainInterface);
    00696
    00704     PropertiesInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
    00705
    00706 public Q_SLOTS:
    00710     inline QDBusPendingReply<QDBusVariant> Get(const QString& interfaceName, const QString& propertyName)
    00711     {
    00712         if (!invalidationReason().isEmpty()) {
    00713             return QDBusPendingReply<QDBusVariant>(QDBusMessage::createError(
    00714                 invalidationReason(),
    00715                 invalidationMessage()
    00716             ));
    00717         }
    00718
    00719
    00720         QList<QVariant> argumentList;
    00721         argumentList << QVariant::fromValue(interfaceName) << QVariant::fromValue(propertyName);
    00722         return asyncCallWithArgumentList(QLatin1String("Get"), argumentList);
    00723     }
    00724
    00728     inline QDBusPendingReply<> Set(const QString& interfaceName, const QString& propertyName, const QDBusVariant& value)
    00729     {
    00730         if (!invalidationReason().isEmpty()) {
    00731             return QDBusPendingReply<>(QDBusMessage::createError(
    00732                 invalidationReason(),
    00733                 invalidationMessage()
    00734             ));
    00735         }
    00736
    00737
    00738         QList<QVariant> argumentList;
    00739         argumentList << QVariant::fromValue(interfaceName) << QVariant::fromValue(propertyName) << QVariant::fromValue(value);
    00740         return asyncCallWithArgumentList(QLatin1String("Set"), argumentList);
    00741     }
    00742
    00746     inline QDBusPendingReply<QVariantMap> GetAll(const QString& interfaceName)
    00747     {
    00748         if (!invalidationReason().isEmpty()) {
    00749             return QDBusPendingReply<QVariantMap>(QDBusMessage::createError(
    00750                 invalidationReason(),
    00751                 invalidationMessage()
    00752             ));
    00753         }
    00754
    00755
    00756         QList<QVariant> argumentList;
    00757         argumentList << QVariant::fromValue(interfaceName);
    00758         return asyncCallWithArgumentList(QLatin1String("GetAll"), argumentList);
    00759     }
    00760
    00761 protected:
    00762     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00763 };
    00764 }
    00765 }
    00766 }