1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00
latte-dock/app/xwindowinterface.h
2016-12-30 11:14:08 +02:00

42 lines
917 B
C++

#ifndef XWINDOWINTERFACE_H
#define XWINDOWINTERFACE_H
#include "abstractwindowinterface.h"
#include <QObject>
#include <KWindowInfo>
#include <Plasma>
namespace Latte {
class XWindowInterface : public AbstractWindowInterface {
Q_OBJECT
public:
XWindowInterface(QQuickWindow *const view, QObject *parent);
~XWindowInterface() override;
void setDockDefaultFlags() override;
WId activeWindow() const override;
WindowInfoWrap requestInfo(WId wid) override;
WindowInfoWrap requestInfoActive() override;
const std::list<WId> &windows() override;
void setDockStruts(const QRect &dockRect, Plasma::Types::Location location) override;
void removeDockStruts() override;
private:
bool isValidWindow(const KWindowInfo &winfo);
void windowChangedProxy(WId wid, NET::Properties prop1, NET::Properties2 prop2);
};
}
#endif // XWINDOWINTERFACE_H