X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fqml-client%2Fproxy.h;fp=src%2Fqml-client%2Fproxy.h;h=66901496826e25be11892d5d40a18e439f28e9b6;hb=df37f9235ec253566e7f88017c1775d34fe1392a;hp=0000000000000000000000000000000000000000;hpb=711f20225524f059da9296f814a06ab9332bb324;p=qtrapids diff --git a/src/qml-client/proxy.h b/src/qml-client/proxy.h new file mode 100644 index 0000000..6690149 --- /dev/null +++ b/src/qml-client/proxy.h @@ -0,0 +1,90 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -a server -c QtRapidsServer -i qtrapids/dbus.hpp -p proxy /home/lassi/Projects/qtrapids/trunk/dbus/com.ixonos.qtrapids.xml + * + * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#ifndef PROXY_H_1327258740 +#define PROXY_H_1327258740 + +#include +#include +#include +#include +#include +#include +#include +#include +#include "qtrapids/dbus.hpp" + +/* + * Proxy class for interface com.ixonos.qtrapids + */ +class QtRapidsServer: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "com.ixonos.qtrapids"; } + +public: + QtRapidsServer(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~QtRapidsServer(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> addTorrent(const QString &path, const QString &save_path, qtrapids::ParamsMap_t other_params) + { + QList argumentList; + argumentList << qVariantFromValue(path) << qVariantFromValue(save_path) << qVariantFromValue(other_params); + return asyncCallWithArgumentList(QLatin1String("addTorrent"), argumentList); + } + + inline QDBusPendingReply getOptions() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("getOptions"), argumentList); + } + + inline QDBusPendingReply<> getState() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("getState"), argumentList); + } + + inline QDBusPendingReply<> removeTorrent(const QString &hash) + { + QList argumentList; + argumentList << qVariantFromValue(hash); + return asyncCallWithArgumentList(QLatin1String("removeTorrent"), argumentList); + } + + inline QDBusPendingReply<> setOptions(qtrapids::ParamsMap_t options) + { + QList argumentList; + argumentList << qVariantFromValue(options); + return asyncCallWithArgumentList(QLatin1String("setOptions"), argumentList); + } + + inline QDBusPendingReply<> terminateSession() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("terminateSession"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void alert(qtrapids::TorrentState info, qtrapids::ParamsMap_t other_info); + void sessionTerminated(); + void terminate(); +}; + +namespace com { + namespace ixonos { + typedef ::QtRapidsServer qtrapids; + } +} +#endif