mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 08:51:41 +03:00
f15c9df85b
clipboard owner support (MS windows done, X windows partial) added key transfer on ms windows mutex fixes in CClient (had race conditions) faster debug output in ms windows changed temporary screen name to "secondary" network fixes on ms windows (poll returned wrong result) fixed transparent cursor on ms windows
29 lines
635 B
C++
29 lines
635 B
C++
#ifndef CMSWINDOWSCLIPBOARD_H
|
|
#define CMSWINDOWSCLIPBOARD_H
|
|
|
|
#include "IClipboard.h"
|
|
#include <windows.h>
|
|
|
|
class CMSWindowsClipboard : public IClipboard {
|
|
public:
|
|
CMSWindowsClipboard(HWND window);
|
|
virtual ~CMSWindowsClipboard();
|
|
|
|
// IClipboard overrides
|
|
virtual bool open();
|
|
virtual void close();
|
|
virtual void add(EFormat, const CString& data);
|
|
virtual bool has(EFormat) const;
|
|
virtual CString get(EFormat) const;
|
|
|
|
private:
|
|
UINT convertFormatToWin32(EFormat) const;
|
|
HANDLE convertTextToWin32(const CString& data) const;
|
|
CString convertTextFromWin32(HANDLE) const;
|
|
|
|
private:
|
|
HWND m_window;
|
|
};
|
|
|
|
#endif
|