KNewStuff

quicksettings.cpp
1/*
2 This file is part of KNewStuffQuick.
3 SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#include "quicksettings.h"
9
10#include <KAuthorized>
11
12#include <QCoreApplication>
13
15
16KNewStuffQuick::Settings *KNewStuffQuick::Settings::instance()
17{
18 return s_settings;
19}
20
21bool KNewStuffQuick::Settings::allowedByKiosk() const
22{
23 return KAuthorized::authorize(KAuthorized::GHNS);
24}
25
26#include "moc_quicksettings.cpp"
static Q_INVOKABLE bool authorize(const QString &action)
An object for handling KNewStuff related settings which make sense to handle without instantiating an...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:54:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.