mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-13 07:06:10 +08:00
initial revision of synergy. currently semi-supports X windows
on unix, but client screens don't simulate events other than mouse move. also not supporting clipboard at all yet and the main app is just a temporary framework to test with. must clean up protocol and communication.
This commit is contained in:
40
XBase.cpp
Normal file
40
XBase.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include "XBase.h"
|
||||
|
||||
// win32 wants a const char* argument to std::exception c'tor
|
||||
#if CONFIG_PLATFORM_WIN32
|
||||
#define STDEXCEPTARG ""
|
||||
#endif
|
||||
|
||||
// default to no argument
|
||||
#ifndef STDEXCEPTARG
|
||||
#define STDEXCEPTARG
|
||||
#endif
|
||||
|
||||
//
|
||||
// XBase
|
||||
//
|
||||
|
||||
XBase::XBase() : exception(STDEXCEPTARG)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
XBase::~XBase()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
const char* XBase::what() const
|
||||
{
|
||||
return getType();
|
||||
}
|
||||
|
||||
const char* XBase::getType() const
|
||||
{
|
||||
return "XBase.h";
|
||||
}
|
||||
|
||||
CString XBase::format(const CString& fmt) const
|
||||
{
|
||||
return fmt;
|
||||
}
|
||||
Reference in New Issue
Block a user