File indexing completed on 2025-02-09 06:41:24
0001 /* 0002 SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "sharedqmlengine.h" 0010 0011 #include <QQmlContext> 0012 #include <qstringlistmodel.h> 0013 0014 namespace Plasma 0015 { 0016 class Applet; 0017 } 0018 0019 namespace PlasmaQuick 0020 { 0021 0022 class AppletContext : public QQmlContext 0023 { 0024 Q_OBJECT 0025 public: 0026 AppletContext(QQmlEngine *engine, Plasma::Applet *applet, SharedQmlEngine *parent); 0027 ~AppletContext(); 0028 0029 Plasma::Applet *applet() const; 0030 SharedQmlEngine *sharedQmlEngine() const; 0031 0032 private: 0033 Plasma::Applet *m_applet; 0034 SharedQmlEngine *m_sharedEngine; 0035 }; 0036 0037 }