deskflow/src/lib/platform/XWindowsClipboardHTMLConverter.h

32 lines
941 B
C
Raw Normal View History

2012-06-10 16:50:54 +00:00
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2004 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#pragma once
2012-06-10 16:50:54 +00:00
#include "platform/XWindowsClipboard.h"
2012-06-10 16:50:54 +00:00
//! Convert to/from HTML encoding
class XWindowsClipboardHTMLConverter : public IXWindowsClipboardConverter
{
2012-06-10 16:50:54 +00:00
public:
/*!
\c name is converted to an atom and that is reported by getAtom().
*/
XWindowsClipboardHTMLConverter(Display *display, const char *name);
~XWindowsClipboardHTMLConverter() override = default;
2012-06-10 16:50:54 +00:00
// IXWindowsClipboardConverter overrides
IClipboard::Format getFormat() const override;
Atom getAtom() const override;
int getDataSize() const override;
std::string fromIClipboard(const std::string &) const override;
std::string toIClipboard(const std::string &) const override;
2012-06-10 16:50:54 +00:00
private:
Atom m_atom;
2012-06-10 16:50:54 +00:00
};