1 /* 2 SPDX-FileCopyrightText: 2014 Bhushan Shah <bhush94@gmail.com> 3 SPDX-FileCopyrightText: 2014 Marco Martin <notmart@gmail.com> 4 5 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 6 */ 7 8 #pragma once 9 10 #include <Plasma/Corona> 11 12 class PlasmaWindowedCorona : public Plasma::Corona 13 { 14 Q_OBJECT 15 16 public: 17 explicit PlasmaWindowedCorona(QObject *parent = nullptr); 18 QRect screenGeometry(int id) const override; 19 20 void setHasStatusNotifier(bool stay); 21 void loadApplet(const QString &applet, const QVariantList &arguments); 22 23 public Q_SLOTS: 24 void load(); 25 void activateRequested(const QStringList &arguments, const QString &workingDirectory); 26 27 private: 28 Plasma::Containment *m_containment = nullptr; 29 bool m_hasStatusNotifier = false; 30 }; 31