Commit 9b5f8e3a authored by Martin Kacej's avatar Martin Kacej

transformed to Config module

parent 7fa6d8ab
project (kcm_mobile_wifi)
set (wifisettings_SRCS mobilewifisettings.cpp)
add_library(kcm_mobile_wifi MODULE ${wifisettings_SRCS})
target_link_libraries(kcm_mobile_wifi
Qt5::DBus
Qt5::Gui
Qt5::Quick
Qt5::Qml
KF5::Plasma
KF5::I18n
KF5::QuickAddons
)
kcoreaddons_desktop_to_json(kcm_mobile_wifi "wifi.desktop")
install(FILES wifi.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kcm_mobile_wifi DESTINATION ${PLUGIN_INSTALL_DIR}/kcms)
kpackage_install_package(package wifi kcms)
#include "mobilewifisettings.h"
#include <KPluginFactory>
#include <KLocalizedString>
#include <KAboutData>
K_PLUGIN_FACTORY_WITH_JSON(WifiSettingsFactory, "wifi.json", registerPlugin<MobileWifiSettings>();)
MobileWifiSettings::MobileWifiSettings(QObject* parent, const QVariantList& args) : KQuickAddons::ConfigModule(parent, args)
{
}
MobileWifiSettings::~MobileWifiSettings()
{
}
#include "mobilewifisettings.moc"
#ifndef MOBILEWIFISETTINGS_H
#define MOBILEWIFISETTINGS_H
#include <QObject>
#include <KQuickAddons/ConfigModule>
class MobileWifiSettings : public KQuickAddons::ConfigModule
{
public:
MobileWifiSettings(QObject* parent, const QVariantList& args);
virtual ~MobileWifiSettings();
};
#endif // MOBILEWIFISETTINGS_H
......@@ -5,6 +5,7 @@ Encoding=UTF-8
Type=Service
Icon=network-wireless-symbolic
X-KDE-ServiceTypes=Active/SettingsModule
X-KDE-Library=kcm_mobile_wifi
X-KDE-PluginInfo-Author=Martin Kacej
X-KDE-PluginInfo-Email=m.kacej@atlas.sk
X-KDE-PluginInfo-Name=wifi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment