File indexing completed on 2024-04-28 05:35:49

0001 /*
0002     SPDX-FileCopyrightText: 2014 Bhushan Shah <bhush94@gmail.com>
0003     SPDX-FileCopyrightText: 2014 Marco Martin <notmart@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 #pragma once
0009 
0010 #include <Plasma/Corona>
0011 
0012 class PlasmaWindowedView;
0013 
0014 class PlasmaWindowedCorona : public Plasma::Corona
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit PlasmaWindowedCorona(const QString &shell, QObject *parent = nullptr);
0020     QRect screenGeometry(int id) const override;
0021 
0022     void setHasStatusNotifier(bool stay);
0023     void loadApplet(const QString &applet, const QVariantList &arguments);
0024 
0025 public Q_SLOTS:
0026     void load();
0027     void activateRequested(const QStringList &arguments, const QString &workingDirectory);
0028 
0029 private:
0030     Plasma::Containment *m_containment = nullptr;
0031     PlasmaWindowedView *m_view = nullptr;
0032     bool m_hasStatusNotifier = false;
0033 };