diff --git a/networkmanagement/handler.h b/networkmanagement/handler.h index adbc123..52c8363 100644 --- a/networkmanagement/handler.h +++ b/networkmanagement/handler.h @@ -52,6 +52,7 @@ public: ~Handler() override; Q_PROPERTY(bool hotspotSupported READ hotspotSupported NOTIFY hotspotSupportedChanged); + public: bool hotspotSupported() const { return m_hotspotSupported; }; diff --git a/networkmanagement/qmlplugins.cpp b/networkmanagement/qmlplugins.cpp index bade686..140339a 100644 --- a/networkmanagement/qmlplugins.cpp +++ b/networkmanagement/qmlplugins.cpp @@ -11,6 +11,7 @@ #include "enabledconnections.h" #include "enums.h" #include "wifisettings.h" +#include "configuration.h" #include @@ -28,5 +29,6 @@ void QmlPlugins::registerTypes(const char* uri) qmlRegisterType(uri, 1, 0, "Handler"); qmlRegisterType(uri, 1, 0, "EnabledConnections"); qmlRegisterType(uri, 1, 0, "WifiSettings"); + qmlRegisterType(uri, 1, 0, "Configuration"); qmlRegisterUncreatableType(uri, 1, 0, "Enums", "You cannot create Enums on yourself"); } \ No newline at end of file