KNewStuff

quicksettings.h
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{
26 Q_PROPERTY(bool allowedByKiosk READ allowedByKiosk CONSTANT)
27public:
28 static Settings *instance();
29 bool allowedByKiosk() const;
30
31 /// @internal
33 {
34 }
35};
36}
37#endif // KNSQ_QUICKSETTINGS_H
An object for handling KNewStuff related settings which make sense to handle without instantiating an...
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.