You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB
C++

4 years ago
#include "qmlplugins.h"
#include "networkmodel.h"
#include "networkmodelitem.h"
#include "activeconnection.h"
4 years ago
#include "appletproxymodel.h"
#include "wiressitemsettings.h"
#include "identitymodel.h"
#include "handler.h"
#include "enabledconnections.h"
#include "enums.h"
#include "wifisettings.h"
#include "configuration.h"
4 years ago
#include <QQmlEngine>
void QmlPlugins::registerTypes(const char* uri)
{
qmlRegisterUncreatableType<NetworkModelItem>(uri, 1, 0, "NetworkModelItem",
QLatin1String("Cannot instantiate NetworkModelItem"));
qmlRegisterType<ActiveConnection>(uri, 1, 0, "ActiveConnection");
4 years ago
qmlRegisterType<AppletProxyModel>(uri, 1, 0, "AppletProxyModel");
qmlRegisterType<NetworkModel>(uri, 1, 0, "NetworkModel");
qmlRegisterType<WirelessItemSettings>(uri, 1, 0, "WirelessItemSettings");
qmlRegisterType<IdentityModel>(uri, 1, 0, "IdentityModel");
qmlRegisterType<Handler>(uri, 1, 0, "Handler");
qmlRegisterType<EnabledConnections>(uri, 1, 0, "EnabledConnections");
qmlRegisterType<WifiSettings>(uri, 1, 0, "WifiSettings");
qmlRegisterType<Configuration>(uri, 1, 0, "Configuration");
qmlRegisterUncreatableType<Enums>(uri, 1, 0, "Enums", "You cannot create Enums on yourself");
}