diff options
author | Adrien BUSTANY <madcat@mymadcat.com> | 2008-05-06 20:14:22 +0200 |
---|---|---|
committer | Adrien BUSTANY <madcat@mymadcat.com> | 2008-05-06 20:14:22 +0200 |
commit | d8d4f314af5668fee862c5f959b00a02095e5690 (patch) | |
tree | 163258bc12a06a1d819466c16a43a2db6e2f72b0 /lib/CentralProxy.h | |
parent | 4157b7e82e1a6774e3922ff1a567fd6f524f383f (diff) |
Generate the proxies, still no code behind
Diffstat (limited to 'lib/CentralProxy.h')
-rw-r--r-- | lib/CentralProxy.h | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/lib/CentralProxy.h b/lib/CentralProxy.h new file mode 100644 index 0000000..aeb2d8e --- /dev/null +++ b/lib/CentralProxy.h @@ -0,0 +1,105 @@ +/* + * This file was generated by dbusxml2cpp version 0.6 + * Command line was: dbusxml2cpp -c CentralProxy -p CentralProxy.h /home/madcat/code/packagekit/src/pk-interface.xml org.freedesktop.PackageKit + * + * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#ifndef CENTRALPROXY_H_1210097366 +#define CENTRALPROXY_H_1210097366 + +#include <QtCore/QObject> +#include <QtCore/QByteArray> +#include <QtCore/QList> +#include <QtCore/QMap> +#include <QtCore/QString> +#include <QtCore/QStringList> +#include <QtCore/QVariant> +#include <QtDBus/QtDBus> + +namespace PackageKit { + +/* + * Proxy class for interface org.freedesktop.PackageKit + */ +class CentralProxy: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.freedesktop.PackageKit"; } + +public: + CentralProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~CentralProxy(); + +public Q_SLOTS: // METHODS + inline QDBusReply<QString> GetActions() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("GetActions"), argumentList); + } + + inline QDBusReply<QString> GetBackendDetail(QString &author) + { + QList<QVariant> argumentList; + QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("GetBackendDetail"), argumentList); + if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { + author = qdbus_cast<QString>(reply.arguments().at(1)); + } + return reply; + } + + inline QDBusReply<QString> GetFilters() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("GetFilters"), argumentList); + } + + inline QDBusReply<QString> GetGroups() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("GetGroups"), argumentList); + } + + inline QDBusReply<QString> GetTid() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("GetTid"), argumentList); + } + + inline QDBusReply<uint> GetTimeSinceAction(const QString &role) + { + QList<QVariant> argumentList; + argumentList << qVariantFromValue(role); + return callWithArgumentList(QDBus::Block, QLatin1String("GetTimeSinceAction"), argumentList); + } + + inline QDBusReply<QStringList> GetTransactionList() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("GetTransactionList"), argumentList); + } + + inline QDBusReply<void> StateHasChanged() + { + QList<QVariant> argumentList; + return callWithArgumentList(QDBus::Block, QLatin1String("StateHasChanged"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void Locked(bool is_locked); + void RepoListChanged(); + void RestartSchedule(); + void TransactionListChanged(const QStringList &transactions); + void UpdatesChanged(); +}; + +} // End namespace PackageKit + +#endif + |