#ifndef PLATFORMWINDOW_H
#define PLATFORMWINDOW_H

#include <QQuickView>
#include <KWayland/Client/plasmashell.h>

namespace KWayland
{
namespace Client
{
class PlasmaShell;
class Surface;
}
}

class PlatformWindow : public QQuickView
{
    Q_OBJECT
public:
    explicit PlatformWindow(QWindow *parent = nullptr,
                            bool panelTakefocus = false,
                            KWayland::Client::PlasmaShellSurface::Role surfaceRole = KWayland::Client::PlasmaShellSurface::Role::Normal);

protected:
    void initWindow();

protected:
    bool m_isWayland;

private:
    bool m_panelTakefocus;
    KWayland::Client::PlasmaShellSurface::Role m_waylandSurfaceRole;
    KWayland::Client::PlasmaShellSurface *m_plasmaShellSurface = nullptr;
    KWayland::Client::Surface *m_surface = nullptr;
    KWayland::Client::PlasmaShell *m_plasmaShellInterface = nullptr;
};

#endif // PLATFORMWINDOW_H
