- 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.
31 lines
587 B
C++
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
|