2019-01-14 14:21:51 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-01-23 05:13:17 +01:00
|
|
|
#include <Kernel/CharacterDevice.h>
|
2019-01-14 14:21:51 +01:00
|
|
|
|
|
|
|
class GUIEventDevice final : public CharacterDevice {
|
|
|
|
public:
|
|
|
|
GUIEventDevice();
|
|
|
|
virtual ~GUIEventDevice() override;
|
|
|
|
|
|
|
|
private:
|
2019-01-15 09:17:22 +01:00
|
|
|
// ^CharacterDevice
|
2019-01-16 00:20:38 +01:00
|
|
|
virtual ssize_t read(Process&, byte* buffer, size_t bufferSize) override;
|
|
|
|
virtual ssize_t write(Process&, const byte* buffer, size_t bufferSize) override;
|
2019-01-16 00:10:13 +01:00
|
|
|
virtual bool can_read(Process&) const override;
|
2019-01-15 09:17:22 +01:00
|
|
|
virtual bool can_write(Process&) const override { return true; }
|
2019-01-21 02:33:01 +01:00
|
|
|
virtual const char* class_name() const override { return "GUIEventDevice"; }
|
2019-01-14 14:21:51 +01:00
|
|
|
};
|