1 /* 2 * barrier -- mouse and keyboard sharing utility 3 * Copyright (C) 2012-2016 Symless Ltd. 4 * Copyright (C) 2002 Chris Schoeneman 5 * 6 * This package is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * found in the file LICENSE that should have accompanied this file. 9 * 10 * This package is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #include "platform/XWindowsClipboardUTF8Converter.h" 20 21 // 22 // XWindowsClipboardUTF8Converter 23 // 24 XWindowsClipboardUTF8Converter(Display * display,const char * name)25XWindowsClipboardUTF8Converter::XWindowsClipboardUTF8Converter( 26 Display* display, const char* name) : 27 m_atom(XInternAtom(display, name, False)) 28 { 29 // do nothing 30 } 31 ~XWindowsClipboardUTF8Converter()32XWindowsClipboardUTF8Converter::~XWindowsClipboardUTF8Converter() 33 { 34 // do nothing 35 } 36 37 IClipboard::EFormat getFormat() const38XWindowsClipboardUTF8Converter::getFormat() const 39 { 40 return IClipboard::kText; 41 } 42 43 Atom getAtom() const44XWindowsClipboardUTF8Converter::getAtom() const 45 { 46 return m_atom; 47 } 48 49 int getDataSize() const50XWindowsClipboardUTF8Converter::getDataSize() const 51 { 52 return 8; 53 } 54 fromIClipboard(const std::string & data) const55std::string XWindowsClipboardUTF8Converter::fromIClipboard(const std::string& data) const 56 { 57 return data; 58 } 59 toIClipboard(const std::string & data) const60std::string XWindowsClipboardUTF8Converter::toIClipboard(const std::string& data) const 61 { 62 return data; 63 } 64