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 | |
14 | Q_GLOBAL_STATIC(KNewStuffQuick::Settings, s_settings) |
15 | |
16 | KNewStuffQuick::Settings *KNewStuffQuick::Settings::instance() |
17 | { |
18 | return s_settings; |
19 | } |
20 | |
21 | bool KNewStuffQuick::Settings::allowedByKiosk() const |
22 | { |
23 | return KAuthorized::authorize(action: KAuthorized::GHNS); |
24 | } |
25 | |
26 | #include "moc_quicksettings.cpp" |
27 | |