File indexing completed on 2024-04-14 03:54:10
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 /** 0018 * An object for handling KNewStuff related settings which make sense to handle without 0019 * instantiating an engine (specifically, for now, whether or not this is allowed by 0020 * the user's Kiosk settings) 0021 * @since 5.81 0022 */ 0023 class Settings : public QObject 0024 { 0025 Q_OBJECT 0026 Q_PROPERTY(bool allowedByKiosk READ allowedByKiosk CONSTANT) 0027 public: 0028 static Settings *instance(); 0029 bool allowedByKiosk() const; 0030 0031 /// @internal 0032 Settings() 0033 { 0034 } 0035 }; 0036 } 0037 #endif // KNSQ_QUICKSETTINGS_H