Commit 091845b2 authored by Nicolas Fella's avatar Nicolas Fella Committed by Marco Martin

Add plugin to accounts module

parent a920a4b7
Pipeline #5106 passed with stage
in 10 minutes and 27 seconds
install(FILES kaccounts.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
set(accountsettings_SRCS
accounts.cpp
)
add_library(kcm_mobile_kaccounts MODULE ${accountsettings_SRCS})
target_link_libraries(kcm_mobile_kaccounts
Qt5::Core
KF5::CoreAddons
KF5::I18n
KF5::QuickAddons
)
kcoreaddons_desktop_to_json(kcm_mobile_kaccounts "accountssettings.desktop")
install(TARGETS kcm_mobile_kaccounts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
install(FILES accountssettings.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
kpackage_install_package(package kcm_mobile_kaccounts kcms)
/***************************************************************************
* *
* Copyright 2019 Nicolas Fella <nicolas.fella@gmx.de> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, 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 General Public License for more details. *
* *
* You should have received a copy of the GNU 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 "accounts.h"
#include <KLocalizedString>
#include <KAboutData>
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(AccountsSettings, "accountssettings.json")
AccountsSettings::AccountsSettings(QObject* parent, const QVariantList& args)
: KQuickAddons::ConfigModule(parent, args)
{
KAboutData* about = new KAboutData("kcm_mobile_kaccounts", i18n("Configure Accounts"),
"1.0", QString(), KAboutLicense::LGPL);
about->addAuthor(i18n("Sebastian Kügler"), QString(), "sebas@kde.org");
setAboutData(about);
}
AccountsSettings::~AccountsSettings()
{
}
#include "accounts.moc"
/***************************************************************************
* *
* Copyright 2019 Nicolas Fella <nicolas.fella@gmx.de> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, 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 General Public License for more details. *
* *
* You should have received a copy of the GNU 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 ACCOUNTSSETTINGS_H
#define ACCOUNTSSETTINGS_H
#include <QObject>
#include <QVariant>
#include <KQuickAddons/ConfigModule>
class AccountsSettings : public KQuickAddons::ConfigModule
{
Q_OBJECT
public:
AccountsSettings(QObject* parent, const QVariantList& args);
~AccountsSettings() override;
};
#endif // ACCOUNTSSETTINGS_H
......@@ -61,6 +61,7 @@ X-KDE-ServiceTypes=KCModule
X-KDE-ParentApp=kcontrol
X-KDE-FormFactors=handset,tablet,mediacenter
X-KDE-Library=kcm_mobile_kaccounts
X-KDE-System-Settings-Parent-Category=display
X-KDE-Weight=70
......
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