File indexing completed on 2024-04-28 16:54:47

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 PlasmaWindowedCorona : public Plasma::Corona
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit PlasmaWindowedCorona(const QString &shell, QObject *parent = nullptr);
0018     QRect screenGeometry(int id) const override;
0019 
0020     void setHasStatusNotifier(bool stay);
0021     void loadApplet(const QString &applet, const QVariantList &arguments);
0022 
0023 public Q_SLOTS:
0024     void load();
0025     void activateRequested(const QStringList &arguments, const QString &workingDirectory);
0026 
0027 private:
0028     Plasma::Containment *m_containment = nullptr;
0029     bool m_hasStatusNotifier = false;
0030 };