#pragma once #include #include #include class GWindowServerConnection; class GClipboard { public: static GClipboard& the(); String data() const { return data_and_type().data; } String type() const { return data_and_type().type; } void set_data(const StringView&, const String& data_type = "text"); struct DataAndType { String data; String type; }; DataAndType data_and_type() const; void did_receive_clipboard_contents_changed(Badge, const String& data_type); Function on_content_change; private: GClipboard(); };