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

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