29 lines
959 B
C++
29 lines
959 B
C++
/*
|
|
* Deskflow -- mouse and keyboard sharing utility
|
|
* SPDX-FileCopyrightText: (C) 2014 - 2016 Symless Ltd
|
|
* SPDX-FileCopyrightText: (C) 2014 Ryan Chapman
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "platform/OSXClipboard.h"
|
|
|
|
//! Convert to/from some text encoding
|
|
class OSXClipboardBMPConverter : public IOSXClipboardConverter
|
|
{
|
|
public:
|
|
OSXClipboardBMPConverter() = default;
|
|
~OSXClipboardBMPConverter() override = default;
|
|
|
|
// IMSWindowsClipboardConverter overrides
|
|
IClipboard::Format getFormat() const override;
|
|
CFStringRef getOSXFormat() const override;
|
|
|
|
// OSXClipboardAnyBMPConverter overrides
|
|
std::string fromIClipboard(const std::string &) const override;
|
|
std::string toIClipboard(const std::string &) const override;
|
|
|
|
// generic encoding converter
|
|
static std::string convertString(const std::string &data, CFStringEncoding fromEncoding, CFStringEncoding toEncoding);
|
|
};
|