aboutsummaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r--src/main/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index a6a77a5b..db339d71 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -79,6 +79,7 @@
// IOS exclusions
#ifndef Q_OS_IOS
#include "daemon/DaemonManager.h"
+#include "p2pool/P2PoolManager.h"
#endif
#if defined(Q_OS_WIN)
@@ -401,6 +402,8 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
#ifndef Q_OS_IOS
qmlRegisterUncreatableType<DaemonManager>("moneroComponents.DaemonManager", 1, 0, "DaemonManager",
"DaemonManager can't be instantiated directly");
+ qmlRegisterUncreatableType<P2PoolManager>("moneroComponents.P2PoolManager", 1, 0, "P2PoolManager",
+ "P2PoolManager can't be instantiated directly");
#endif
qmlRegisterUncreatableType<AddressBookModel>("moneroComponents.AddressBookModel", 1, 0, "AddressBookModel",
"AddressBookModel can't be instantiated directly");
@@ -462,7 +465,9 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
// Exclude daemon manager from IOS
#ifndef Q_OS_IOS
DaemonManager daemonManager;
+ P2PoolManager p2poolManager;
engine.rootContext()->setContextProperty("daemonManager", &daemonManager);
+ engine.rootContext()->setContextProperty("p2poolManager", &p2poolManager);
#endif
engine.rootContext()->setContextProperty("isWindows", isWindows);