3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-15 03:35:55 +00:00
Brooklyn/plasma/workspace/plasma-windowed/plasmawindowedcorona.h
2022-03-05 22:41:29 +05:00

31 lines
799 B
C++

/*
SPDX-FileCopyrightText: 2014 Bhushan Shah <bhush94@gmail.com>
SPDX-FileCopyrightText: 2014 Marco Martin <notmart@gmail.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#pragma once
#include <Plasma/Corona>
class PlasmaWindowedCorona : public Plasma::Corona
{
Q_OBJECT
public:
explicit PlasmaWindowedCorona(QObject *parent = nullptr);
QRect screenGeometry(int id) const override;
void setHasStatusNotifier(bool stay);
void loadApplet(const QString &applet, const QVariantList &arguments);
public Q_SLOTS:
void load();
void activateRequested(const QStringList &arguments, const QString &workingDirectory);
private:
Plasma::Containment *m_containment = nullptr;
bool m_hasStatusNotifier = false;
};