aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xwayland/XDataSource.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xwayland/XDataSource.hpp')
-rw-r--r--src/xwayland/XDataSource.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/xwayland/XDataSource.hpp b/src/xwayland/XDataSource.hpp
new file mode 100644
index 00000000..c629aa2a
--- /dev/null
+++ b/src/xwayland/XDataSource.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "../protocols/types/DataDevice.hpp"
+
+struct SXSelection;
+
+class CXDataSource : public IDataSource {
+ public:
+ CXDataSource(SXSelection&);
+
+ virtual std::vector<std::string> mimes();
+ virtual void send(const std::string& mime, uint32_t fd);
+ virtual void accepted(const std::string& mime);
+ virtual void cancelled();
+ virtual void error(uint32_t code, const std::string& msg);
+ virtual eDataSourceType type();
+
+ private:
+ SXSelection& selection;
+ std::vector<std::string> mimeTypes; // these two have shared idx
+ std::vector<uint32_t> mimeAtoms; //
+}; \ No newline at end of file