KDEAmbi/WaylandGrabber.h
Tobias J. Endres 18a8812d66 feat: Refactor to Wayland-only and add mock server
- Remove all X11-related code and dependencies.
- Create a mock Hyperion server for testing.
- Refactor the main application to be Wayland-only.
- Update the build system and documentation.
2025-08-14 20:31:00 +02:00

31 lines
587 B
C++

#ifndef WAYLANDGRABBER_H
#define WAYLANDGRABBER_H
#include <QObject>
#include <QScreen>
#include <QMediaCaptureSession>
#include <QScreenCapture>
#include <QVideoSink>
#include <QImage>
class WaylandGrabber : public QObject
{
Q_OBJECT
public:
explicit WaylandGrabber(QObject *parent = nullptr);
void start();
signals:
void frameReady(const QImage &frame);
private slots:
void handleFrame(const QVideoFrame &frame);
private:
QMediaCaptureSession m_captureSession;
QScreenCapture m_screenCapture;
QVideoSink m_videoSink;
};
#endif // WAYLANDGRABBER_H