You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
/* |
|
SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@privat.broulik.de> |
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <QQuickItem> |
|
#include <QWindow> |
|
|
|
#include <Plasma/Applet> |
|
|
|
class QString; |
|
class QRect; |
|
|
|
class NotificationApplet : public Plasma::Applet |
|
{ |
|
Q_OBJECT |
|
|
|
Q_PROPERTY(QWindow *focussedPlasmaDialog READ focussedPlasmaDialog NOTIFY focussedPlasmaDialogChanged) |
|
Q_PROPERTY(QQuickItem *systemTrayRepresentation READ systemTrayRepresentation CONSTANT) |
|
|
|
public: |
|
explicit NotificationApplet(QObject *parent, const KPluginMetaData &data, const QVariantList &args); |
|
~NotificationApplet() override; |
|
|
|
void init() override; |
|
void configChanged() override; |
|
|
|
QWindow *focussedPlasmaDialog() const; |
|
QQuickItem *systemTrayRepresentation() const; |
|
|
|
Q_INVOKABLE bool isPrimaryScreen(const QRect &rect) const; |
|
|
|
Q_INVOKABLE void forceActivateWindow(QWindow *window); |
|
|
|
Q_SIGNALS: |
|
void focussedPlasmaDialogChanged(); |
|
};
|
|
|