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#ifndef KNSQ_QUICKSETTINGS_H
9#define KNSQ_QUICKSETTINGS_H
10
11#include <QObject>
12
13namespace KNewStuffQuick
14{
15/**
16 * An object for handling KNewStuff related settings which make sense to handle without
17 * instantiating an engine (specifically, for now, whether or not this is allowed by
18 * the user's Kiosk settings)
19 * @since 5.81
20 */
21class Settings : public QObject
22{
23 Q_OBJECT
24 Q_PROPERTY(bool allowedByKiosk READ allowedByKiosk CONSTANT)
25public:
26 static Settings *instance();
27 bool allowedByKiosk() const;
28
29 /// @internal
30 Settings()
31 {
32 }
33};
34}
35#endif // KNSQ_QUICKSETTINGS_H
36

source code of knewstuff/src/qtquick/quicksettings.h