Warning, file /frameworks/knewstuff/src/qtquick/quicksettings.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of KNewStuffQuick.
0003     SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef KNSQ_QUICKSETTINGS_H
0009 #define KNSQ_QUICKSETTINGS_H
0010 
0011 #include "core/questionlistener.h"
0012 
0013 #include <memory>
0014 
0015 namespace KNewStuffQuick
0016 {
0017 class SettingsPrivate;
0018 
0019 /**
0020  * An object for handling KNewStuff related settings which make sense to handle without
0021  * instantiating an engine (specifically, for now, whether or not this is allowed by
0022  * the user's Kiosk settings)
0023  * @since 5.81
0024  */
0025 class Settings : public QObject
0026 {
0027     Q_OBJECT
0028     Q_DISABLE_COPY(Settings)
0029     Q_PROPERTY(bool allowedByKiosk READ allowedByKiosk CONSTANT)
0030 public:
0031     static Settings *instance();
0032     ~Settings() override;
0033 
0034     bool allowedByKiosk() const;
0035 
0036 private:
0037     Settings();
0038     std::unique_ptr<SettingsPrivate> d;
0039 };
0040 }
0041 #endif // KNSQ_QUICKSETTINGS_H