diff --git a/.gitignore b/.gitignore
index 6421e37..d08653f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,11 +11,6 @@ qdoc/html/
.clangd/
.cache/
compile_commands.json
-/src/interface/ndb_adapter.h
-/src/interface/ndb_adapter.cpp
-/src/interface/ndb_proxy.h
-/src/interface/ndb_proxy.cpp
-/src/interface/com.github.shermp.nickeldbus.xml
/res/ndb_version
/KoboRoot.tgz
/libndb.so
diff --git a/Makefile b/Makefile
index df1584d..5726e64 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ override KOBOROOT += $(UNINSTALL_FILE):/mnt/onboard/.adds/nickeldbus
override UNINSTALL_FILE := res/ndb_version
-override GENERATED += $(ADAPTER) $(ADAPTER:h=cpp) $(PROXY) $(PROXY:h=cpp) $(DBUS_IFACE_XML) $(UNINSTALL_FILE)
+override GENERATED += $(UNINSTALL_FILE)
override GITIGNORE += $(PROXY:h=moc) $(PROXY:h=o) $(PROXY:h=moc.o) qdoc/html/
diff --git a/src/interface/com.github.shermp.nickeldbus.xml b/src/interface/com.github.shermp.nickeldbus.xml
new file mode 100644
index 0000000..aa6e715
--- /dev/null
+++ b/src/interface/com.github.shermp.nickeldbus.xml
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/interface/ndb_adapter.cpp b/src/interface/ndb_adapter.cpp
new file mode 100644
index 0000000..4b40232
--- /dev/null
+++ b/src/interface/ndb_adapter.cpp
@@ -0,0 +1,349 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -c NDBAdapter -a ndb_adapter com.github.shermp.nickeldbus.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "ndb_adapter.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+/*
+ * Implementation of adaptor class NDBAdapter
+ */
+
+NDBAdapter::NDBAdapter(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+NDBAdapter::~NDBAdapter()
+{
+ // destructor
+}
+
+void NDBAdapter::bwmOpenBrowser()
+{
+ // handle method call com.github.shermp.nickeldbus.bwmOpenBrowser
+ QMetaObject::invokeMethod(parent(), "bwmOpenBrowser");
+}
+
+void NDBAdapter::bwmOpenBrowser(bool modal)
+{
+ // handle method call com.github.shermp.nickeldbus.bwmOpenBrowser
+ QMetaObject::invokeMethod(parent(), "bwmOpenBrowser", Q_ARG(bool, modal));
+}
+
+void NDBAdapter::bwmOpenBrowser(bool modal, const QString &url)
+{
+ // handle method call com.github.shermp.nickeldbus.bwmOpenBrowser
+ QMetaObject::invokeMethod(parent(), "bwmOpenBrowser", Q_ARG(bool, modal), Q_ARG(QString, url));
+}
+
+void NDBAdapter::bwmOpenBrowser(bool modal, const QString &url, const QString &css)
+{
+ // handle method call com.github.shermp.nickeldbus.bwmOpenBrowser
+ QMetaObject::invokeMethod(parent(), "bwmOpenBrowser", Q_ARG(bool, modal), Q_ARG(QString, url), Q_ARG(QString, css));
+}
+
+void NDBAdapter::dlgConfirmAccept(const QString &title, const QString &body, const QString &acceptText)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmAccept
+ QMetaObject::invokeMethod(parent(), "dlgConfirmAccept", Q_ARG(QString, title), Q_ARG(QString, body), Q_ARG(QString, acceptText));
+}
+
+void NDBAdapter::dlgConfirmAcceptReject(const QString &title, const QString &body, const QString &acceptText, const QString &rejectText)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmAcceptReject
+ QMetaObject::invokeMethod(parent(), "dlgConfirmAcceptReject", Q_ARG(QString, title), Q_ARG(QString, body), Q_ARG(QString, acceptText), Q_ARG(QString, rejectText));
+}
+
+void NDBAdapter::dlgConfirmClose()
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmClose
+ QMetaObject::invokeMethod(parent(), "dlgConfirmClose");
+}
+
+void NDBAdapter::dlgConfirmCreate()
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmCreate
+ QMetaObject::invokeMethod(parent(), "dlgConfirmCreate");
+}
+
+void NDBAdapter::dlgConfirmCreate(bool createLineEdit)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmCreate
+ QMetaObject::invokeMethod(parent(), "dlgConfirmCreate", Q_ARG(bool, createLineEdit));
+}
+
+void NDBAdapter::dlgConfirmNoBtn(const QString &title, const QString &body)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmNoBtn
+ QMetaObject::invokeMethod(parent(), "dlgConfirmNoBtn", Q_ARG(QString, title), Q_ARG(QString, body));
+}
+
+void NDBAdapter::dlgConfirmReject(const QString &title, const QString &body, const QString &rejectText)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmReject
+ QMetaObject::invokeMethod(parent(), "dlgConfirmReject", Q_ARG(QString, title), Q_ARG(QString, body), Q_ARG(QString, rejectText));
+}
+
+void NDBAdapter::dlgConfirmSetAccept(const QString &acceptText)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetAccept
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetAccept", Q_ARG(QString, acceptText));
+}
+
+void NDBAdapter::dlgConfirmSetBody(const QString &body)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetBody
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetBody", Q_ARG(QString, body));
+}
+
+void NDBAdapter::dlgConfirmSetLEPassword(bool password)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetLEPassword
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetLEPassword", Q_ARG(bool, password));
+}
+
+void NDBAdapter::dlgConfirmSetLEPlaceholder(const QString &placeholder)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetLEPlaceholder
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetLEPlaceholder", Q_ARG(QString, placeholder));
+}
+
+void NDBAdapter::dlgConfirmSetModal(bool modal)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetModal
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetModal", Q_ARG(bool, modal));
+}
+
+void NDBAdapter::dlgConfirmSetProgress(int min, int max, int val)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetProgress
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetProgress", Q_ARG(int, min), Q_ARG(int, max), Q_ARG(int, val));
+}
+
+void NDBAdapter::dlgConfirmSetProgress(int min, int max, int val, const QString &format)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetProgress
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetProgress", Q_ARG(int, min), Q_ARG(int, max), Q_ARG(int, val), Q_ARG(QString, format));
+}
+
+void NDBAdapter::dlgConfirmSetReject(const QString &rejectText)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetReject
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetReject", Q_ARG(QString, rejectText));
+}
+
+void NDBAdapter::dlgConfirmSetTitle(const QString &title)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmSetTitle
+ QMetaObject::invokeMethod(parent(), "dlgConfirmSetTitle", Q_ARG(QString, title));
+}
+
+void NDBAdapter::dlgConfirmShow()
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmShow
+ QMetaObject::invokeMethod(parent(), "dlgConfirmShow");
+}
+
+void NDBAdapter::dlgConfirmShowClose(bool show)
+{
+ // handle method call com.github.shermp.nickeldbus.dlgConfirmShowClose
+ QMetaObject::invokeMethod(parent(), "dlgConfirmShowClose", Q_ARG(bool, show));
+}
+
+QString NDBAdapter::imgSizeForType(const QString &type)
+{
+ // handle method call com.github.shermp.nickeldbus.imgSizeForType
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "imgSizeForType", Q_RETURN_ARG(QString, out0), Q_ARG(QString, type));
+ return out0;
+}
+
+void NDBAdapter::mwcHome()
+{
+ // handle method call com.github.shermp.nickeldbus.mwcHome
+ QMetaObject::invokeMethod(parent(), "mwcHome");
+}
+
+void NDBAdapter::mwcToast(int toastDuration, const QString &msgMain)
+{
+ // handle method call com.github.shermp.nickeldbus.mwcToast
+ QMetaObject::invokeMethod(parent(), "mwcToast", Q_ARG(int, toastDuration), Q_ARG(QString, msgMain));
+}
+
+void NDBAdapter::mwcToast(int toastDuration, const QString &msgMain, const QString &msgSub)
+{
+ // handle method call com.github.shermp.nickeldbus.mwcToast
+ QMetaObject::invokeMethod(parent(), "mwcToast", Q_ARG(int, toastDuration), Q_ARG(QString, msgMain), Q_ARG(QString, msgSub));
+}
+
+void NDBAdapter::n3fssSyncBoth()
+{
+ // handle method call com.github.shermp.nickeldbus.n3fssSyncBoth
+ QMetaObject::invokeMethod(parent(), "n3fssSyncBoth");
+}
+
+void NDBAdapter::n3fssSyncOnboard()
+{
+ // handle method call com.github.shermp.nickeldbus.n3fssSyncOnboard
+ QMetaObject::invokeMethod(parent(), "n3fssSyncOnboard");
+}
+
+void NDBAdapter::n3fssSyncSD()
+{
+ // handle method call com.github.shermp.nickeldbus.n3fssSyncSD
+ QMetaObject::invokeMethod(parent(), "n3fssSyncSD");
+}
+
+QString NDBAdapter::ndbCurrentView()
+{
+ // handle method call com.github.shermp.nickeldbus.ndbCurrentView
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "ndbCurrentView", Q_RETURN_ARG(QString, out0));
+ return out0;
+}
+
+QString NDBAdapter::ndbFirmwareVersion()
+{
+ // handle method call com.github.shermp.nickeldbus.ndbFirmwareVersion
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "ndbFirmwareVersion", Q_RETURN_ARG(QString, out0));
+ return out0;
+}
+
+QString NDBAdapter::ndbNickelClassDetails(const QString &staticMmetaobjectSymbol)
+{
+ // handle method call com.github.shermp.nickeldbus.ndbNickelClassDetails
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "ndbNickelClassDetails", Q_RETURN_ARG(QString, out0), Q_ARG(QString, staticMmetaobjectSymbol));
+ return out0;
+}
+
+QString NDBAdapter::ndbNickelWidgets()
+{
+ // handle method call com.github.shermp.nickeldbus.ndbNickelWidgets
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "ndbNickelWidgets", Q_RETURN_ARG(QString, out0));
+ return out0;
+}
+
+bool NDBAdapter::ndbSignalConnected(const QString &signalName)
+{
+ // handle method call com.github.shermp.nickeldbus.ndbSignalConnected
+ bool out0;
+ QMetaObject::invokeMethod(parent(), "ndbSignalConnected", Q_RETURN_ARG(bool, out0), Q_ARG(QString, signalName));
+ return out0;
+}
+
+QString NDBAdapter::ndbVersion()
+{
+ // handle method call com.github.shermp.nickeldbus.ndbVersion
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "ndbVersion", Q_RETURN_ARG(QString, out0));
+ return out0;
+}
+
+void NDBAdapter::ndbWifiKeepalive(bool keepalive)
+{
+ // handle method call com.github.shermp.nickeldbus.ndbWifiKeepalive
+ QMetaObject::invokeMethod(parent(), "ndbWifiKeepalive", Q_ARG(bool, keepalive));
+}
+
+void NDBAdapter::nsAutoUSBGadget(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsAutoUSBGadget
+ QMetaObject::invokeMethod(parent(), "nsAutoUSBGadget", Q_ARG(QString, action));
+}
+
+void NDBAdapter::nsDarkMode(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsDarkMode
+ QMetaObject::invokeMethod(parent(), "nsDarkMode", Q_ARG(QString, action));
+}
+
+void NDBAdapter::nsForceWifi(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsForceWifi
+ QMetaObject::invokeMethod(parent(), "nsForceWifi", Q_ARG(QString, action));
+}
+
+void NDBAdapter::nsInvert(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsInvert
+ QMetaObject::invokeMethod(parent(), "nsInvert", Q_ARG(QString, action));
+}
+
+void NDBAdapter::nsLockscreen(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsLockscreen
+ QMetaObject::invokeMethod(parent(), "nsLockscreen", Q_ARG(QString, action));
+}
+
+void NDBAdapter::nsScreenshots(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.nsScreenshots
+ QMetaObject::invokeMethod(parent(), "nsScreenshots", Q_ARG(QString, action));
+}
+
+void NDBAdapter::pfmRescanBooks()
+{
+ // handle method call com.github.shermp.nickeldbus.pfmRescanBooks
+ QMetaObject::invokeMethod(parent(), "pfmRescanBooks");
+}
+
+void NDBAdapter::pfmRescanBooksFull()
+{
+ // handle method call com.github.shermp.nickeldbus.pfmRescanBooksFull
+ QMetaObject::invokeMethod(parent(), "pfmRescanBooksFull");
+}
+
+void NDBAdapter::pwrReboot()
+{
+ // handle method call com.github.shermp.nickeldbus.pwrReboot
+ QMetaObject::invokeMethod(parent(), "pwrReboot");
+}
+
+void NDBAdapter::pwrShutdown()
+{
+ // handle method call com.github.shermp.nickeldbus.pwrShutdown
+ QMetaObject::invokeMethod(parent(), "pwrShutdown");
+}
+
+void NDBAdapter::pwrSleep()
+{
+ // handle method call com.github.shermp.nickeldbus.pwrSleep
+ QMetaObject::invokeMethod(parent(), "pwrSleep");
+}
+
+void NDBAdapter::wfmConnectWireless()
+{
+ // handle method call com.github.shermp.nickeldbus.wfmConnectWireless
+ QMetaObject::invokeMethod(parent(), "wfmConnectWireless");
+}
+
+void NDBAdapter::wfmConnectWirelessSilently()
+{
+ // handle method call com.github.shermp.nickeldbus.wfmConnectWirelessSilently
+ QMetaObject::invokeMethod(parent(), "wfmConnectWirelessSilently");
+}
+
+void NDBAdapter::wfmSetAirplaneMode(const QString &action)
+{
+ // handle method call com.github.shermp.nickeldbus.wfmSetAirplaneMode
+ QMetaObject::invokeMethod(parent(), "wfmSetAirplaneMode", Q_ARG(QString, action));
+}
+
diff --git a/src/interface/ndb_adapter.h b/src/interface/ndb_adapter.h
new file mode 100644
index 0000000..bac52f5
--- /dev/null
+++ b/src/interface/ndb_adapter.h
@@ -0,0 +1,296 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -c NDBAdapter -a ndb_adapter com.github.shermp.nickeldbus.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#ifndef NDB_ADAPTER_H_1714266534
+#define NDB_ADAPTER_H_1714266534
+
+#include
+#include
+QT_BEGIN_NAMESPACE
+class QByteArray;
+template class QList;
+template class QMap;
+class QString;
+class QStringList;
+class QVariant;
+QT_END_NAMESPACE
+
+/*
+ * Adaptor class for interface com.github.shermp.nickeldbus
+ */
+class NDBAdapter: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "com.github.shermp.nickeldbus")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+ "")
+public:
+ NDBAdapter(QObject *parent);
+ virtual ~NDBAdapter();
+
+public: // PROPERTIES
+public Q_SLOTS: // METHODS
+ void bwmOpenBrowser();
+ void bwmOpenBrowser(bool modal);
+ void bwmOpenBrowser(bool modal, const QString &url);
+ void bwmOpenBrowser(bool modal, const QString &url, const QString &css);
+ void dlgConfirmAccept(const QString &title, const QString &body, const QString &acceptText);
+ void dlgConfirmAcceptReject(const QString &title, const QString &body, const QString &acceptText, const QString &rejectText);
+ void dlgConfirmClose();
+ void dlgConfirmCreate();
+ void dlgConfirmCreate(bool createLineEdit);
+ void dlgConfirmNoBtn(const QString &title, const QString &body);
+ void dlgConfirmReject(const QString &title, const QString &body, const QString &rejectText);
+ void dlgConfirmSetAccept(const QString &acceptText);
+ void dlgConfirmSetBody(const QString &body);
+ void dlgConfirmSetLEPassword(bool password);
+ void dlgConfirmSetLEPlaceholder(const QString &placeholder);
+ void dlgConfirmSetModal(bool modal);
+ void dlgConfirmSetProgress(int min, int max, int val);
+ void dlgConfirmSetProgress(int min, int max, int val, const QString &format);
+ void dlgConfirmSetReject(const QString &rejectText);
+ void dlgConfirmSetTitle(const QString &title);
+ void dlgConfirmShow();
+ void dlgConfirmShowClose(bool show);
+ QString imgSizeForType(const QString &type);
+ void mwcHome();
+ void mwcToast(int toastDuration, const QString &msgMain);
+ void mwcToast(int toastDuration, const QString &msgMain, const QString &msgSub);
+ void n3fssSyncBoth();
+ void n3fssSyncOnboard();
+ void n3fssSyncSD();
+ QString ndbCurrentView();
+ QString ndbFirmwareVersion();
+ QString ndbNickelClassDetails(const QString &staticMmetaobjectSymbol);
+ QString ndbNickelWidgets();
+ bool ndbSignalConnected(const QString &signalName);
+ QString ndbVersion();
+ void ndbWifiKeepalive(bool keepalive);
+ void nsAutoUSBGadget(const QString &action);
+ void nsDarkMode(const QString &action);
+ void nsForceWifi(const QString &action);
+ void nsInvert(const QString &action);
+ void nsLockscreen(const QString &action);
+ void nsScreenshots(const QString &action);
+ void pfmRescanBooks();
+ void pfmRescanBooksFull();
+ void pwrReboot();
+ void pwrShutdown();
+ void pwrSleep();
+ void wfmConnectWireless();
+ void wfmConnectWirelessSilently();
+ void wfmSetAirplaneMode(const QString &action);
+Q_SIGNALS: // SIGNALS
+ void dlgConfirmResult(int result);
+ void dlgConfirmTextInput(const QString &input);
+ void fssFinished();
+ void fssGotNumFilesToProcess(int num);
+ void fssParseProgress(int progress);
+ void ndbViewChanged(const QString &newView);
+ void pfmAboutToConnect();
+ void pfmDoneProcessing();
+ void rvPageChanged(int pageNum);
+ void wmLinkQualityForConnectedNetwork(double quality);
+ void wmMacAddressAvailable(const QString &mac);
+ void wmNetworkConnected();
+ void wmNetworkDisconnected();
+ void wmNetworkFailedToConnect();
+ void wmNetworkForgotten();
+ void wmScanningAborted();
+ void wmScanningFinished();
+ void wmScanningStarted();
+ void wmTryingToConnect();
+ void wmWifiEnabled(bool enabled);
+};
+
+#endif
diff --git a/src/interface/ndb_proxy.cpp b/src/interface/ndb_proxy.cpp
new file mode 100644
index 0000000..c46c074
--- /dev/null
+++ b/src/interface/ndb_proxy.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -c NDBProxy -p ndb_proxy com.github.shermp.nickeldbus.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "ndb_proxy.h"
+
+/*
+ * Implementation of interface class NDBProxy
+ */
+
+NDBProxy::NDBProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+NDBProxy::~NDBProxy()
+{
+}
+
diff --git a/src/interface/ndb_proxy.h b/src/interface/ndb_proxy.h
new file mode 100644
index 0000000..a68c1d4
--- /dev/null
+++ b/src/interface/ndb_proxy.h
@@ -0,0 +1,400 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -c NDBProxy -p ndb_proxy com.github.shermp.nickeldbus.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef NDB_PROXY_H_1714266534
+#define NDB_PROXY_H_1714266534
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+/*
+ * Proxy class for interface com.github.shermp.nickeldbus
+ */
+class NDBProxy: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "com.github.shermp.nickeldbus"; }
+
+public:
+ NDBProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~NDBProxy();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> bwmOpenBrowser()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("bwmOpenBrowser"), argumentList);
+ }
+
+ inline QDBusPendingReply<> bwmOpenBrowser(bool modal)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(modal);
+ return asyncCallWithArgumentList(QLatin1String("bwmOpenBrowser"), argumentList);
+ }
+
+ inline QDBusPendingReply<> bwmOpenBrowser(bool modal, const QString &url)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(modal) << QVariant::fromValue(url);
+ return asyncCallWithArgumentList(QLatin1String("bwmOpenBrowser"), argumentList);
+ }
+
+ inline QDBusPendingReply<> bwmOpenBrowser(bool modal, const QString &url, const QString &css)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(modal) << QVariant::fromValue(url) << QVariant::fromValue(css);
+ return asyncCallWithArgumentList(QLatin1String("bwmOpenBrowser"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmAccept(const QString &title, const QString &body, const QString &acceptText)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(title) << QVariant::fromValue(body) << QVariant::fromValue(acceptText);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmAccept"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmAcceptReject(const QString &title, const QString &body, const QString &acceptText, const QString &rejectText)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(title) << QVariant::fromValue(body) << QVariant::fromValue(acceptText) << QVariant::fromValue(rejectText);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmAcceptReject"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmClose()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmClose"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmCreate()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmCreate"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmCreate(bool createLineEdit)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(createLineEdit);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmCreate"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmNoBtn(const QString &title, const QString &body)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(title) << QVariant::fromValue(body);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmNoBtn"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmReject(const QString &title, const QString &body, const QString &rejectText)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(title) << QVariant::fromValue(body) << QVariant::fromValue(rejectText);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmReject"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetAccept(const QString &acceptText)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(acceptText);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetAccept"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetBody(const QString &body)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(body);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetBody"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetLEPassword(bool password)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(password);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetLEPassword"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetLEPlaceholder(const QString &placeholder)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(placeholder);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetLEPlaceholder"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetModal(bool modal)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(modal);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetModal"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetProgress(int min, int max, int val)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(min) << QVariant::fromValue(max) << QVariant::fromValue(val);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetProgress"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetProgress(int min, int max, int val, const QString &format)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(min) << QVariant::fromValue(max) << QVariant::fromValue(val) << QVariant::fromValue(format);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetProgress"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetReject(const QString &rejectText)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(rejectText);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetReject"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmSetTitle(const QString &title)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(title);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmSetTitle"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmShow()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmShow"), argumentList);
+ }
+
+ inline QDBusPendingReply<> dlgConfirmShowClose(bool show)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(show);
+ return asyncCallWithArgumentList(QLatin1String("dlgConfirmShowClose"), argumentList);
+ }
+
+ inline QDBusPendingReply imgSizeForType(const QString &type)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(type);
+ return asyncCallWithArgumentList(QLatin1String("imgSizeForType"), argumentList);
+ }
+
+ inline QDBusPendingReply<> mwcHome()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("mwcHome"), argumentList);
+ }
+
+ inline QDBusPendingReply<> mwcToast(int toastDuration, const QString &msgMain)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(toastDuration) << QVariant::fromValue(msgMain);
+ return asyncCallWithArgumentList(QLatin1String("mwcToast"), argumentList);
+ }
+
+ inline QDBusPendingReply<> mwcToast(int toastDuration, const QString &msgMain, const QString &msgSub)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(toastDuration) << QVariant::fromValue(msgMain) << QVariant::fromValue(msgSub);
+ return asyncCallWithArgumentList(QLatin1String("mwcToast"), argumentList);
+ }
+
+ inline QDBusPendingReply<> n3fssSyncBoth()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("n3fssSyncBoth"), argumentList);
+ }
+
+ inline QDBusPendingReply<> n3fssSyncOnboard()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("n3fssSyncOnboard"), argumentList);
+ }
+
+ inline QDBusPendingReply<> n3fssSyncSD()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("n3fssSyncSD"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbCurrentView()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ndbCurrentView"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbFirmwareVersion()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ndbFirmwareVersion"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbNickelClassDetails(const QString &staticMmetaobjectSymbol)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(staticMmetaobjectSymbol);
+ return asyncCallWithArgumentList(QLatin1String("ndbNickelClassDetails"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbNickelWidgets()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ndbNickelWidgets"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbSignalConnected(const QString &signalName)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(signalName);
+ return asyncCallWithArgumentList(QLatin1String("ndbSignalConnected"), argumentList);
+ }
+
+ inline QDBusPendingReply ndbVersion()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ndbVersion"), argumentList);
+ }
+
+ inline QDBusPendingReply<> ndbWifiKeepalive(bool keepalive)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(keepalive);
+ return asyncCallWithArgumentList(QLatin1String("ndbWifiKeepalive"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsAutoUSBGadget(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsAutoUSBGadget"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsDarkMode(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsDarkMode"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsForceWifi(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsForceWifi"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsInvert(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsInvert"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsLockscreen(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsLockscreen"), argumentList);
+ }
+
+ inline QDBusPendingReply<> nsScreenshots(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("nsScreenshots"), argumentList);
+ }
+
+ inline QDBusPendingReply<> pfmRescanBooks()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("pfmRescanBooks"), argumentList);
+ }
+
+ inline QDBusPendingReply<> pfmRescanBooksFull()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("pfmRescanBooksFull"), argumentList);
+ }
+
+ inline QDBusPendingReply<> pwrReboot()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("pwrReboot"), argumentList);
+ }
+
+ inline QDBusPendingReply<> pwrShutdown()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("pwrShutdown"), argumentList);
+ }
+
+ inline QDBusPendingReply<> pwrSleep()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("pwrSleep"), argumentList);
+ }
+
+ inline QDBusPendingReply<> wfmConnectWireless()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("wfmConnectWireless"), argumentList);
+ }
+
+ inline QDBusPendingReply<> wfmConnectWirelessSilently()
+ {
+ QList argumentList;
+ return asyncCallWithArgumentList(QLatin1String("wfmConnectWirelessSilently"), argumentList);
+ }
+
+ inline QDBusPendingReply<> wfmSetAirplaneMode(const QString &action)
+ {
+ QList argumentList;
+ argumentList << QVariant::fromValue(action);
+ return asyncCallWithArgumentList(QLatin1String("wfmSetAirplaneMode"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+ void dlgConfirmResult(int result);
+ void dlgConfirmTextInput(const QString &input);
+ void fssFinished();
+ void fssGotNumFilesToProcess(int num);
+ void fssParseProgress(int progress);
+ void ndbViewChanged(const QString &newView);
+ void pfmAboutToConnect();
+ void pfmDoneProcessing();
+ void rvPageChanged(int pageNum);
+ void wmLinkQualityForConnectedNetwork(double quality);
+ void wmMacAddressAvailable(const QString &mac);
+ void wmNetworkConnected();
+ void wmNetworkDisconnected();
+ void wmNetworkFailedToConnect();
+ void wmNetworkForgotten();
+ void wmScanningAborted();
+ void wmScanningFinished();
+ void wmScanningStarted();
+ void wmTryingToConnect();
+ void wmWifiEnabled(bool enabled);
+};
+
+namespace com {
+ namespace github {
+ namespace shermp {
+ typedef ::NDBProxy nickeldbus;
+ }
+ }
+}
+#endif