2022-04-01 16:31:45 +03:00
|
|
|
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2022 Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License version 2, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This library 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 library; see the file COPYING.LIB. If not, write to
|
|
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KGREETERCONFIG_H
|
|
|
|
#define KGREETERCONFIG_H
|
|
|
|
|
2022-04-09 20:00:56 +03:00
|
|
|
#include <QProcess>
|
2022-04-01 16:31:45 +03:00
|
|
|
#include <kcmodule.h>
|
|
|
|
|
|
|
|
#include "ui_kgreeterconfig.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Control look of KDE greeter
|
|
|
|
*
|
|
|
|
* @author Ivailo Monev (xakepa10@gmail.com)
|
|
|
|
*/
|
|
|
|
class KCMGreeter : public KCModule, public Ui_KGreeterDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
// KCModule reimplementations
|
|
|
|
KCMGreeter(QWidget* parent, const QVariantList&);
|
|
|
|
~KCMGreeter();
|
|
|
|
|
2022-04-01 23:29:02 +03:00
|
|
|
public Q_SLOTS:
|
2022-04-01 16:31:45 +03:00
|
|
|
void load() final;
|
|
|
|
void save() final;
|
2022-04-01 23:29:02 +03:00
|
|
|
void defaults() final;
|
2022-04-01 16:31:45 +03:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void slotStyleChanged(const QString &style);
|
|
|
|
void slotColorChanged(const QString &color);
|
|
|
|
void slotURLChanged(const QString &url);
|
|
|
|
void slotURLChanged(const KUrl &url);
|
|
|
|
|
|
|
|
void slotTest();
|
|
|
|
|
|
|
|
private:
|
2022-04-09 19:52:31 +03:00
|
|
|
void enableTest(const bool enable);
|
2022-04-09 20:00:56 +03:00
|
|
|
void killLightDM();
|
2022-04-09 19:52:31 +03:00
|
|
|
|
2022-04-01 16:31:45 +03:00
|
|
|
QString m_lightdmexe;
|
2022-04-09 20:00:56 +03:00
|
|
|
Q_PID m_lightdmpid;
|
2022-04-01 16:31:45 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // KGREETERCONFIG_H
|