33 lines
760 B
C++
33 lines
760 B
C++
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QRectF>
|
|
|
|
class TaskbarGeometry : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_CLASSINFO("D-Bus Interface", "se.ajpanton.PlasmaTaskGroupShortcuts.TaskbarGeometry")
|
|
|
|
public:
|
|
explicit TaskbarGeometry(QObject *parent = nullptr);
|
|
~TaskbarGeometry() override;
|
|
void request(const QString &uuid);
|
|
void cancel();
|
|
|
|
Q_SIGNALS:
|
|
Q_SCRIPTABLE void lookup(int serial, const QString &uuid);
|
|
void received(const QRectF &geometry);
|
|
|
|
public Q_SLOTS:
|
|
Q_SCRIPTABLE void bridgeReady();
|
|
Q_SCRIPTABLE void complete(int serial, double x, double y, double width, double height);
|
|
|
|
private:
|
|
int m_serial = 0;
|
|
bool m_ready = false;
|
|
bool m_loaded = false;
|
|
QString m_uuid;
|
|
};
|