Commit 5785c882 authored by Jan Grulich's avatar Jan Grulich

Naming consistency

parent 48ce5b70
project (kcm_mobile_wifi)
set (wifisettings_SRCS mobilewifisettings.cpp)
set (wifisettings_SRCS wifisettings.cpp)
add_library(kcm_mobile_wifi MODULE ${wifisettings_SRCS})
......@@ -14,8 +14,8 @@ target_link_libraries(kcm_mobile_wifi
KF5::QuickAddons
)
kcoreaddons_desktop_to_json(kcm_mobile_wifi "wifi.desktop")
kcoreaddons_desktop_to_json(kcm_mobile_wifi "wifisettings.desktop")
install(FILES wifi.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES wifisettings.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kcm_mobile_wifi DESTINATION ${PLUGIN_INSTALL_DIR}/kcms)
kpackage_install_package(package wifi kcms)
kpackage_install_package(package kcm_mobile_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)
{
KAboutData* about = new KAboutData("kcm_mobile_wifi", i18n("Configure Wi-Fi networks"),
"0.1", QString(), KAboutLicense::LGPL);
about->addAuthor(i18n("Martin Kacej"), QString(), "m.kacej@atlas.sk");
setAboutData(about);
}
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
......@@ -4,11 +4,11 @@ Comment=Wireless network setting
Encoding=UTF-8
Type=Service
Icon=network-wireless-symbolic
X-KDE-ServiceTypes=Active/SettingsModule
X-KDE-ServiceTypes=KCModule
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
X-KDE-PluginInfo-Name=kcm_mobile_wifi
X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=https://plasma-mobile.org/
X-KDE-PluginInfo-Category=System Information
......@@ -16,4 +16,5 @@ X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-FormFactors=handset,tablet,mediacenter
X-Plasma-Package=kcm_mobile_wifi
X-Plasma-MainScript=ui/Wifi.qml
/*
* Copyright 2018 Martin Kacej <m.kacej@atlas.sk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "wifisettings.h"
#include <KPluginFactory>
#include <KLocalizedString>
#include <KAboutData>
K_PLUGIN_FACTORY_WITH_JSON(WifiSettingsFactory, "wifisettings.json", registerPlugin<WifiSettings>();)
WifiSettings::WifiSettings(QObject* parent, const QVariantList& args) : KQuickAddons::ConfigModule(parent, args)
{
KAboutData* about = new KAboutData("kcm_mobile_wifi", i18n("Configure Wi-Fi networks"),
"0.1", QString(), KAboutLicense::LGPL);
about->addAuthor(i18n("Martin Kacej"), QString(), "m.kacej@atlas.sk");
setAboutData(about);
}
WifiSettings::~WifiSettings()
{
}
#include "wifisettings.moc"
......@@ -3,15 +3,15 @@ Name=Wi-Fi
Comment=Wireless network setting
Icon=network-wireless-symbolic
Exec=plasma-settings -m wifi
Exec=plasma-settings -m kcm_mobile_wifi
Type=Service
X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_mobile_wifi
X-KDE-ParentApp=kcontrol
X-KDE-FormFactors=handset,tablet,mediacenter
X-KDE-System-Settings-Parent-Category=display
X-KDE-System-Settings-Parent-Category=network
X-KDE-Weight=70
X-KDE-Keywords=wifi,network
......
/*
* Copyright 2018 Martin Kacej <m.kacej@atlas.sk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef WIFISETTINGS_H
#define WIFISETTINGS_H
#include <KQuickAddons/ConfigModule>
class WifiSettings : public KQuickAddons::ConfigModule
{
public:
WifiSettings(QObject *parent, const QVariantList &args);
virtual ~WifiSettings();
};
#endif // WIFISETTINGS_H
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