mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
8ae62c57ee
Hogging "id" and "name" makes it impossible to use these as message parameter names, which seems silly. :^)
17 lines
319 B
C++
17 lines
319 B
C++
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/ByteBuffer.h>
|
|
|
|
class IMessage {
|
|
public:
|
|
virtual ~IMessage();
|
|
|
|
virtual int endpoint_magic() const = 0;
|
|
virtual int message_id() const = 0;
|
|
virtual String message_name() const = 0;
|
|
virtual ByteBuffer encode() const = 0;
|
|
|
|
protected:
|
|
IMessage();
|
|
};
|