chore: Use override for override methods
This commit is contained in:
parent
793ea5f81c
commit
41fda741b3
81 changed files with 532 additions and 531 deletions
|
|
@ -81,14 +81,14 @@ class Arch : public ARCH_CONSOLE,
|
||||||
public:
|
public:
|
||||||
Arch();
|
Arch();
|
||||||
Arch(Arch *arch);
|
Arch(Arch *arch);
|
||||||
virtual ~Arch();
|
~Arch() override;
|
||||||
|
|
||||||
//! Call init on other arch classes.
|
//! Call init on other arch classes.
|
||||||
/*!
|
/*!
|
||||||
Some arch classes depend on others to exist first. When init is called
|
Some arch classes depend on others to exist first. When init is called
|
||||||
these classes will have ARCH available for use.
|
these classes will have ARCH available for use.
|
||||||
*/
|
*/
|
||||||
virtual void init();
|
void init() override;
|
||||||
|
|
||||||
//
|
//
|
||||||
// accessors
|
// accessors
|
||||||
|
|
|
||||||
|
|
@ -16,19 +16,19 @@ public:
|
||||||
ArchConsoleStd()
|
ArchConsoleStd()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual ~ArchConsoleStd()
|
~ArchConsoleStd() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// IArchConsole overrides
|
// IArchConsole overrides
|
||||||
virtual void openConsole(const char *title)
|
void openConsole(const char *title) override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual void closeConsole()
|
void closeConsole() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual void showConsole(bool)
|
void showConsole(bool) override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual void writeConsole(ELevel level, const char *);
|
void writeConsole(ELevel level, const char *) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,17 +22,17 @@ class ArchDaemonNone : public IArchDaemon
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchDaemonNone();
|
ArchDaemonNone();
|
||||||
virtual ~ArchDaemonNone();
|
~ArchDaemonNone() override;
|
||||||
|
|
||||||
// IArchDaemon overrides
|
// IArchDaemon overrides
|
||||||
virtual void installDaemon(
|
void installDaemon(
|
||||||
const char *name, const char *description, const char *pathname, const char *commandLine, const char *dependencies
|
const char *name, const char *description, const char *pathname, const char *commandLine, const char *dependencies
|
||||||
);
|
) override;
|
||||||
virtual void uninstallDaemon(const char *name);
|
void uninstallDaemon(const char *name) override;
|
||||||
virtual int daemonize(const char *name, DaemonFunc func);
|
int daemonize(const char *name, DaemonFunc func) override;
|
||||||
virtual bool canInstallDaemon(const char *name);
|
bool canInstallDaemon(const char *name) override;
|
||||||
virtual bool isDaemonInstalled(const char *name);
|
bool isDaemonInstalled(const char *name) override;
|
||||||
virtual void installDaemon();
|
void installDaemon() override;
|
||||||
virtual void uninstallDaemon();
|
void uninstallDaemon() override;
|
||||||
virtual std::string commandLine() const;
|
std::string commandLine() const override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ public:
|
||||||
IArchString() = default;
|
IArchString() = default;
|
||||||
IArchString(const IArchString &) = delete;
|
IArchString(const IArchString &) = delete;
|
||||||
IArchString(IArchString &&) = delete;
|
IArchString(IArchString &&) = delete;
|
||||||
virtual ~IArchString();
|
~IArchString() override;
|
||||||
|
|
||||||
IArchString &operator=(const IArchString &) = delete;
|
IArchString &operator=(const IArchString &) = delete;
|
||||||
IArchString &operator=(IArchString &&) = delete;
|
IArchString &operator=(IArchString &&) = delete;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ public:
|
||||||
XArch(const std::string &msg) : std::runtime_error(msg)
|
XArch(const std::string &msg) : std::runtime_error(msg)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual ~XArch() throw()
|
~XArch() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@ class ArchConsoleUnix : public ArchConsoleStd
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchConsoleUnix();
|
ArchConsoleUnix();
|
||||||
virtual ~ArchConsoleUnix();
|
~ArchConsoleUnix() override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ class ArchDaemonUnix : public ArchDaemonNone
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchDaemonUnix();
|
ArchDaemonUnix();
|
||||||
virtual ~ArchDaemonUnix();
|
~ArchDaemonUnix() override;
|
||||||
|
|
||||||
// IArchDaemon overrides
|
// IArchDaemon overrides
|
||||||
virtual int daemonize(const char *name, DaemonFunc func);
|
int daemonize(const char *name, DaemonFunc func) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ class ArchLogUnix : public IArchLog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchLogUnix();
|
ArchLogUnix();
|
||||||
virtual ~ArchLogUnix();
|
~ArchLogUnix() override;
|
||||||
|
|
||||||
// IArchLog overrides
|
// IArchLog overrides
|
||||||
virtual void openLog(const char *name);
|
void openLog(const char *name) override;
|
||||||
virtual void closeLog();
|
void closeLog() override;
|
||||||
virtual void showLog(bool);
|
void showLog(bool) override;
|
||||||
virtual void writeLog(ELevel, const char *);
|
void writeLog(ELevel, const char *) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ public:
|
||||||
ArchMultithreadPosix();
|
ArchMultithreadPosix();
|
||||||
ArchMultithreadPosix(ArchMultithreadPosix const &) = delete;
|
ArchMultithreadPosix(ArchMultithreadPosix const &) = delete;
|
||||||
ArchMultithreadPosix(ArchMultithreadPosix &&) = delete;
|
ArchMultithreadPosix(ArchMultithreadPosix &&) = delete;
|
||||||
virtual ~ArchMultithreadPosix();
|
~ArchMultithreadPosix() override;
|
||||||
|
|
||||||
ArchMultithreadPosix &operator=(ArchMultithreadPosix const &) = delete;
|
ArchMultithreadPosix &operator=(ArchMultithreadPosix const &) = delete;
|
||||||
ArchMultithreadPosix &operator=(ArchMultithreadPosix &&) = delete;
|
ArchMultithreadPosix &operator=(ArchMultithreadPosix &&) = delete;
|
||||||
|
|
@ -54,29 +54,29 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IArchMultithread overrides
|
// IArchMultithread overrides
|
||||||
virtual ArchCond newCondVar();
|
ArchCond newCondVar() override;
|
||||||
virtual void closeCondVar(ArchCond);
|
void closeCondVar(ArchCond) override;
|
||||||
virtual void signalCondVar(ArchCond);
|
void signalCondVar(ArchCond) override;
|
||||||
virtual void broadcastCondVar(ArchCond);
|
void broadcastCondVar(ArchCond) override;
|
||||||
virtual bool waitCondVar(ArchCond, ArchMutex, double timeout);
|
bool waitCondVar(ArchCond, ArchMutex, double timeout) override;
|
||||||
virtual ArchMutex newMutex();
|
ArchMutex newMutex() override;
|
||||||
virtual void closeMutex(ArchMutex);
|
void closeMutex(ArchMutex) override;
|
||||||
virtual void lockMutex(ArchMutex);
|
void lockMutex(ArchMutex) override;
|
||||||
virtual void unlockMutex(ArchMutex);
|
void unlockMutex(ArchMutex) override;
|
||||||
virtual ArchThread newThread(ThreadFunc, void *);
|
ArchThread newThread(ThreadFunc, void *) override;
|
||||||
virtual ArchThread newCurrentThread();
|
ArchThread newCurrentThread() override;
|
||||||
virtual ArchThread copyThread(ArchThread);
|
ArchThread copyThread(ArchThread) override;
|
||||||
virtual void closeThread(ArchThread);
|
void closeThread(ArchThread) override;
|
||||||
virtual void cancelThread(ArchThread);
|
void cancelThread(ArchThread) override;
|
||||||
virtual void setPriorityOfThread(ArchThread, int n);
|
void setPriorityOfThread(ArchThread, int n) override;
|
||||||
virtual void testCancelThread();
|
void testCancelThread() override;
|
||||||
virtual bool wait(ArchThread, double timeout);
|
bool wait(ArchThread, double timeout) override;
|
||||||
virtual bool isSameThread(ArchThread, ArchThread);
|
bool isSameThread(ArchThread, ArchThread) override;
|
||||||
virtual bool isExitedThread(ArchThread);
|
bool isExitedThread(ArchThread) override;
|
||||||
virtual void *getResultOfThread(ArchThread);
|
void *getResultOfThread(ArchThread) override;
|
||||||
virtual ThreadID getIDOfThread(ArchThread);
|
ThreadID getIDOfThread(ArchThread) override;
|
||||||
virtual void setSignalHandler(ESignal, SignalFunc, void *);
|
void setSignalHandler(ESignal, SignalFunc, void *) override;
|
||||||
virtual void raiseSignal(ESignal);
|
void raiseSignal(ESignal) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void startSignalHandler();
|
void startSignalHandler();
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ class ArchSleepUnix : public IArchSleep
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchSleepUnix();
|
ArchSleepUnix();
|
||||||
virtual ~ArchSleepUnix();
|
~ArchSleepUnix() override;
|
||||||
|
|
||||||
// IArchSleep overrides
|
// IArchSleep overrides
|
||||||
virtual void sleep(double timeout);
|
void sleep(double timeout) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ class ArchStringUnix : public IArchString
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchStringUnix();
|
ArchStringUnix();
|
||||||
virtual ~ArchStringUnix();
|
~ArchStringUnix() override;
|
||||||
|
|
||||||
// IArchString overrides
|
// IArchString overrides
|
||||||
virtual EWideCharEncoding getWideCharEncoding();
|
EWideCharEncoding getWideCharEncoding() override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ class ArchTimeUnix : public IArchTime
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArchTimeUnix();
|
ArchTimeUnix();
|
||||||
virtual ~ArchTimeUnix();
|
~ArchTimeUnix() override;
|
||||||
|
|
||||||
// IArchTime overrides
|
// IArchTime overrides
|
||||||
virtual double time();
|
double time() override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ public:
|
||||||
XArchEvalUnix(int error) : m_error(error)
|
XArchEvalUnix(int error) : m_error(error)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual ~XArchEvalUnix() throw()
|
~XArchEvalUnix() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual std::string eval() const;
|
std::string eval() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_error;
|
int m_error;
|
||||||
|
|
|
||||||
|
|
@ -30,29 +30,29 @@ public:
|
||||||
EventQueue();
|
EventQueue();
|
||||||
EventQueue(EventQueue const &) = delete;
|
EventQueue(EventQueue const &) = delete;
|
||||||
EventQueue(EventQueue &&) = delete;
|
EventQueue(EventQueue &&) = delete;
|
||||||
virtual ~EventQueue();
|
~EventQueue() override;
|
||||||
EventQueue &operator=(EventQueue const &) = delete;
|
EventQueue &operator=(EventQueue const &) = delete;
|
||||||
EventQueue &operator=(EventQueue &&) = delete;
|
EventQueue &operator=(EventQueue &&) = delete;
|
||||||
|
|
||||||
// IEventQueue overrides
|
// IEventQueue overrides
|
||||||
virtual void loop();
|
void loop() override;
|
||||||
virtual void adoptBuffer(IEventQueueBuffer *);
|
void adoptBuffer(IEventQueueBuffer *) override;
|
||||||
virtual bool getEvent(Event &event, double timeout = -1.0);
|
bool getEvent(Event &event, double timeout = -1.0) override;
|
||||||
virtual bool dispatchEvent(const Event &event);
|
bool dispatchEvent(const Event &event) override;
|
||||||
virtual void addEvent(const Event &event);
|
void addEvent(const Event &event) override;
|
||||||
virtual EventQueueTimer *newTimer(double duration, void *target);
|
EventQueueTimer *newTimer(double duration, void *target) override;
|
||||||
virtual EventQueueTimer *newOneShotTimer(double duration, void *target);
|
EventQueueTimer *newOneShotTimer(double duration, void *target) override;
|
||||||
virtual void deleteTimer(EventQueueTimer *);
|
void deleteTimer(EventQueueTimer *) override;
|
||||||
virtual void adoptHandler(Event::Type type, void *target, IEventJob *handler);
|
void adoptHandler(Event::Type type, void *target, IEventJob *handler) override;
|
||||||
virtual void removeHandler(Event::Type type, void *target);
|
void removeHandler(Event::Type type, void *target) override;
|
||||||
virtual void removeHandlers(void *target);
|
void removeHandlers(void *target) override;
|
||||||
virtual Event::Type registerTypeOnce(Event::Type &type, const char *name);
|
Event::Type registerTypeOnce(Event::Type &type, const char *name) override;
|
||||||
virtual bool isEmpty() const;
|
bool isEmpty() const override;
|
||||||
virtual IEventJob *getHandler(Event::Type type, void *target) const;
|
IEventJob *getHandler(Event::Type type, void *target) const override;
|
||||||
virtual const char *getTypeName(Event::Type type);
|
const char *getTypeName(Event::Type type) override;
|
||||||
virtual Event::Type getRegisteredType(const std::string &name) const;
|
Event::Type getRegisteredType(const std::string &name) const override;
|
||||||
void *getSystemTarget();
|
void *getSystemTarget() override;
|
||||||
virtual void waitForReady() const;
|
void waitForReady() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t saveEvent(const Event &event);
|
uint32_t saveEvent(const Event &event);
|
||||||
|
|
@ -126,23 +126,23 @@ public:
|
||||||
//
|
//
|
||||||
// Event type providers.
|
// Event type providers.
|
||||||
//
|
//
|
||||||
ClientEvents &forClient();
|
ClientEvents &forClient() override;
|
||||||
IStreamEvents &forIStream();
|
IStreamEvents &forIStream() override;
|
||||||
IDataSocketEvents &forIDataSocket();
|
IDataSocketEvents &forIDataSocket() override;
|
||||||
IListenSocketEvents &forIListenSocket();
|
IListenSocketEvents &forIListenSocket() override;
|
||||||
ISocketEvents &forISocket();
|
ISocketEvents &forISocket() override;
|
||||||
OSXScreenEvents &forOSXScreen();
|
OSXScreenEvents &forOSXScreen() override;
|
||||||
ClientListenerEvents &forClientListener();
|
ClientListenerEvents &forClientListener() override;
|
||||||
ClientProxyEvents &forClientProxy();
|
ClientProxyEvents &forClientProxy() override;
|
||||||
ClientProxyUnknownEvents &forClientProxyUnknown();
|
ClientProxyUnknownEvents &forClientProxyUnknown() override;
|
||||||
ServerEvents &forServer();
|
ServerEvents &forServer() override;
|
||||||
ServerAppEvents &forServerApp();
|
ServerAppEvents &forServerApp() override;
|
||||||
IKeyStateEvents &forIKeyState();
|
IKeyStateEvents &forIKeyState() override;
|
||||||
IPrimaryScreenEvents &forIPrimaryScreen();
|
IPrimaryScreenEvents &forIPrimaryScreen() override;
|
||||||
IScreenEvents &forIScreen();
|
IScreenEvents &forIScreen() override;
|
||||||
ClipboardEvents &forClipboard();
|
ClipboardEvents &forClipboard() override;
|
||||||
FileEvents &forFile();
|
FileEvents &forFile() override;
|
||||||
EiEvents &forEi();
|
EiEvents &forEi() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ClientEvents *m_typesForClient;
|
ClientEvents *m_typesForClient;
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ class FunctionEventJob : public IEventJob
|
||||||
public:
|
public:
|
||||||
//! run() invokes \c func(arg)
|
//! run() invokes \c func(arg)
|
||||||
FunctionEventJob(void (*func)(const Event &, void *), void *arg = NULL);
|
FunctionEventJob(void (*func)(const Event &, void *), void *arg = NULL);
|
||||||
virtual ~FunctionEventJob();
|
~FunctionEventJob() override;
|
||||||
|
|
||||||
// IEventJob overrides
|
// IEventJob overrides
|
||||||
virtual void run(const Event &);
|
void run(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void (*m_func)(const Event &, void *);
|
void (*m_func)(const Event &, void *);
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ class FunctionJob : public IJob
|
||||||
public:
|
public:
|
||||||
//! run() invokes \c func(arg)
|
//! run() invokes \c func(arg)
|
||||||
FunctionJob(void (*func)(void *), void *arg = NULL);
|
FunctionJob(void (*func)(void *), void *arg = NULL);
|
||||||
virtual ~FunctionJob();
|
~FunctionJob() override;
|
||||||
|
|
||||||
// IJob overrides
|
// IJob overrides
|
||||||
virtual void run();
|
void run() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void (*m_func)(void *);
|
void (*m_func)(void *);
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,13 @@ class StopLogOutputter : public ILogOutputter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StopLogOutputter();
|
StopLogOutputter();
|
||||||
virtual ~StopLogOutputter();
|
~StopLogOutputter() override;
|
||||||
|
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
virtual void open(const char *title);
|
void open(const char *title) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void show(bool showIfEmpty);
|
void show(bool showIfEmpty) override;
|
||||||
virtual bool write(ELevel level, const char *message);
|
bool write(ELevel level, const char *message) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Write log to console
|
//! Write log to console
|
||||||
|
|
@ -40,14 +40,14 @@ class ConsoleLogOutputter : public ILogOutputter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ConsoleLogOutputter();
|
ConsoleLogOutputter();
|
||||||
virtual ~ConsoleLogOutputter();
|
~ConsoleLogOutputter() override;
|
||||||
|
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
virtual void open(const char *title);
|
void open(const char *title) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void show(bool showIfEmpty);
|
void show(bool showIfEmpty) override;
|
||||||
virtual bool write(ELevel level, const char *message);
|
bool write(ELevel level, const char *message) override;
|
||||||
virtual void flush();
|
void flush();
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Write log to file
|
//! Write log to file
|
||||||
|
|
@ -60,13 +60,13 @@ class FileLogOutputter : public ILogOutputter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FileLogOutputter(const char *logFile);
|
FileLogOutputter(const char *logFile);
|
||||||
virtual ~FileLogOutputter();
|
~FileLogOutputter() override;
|
||||||
|
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
virtual void open(const char *title);
|
void open(const char *title) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void show(bool showIfEmpty);
|
void show(bool showIfEmpty) override;
|
||||||
virtual bool write(ELevel level, const char *message);
|
bool write(ELevel level, const char *message) override;
|
||||||
|
|
||||||
void setLogFilename(const char *title);
|
void setLogFilename(const char *title);
|
||||||
|
|
||||||
|
|
@ -82,13 +82,13 @@ class SystemLogOutputter : public ILogOutputter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SystemLogOutputter();
|
SystemLogOutputter();
|
||||||
virtual ~SystemLogOutputter();
|
~SystemLogOutputter() override;
|
||||||
|
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
virtual void open(const char *title);
|
void open(const char *title) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void show(bool showIfEmpty);
|
void show(bool showIfEmpty) override;
|
||||||
virtual bool write(ELevel level, const char *message);
|
bool write(ELevel level, const char *message) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Write log to system log only
|
//! Write log to system log only
|
||||||
|
|
|
||||||
|
|
@ -21,21 +21,21 @@ public:
|
||||||
SimpleEventQueueBuffer();
|
SimpleEventQueueBuffer();
|
||||||
SimpleEventQueueBuffer(SimpleEventQueueBuffer const &) = delete;
|
SimpleEventQueueBuffer(SimpleEventQueueBuffer const &) = delete;
|
||||||
SimpleEventQueueBuffer(SimpleEventQueueBuffer &&) = delete;
|
SimpleEventQueueBuffer(SimpleEventQueueBuffer &&) = delete;
|
||||||
~SimpleEventQueueBuffer();
|
~SimpleEventQueueBuffer() override;
|
||||||
|
|
||||||
SimpleEventQueueBuffer &operator=(SimpleEventQueueBuffer const &) = delete;
|
SimpleEventQueueBuffer &operator=(SimpleEventQueueBuffer const &) = delete;
|
||||||
SimpleEventQueueBuffer &operator=(SimpleEventQueueBuffer &&) = delete;
|
SimpleEventQueueBuffer &operator=(SimpleEventQueueBuffer &&) = delete;
|
||||||
|
|
||||||
// IEventQueueBuffer overrides
|
// IEventQueueBuffer overrides
|
||||||
void init()
|
void init() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual void waitForEvent(double timeout);
|
void waitForEvent(double timeout) override;
|
||||||
virtual Type getEvent(Event &event, uint32_t &dataID);
|
Type getEvent(Event &event, uint32_t &dataID) override;
|
||||||
virtual bool addEvent(uint32_t dataID);
|
bool addEvent(uint32_t dataID) override;
|
||||||
virtual bool isEmpty() const;
|
bool isEmpty() const override;
|
||||||
virtual EventQueueTimer *newTimer(double duration, bool oneShot) const;
|
EventQueueTimer *newTimer(double duration, bool oneShot) const override;
|
||||||
virtual void deleteTimer(EventQueueTimer *) const;
|
void deleteTimer(EventQueueTimer *) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using EventDeque = std::deque<uint32_t>;
|
using EventDeque = std::deque<uint32_t>;
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ template <class T> class TMethodEventJob : public IEventJob
|
||||||
public:
|
public:
|
||||||
//! run(event) invokes \c object->method(event, arg)
|
//! run(event) invokes \c object->method(event, arg)
|
||||||
TMethodEventJob(T *object, void (T::*method)(const Event &, void *), void *arg = NULL);
|
TMethodEventJob(T *object, void (T::*method)(const Event &, void *), void *arg = NULL);
|
||||||
virtual ~TMethodEventJob();
|
~TMethodEventJob() override;
|
||||||
|
|
||||||
// IJob overrides
|
// IJob overrides
|
||||||
virtual void run(const Event &);
|
void run(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T *m_object;
|
T *m_object;
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ template <class T> class TMethodJob : public IJob
|
||||||
public:
|
public:
|
||||||
//! run() invokes \c object->method(arg)
|
//! run() invokes \c object->method(arg)
|
||||||
TMethodJob(T *object, void (T::*method)(void *), void *arg = NULL);
|
TMethodJob(T *object, void (T::*method)(void *), void *arg = NULL);
|
||||||
virtual ~TMethodJob();
|
~TMethodJob() override;
|
||||||
|
|
||||||
// IJob overrides
|
// IJob overrides
|
||||||
virtual void run();
|
void run() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T *m_object;
|
T *m_object;
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@ public:
|
||||||
XBase();
|
XBase();
|
||||||
//! Use \c msg as the result of what()
|
//! Use \c msg as the result of what()
|
||||||
XBase(const std::string &msg);
|
XBase(const std::string &msg);
|
||||||
virtual ~XBase() throw();
|
~XBase() throw() override;
|
||||||
|
|
||||||
//! Reason for exception
|
//! Reason for exception
|
||||||
virtual const char *what() const throw();
|
const char *what() const throw() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Get a human readable string describing the exception
|
//! Get a human readable string describing the exception
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ public:
|
||||||
);
|
);
|
||||||
Client(Client const &) = delete;
|
Client(Client const &) = delete;
|
||||||
Client(Client &&) = delete;
|
Client(Client &&) = delete;
|
||||||
~Client();
|
~Client() override;
|
||||||
|
|
||||||
Client &operator=(Client const &) = delete;
|
Client &operator=(Client const &) = delete;
|
||||||
Client &operator=(Client &&) = delete;
|
Client &operator=(Client &&) = delete;
|
||||||
|
|
@ -160,29 +160,29 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const;
|
bool getClipboard(ClipboardID id, IClipboard *) const override;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const;
|
void getCursorPos(int32_t &x, int32_t &y) const override;
|
||||||
|
|
||||||
// IClient overrides
|
// IClient overrides
|
||||||
virtual void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver);
|
void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver) override;
|
||||||
virtual bool leave();
|
bool leave() override;
|
||||||
virtual void setClipboard(ClipboardID, const IClipboard *);
|
void setClipboard(ClipboardID, const IClipboard *) override;
|
||||||
virtual void grabClipboard(ClipboardID);
|
void grabClipboard(ClipboardID) override;
|
||||||
virtual void setClipboardDirty(ClipboardID, bool);
|
void setClipboardDirty(ClipboardID, bool) override;
|
||||||
virtual void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &);
|
void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) override;
|
||||||
virtual void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang);
|
void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang) override;
|
||||||
virtual void keyUp(KeyID, KeyModifierMask, KeyButton);
|
void keyUp(KeyID, KeyModifierMask, KeyButton) override;
|
||||||
virtual void mouseDown(ButtonID);
|
void mouseDown(ButtonID) override;
|
||||||
virtual void mouseUp(ButtonID);
|
void mouseUp(ButtonID) override;
|
||||||
virtual void mouseMove(int32_t xAbs, int32_t yAbs);
|
void mouseMove(int32_t xAbs, int32_t yAbs) override;
|
||||||
virtual void mouseRelativeMove(int32_t xRel, int32_t yRel);
|
void mouseRelativeMove(int32_t xRel, int32_t yRel) override;
|
||||||
virtual void mouseWheel(int32_t xDelta, int32_t yDelta);
|
void mouseWheel(int32_t xDelta, int32_t yDelta) override;
|
||||||
virtual void screensaver(bool activate);
|
void screensaver(bool activate) override;
|
||||||
virtual void resetOptions();
|
void resetOptions() override;
|
||||||
virtual void setOptions(const OptionsList &options);
|
void setOptions(const OptionsList &options) override;
|
||||||
virtual std::string getName() const;
|
std::string getName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void sendClipboard(ClipboardID);
|
void sendClipboard(ClipboardID);
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ private:
|
||||||
explicit Settings(QObject *parent = nullptr);
|
explicit Settings(QObject *parent = nullptr);
|
||||||
Settings *operator=(Settings &other) = delete;
|
Settings *operator=(Settings &other) = delete;
|
||||||
Settings(const Settings &other) = delete;
|
Settings(const Settings &other) = delete;
|
||||||
~Settings() = default;
|
~Settings() override = default;
|
||||||
void cleanSettings();
|
void cleanSettings();
|
||||||
|
|
||||||
QSettings *m_settings = nullptr;
|
QSettings *m_settings = nullptr;
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public:
|
||||||
App(IEventQueue *events, deskflow::ArgsBase *args);
|
App(IEventQueue *events, deskflow::ArgsBase *args);
|
||||||
App(App const &) = delete;
|
App(App const &) = delete;
|
||||||
App(App &&) = delete;
|
App(App &&) = delete;
|
||||||
virtual ~App();
|
~App() override;
|
||||||
|
|
||||||
App &operator=(App const &) = delete;
|
App &operator=(App const &) = delete;
|
||||||
App &operator=(App &&) = delete;
|
App &operator=(App &&) = delete;
|
||||||
|
|
@ -56,15 +56,15 @@ public:
|
||||||
virtual std::string configSection() const = 0;
|
virtual std::string configSection() const = 0;
|
||||||
|
|
||||||
virtual void version();
|
virtual void version();
|
||||||
virtual void setByeFunc(void (*bye)(int))
|
void setByeFunc(void (*bye)(int)) override
|
||||||
{
|
{
|
||||||
m_bye = bye;
|
m_bye = bye;
|
||||||
}
|
}
|
||||||
virtual void bye(int error)
|
void bye(int error) override
|
||||||
{
|
{
|
||||||
m_bye(error);
|
m_bye(error);
|
||||||
}
|
}
|
||||||
virtual IEventQueue *getEvents() const
|
IEventQueue *getEvents() const override
|
||||||
{
|
{
|
||||||
return m_events;
|
return m_events;
|
||||||
}
|
}
|
||||||
|
|
@ -73,7 +73,7 @@ public:
|
||||||
{
|
{
|
||||||
return m_appUtil;
|
return m_appUtil;
|
||||||
}
|
}
|
||||||
deskflow::ArgsBase &argsBase() const
|
deskflow::ArgsBase &argsBase() const override
|
||||||
{
|
{
|
||||||
return *m_args;
|
return *m_args;
|
||||||
}
|
}
|
||||||
|
|
@ -81,7 +81,7 @@ public:
|
||||||
int daemonMainLoop(int, const char **);
|
int daemonMainLoop(int, const char **);
|
||||||
void setupFileLogging();
|
void setupFileLogging();
|
||||||
void loggingFilterWarning();
|
void loggingFilterWarning();
|
||||||
void initApp(int argc, const char **argv);
|
void initApp(int argc, const char **argv) override;
|
||||||
void initApp(int argc, char **argv)
|
void initApp(int argc, char **argv)
|
||||||
{
|
{
|
||||||
initApp(argc, (const char **)argv);
|
initApp(argc, (const char **)argv);
|
||||||
|
|
@ -126,20 +126,20 @@ class MinimalApp : public App
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MinimalApp();
|
MinimalApp();
|
||||||
virtual ~MinimalApp();
|
~MinimalApp() override;
|
||||||
|
|
||||||
// IApp overrides
|
// IApp overrides
|
||||||
virtual int standardStartup(int argc, char **argv) override;
|
int standardStartup(int argc, char **argv) override;
|
||||||
virtual int runInner(int argc, char **argv, StartupFunc startup) override;
|
int runInner(int argc, char **argv, StartupFunc startup) override;
|
||||||
virtual void startNode() override;
|
void startNode() override;
|
||||||
virtual int mainLoop() override;
|
int mainLoop() override;
|
||||||
virtual int foregroundStartup(int argc, char **argv) override;
|
int foregroundStartup(int argc, char **argv) override;
|
||||||
virtual deskflow::Screen *createScreen() override;
|
deskflow::Screen *createScreen() override;
|
||||||
virtual void loadConfig() override;
|
void loadConfig() override;
|
||||||
virtual bool loadConfig(const std::string &pathname) override;
|
bool loadConfig(const std::string &pathname) override;
|
||||||
virtual const char *daemonInfo() const override;
|
const char *daemonInfo() const override;
|
||||||
virtual const char *daemonName() const override;
|
const char *daemonName() const override;
|
||||||
virtual void parseArgs(int argc, const char *const *argv) override;
|
void parseArgs(int argc, const char *const *argv) override;
|
||||||
|
|
||||||
//
|
//
|
||||||
// App overrides
|
// App overrides
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ class AppUtil : public IAppUtil
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AppUtil();
|
AppUtil();
|
||||||
virtual ~AppUtil();
|
~AppUtil() override;
|
||||||
|
|
||||||
virtual void adoptApp(IApp *app);
|
void adoptApp(IApp *app) override;
|
||||||
IApp &app() const;
|
IApp &app() const override;
|
||||||
virtual void exitApp(int code)
|
virtual void exitApp(int code)
|
||||||
{
|
{
|
||||||
throw XExitApp(code);
|
throw XExitApp(code);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class ClientApp : public App
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientApp(IEventQueue *events);
|
ClientApp(IEventQueue *events);
|
||||||
virtual ~ClientApp();
|
~ClientApp() override;
|
||||||
|
|
||||||
//
|
//
|
||||||
// IApp overrides
|
// IApp overrides
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class Clipboard : public IClipboard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Clipboard();
|
Clipboard();
|
||||||
virtual ~Clipboard();
|
~Clipboard() override;
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -43,13 +43,13 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IClipboard overrides
|
// IClipboard overrides
|
||||||
virtual bool empty();
|
bool empty() override;
|
||||||
virtual void add(EFormat, const std::string &data);
|
void add(EFormat, const std::string &data) override;
|
||||||
virtual bool open(Time) const;
|
bool open(Time) const override;
|
||||||
virtual void close() const;
|
void close() const override;
|
||||||
virtual Time getTime() const;
|
Time getTime() const override;
|
||||||
virtual bool has(EFormat) const;
|
bool has(EFormat) const override;
|
||||||
virtual std::string get(EFormat) const;
|
std::string get(EFormat) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable bool m_open;
|
mutable bool m_open;
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,8 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
virtual void *getEventTarget() const = 0;
|
void *getEventTarget() const override = 0;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
|
bool getClipboard(ClipboardID id, IClipboard *) const override = 0;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override = 0;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
|
void getCursorPos(int32_t &x, int32_t &y) const override = 0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -150,44 +150,44 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
virtual void *getEventTarget() const = 0;
|
void *getEventTarget() const override = 0;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
|
bool getClipboard(ClipboardID id, IClipboard *) const override = 0;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override = 0;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
|
void getCursorPos(int32_t &x, int32_t &y) const override = 0;
|
||||||
|
|
||||||
// IPrimaryScreen overrides
|
// IPrimaryScreen overrides
|
||||||
virtual void reconfigure(uint32_t activeSides) = 0;
|
void reconfigure(uint32_t activeSides) override = 0;
|
||||||
virtual void warpCursor(int32_t x, int32_t y) = 0;
|
void warpCursor(int32_t x, int32_t y) override = 0;
|
||||||
virtual uint32_t registerHotKey(KeyID key, KeyModifierMask mask) = 0;
|
uint32_t registerHotKey(KeyID key, KeyModifierMask mask) override = 0;
|
||||||
virtual void unregisterHotKey(uint32_t id) = 0;
|
void unregisterHotKey(uint32_t id) override = 0;
|
||||||
virtual void fakeInputBegin() = 0;
|
void fakeInputBegin() override = 0;
|
||||||
virtual void fakeInputEnd() = 0;
|
void fakeInputEnd() override = 0;
|
||||||
virtual int32_t getJumpZoneSize() const = 0;
|
int32_t getJumpZoneSize() const override = 0;
|
||||||
virtual bool isAnyMouseButtonDown(uint32_t &buttonID) const = 0;
|
bool isAnyMouseButtonDown(uint32_t &buttonID) const override = 0;
|
||||||
virtual void getCursorCenter(int32_t &x, int32_t &y) const = 0;
|
void getCursorCenter(int32_t &x, int32_t &y) const override = 0;
|
||||||
|
|
||||||
// ISecondaryScreen overrides
|
// ISecondaryScreen overrides
|
||||||
virtual void fakeMouseButton(ButtonID id, bool press) = 0;
|
void fakeMouseButton(ButtonID id, bool press) override = 0;
|
||||||
virtual void fakeMouseMove(int32_t x, int32_t y) = 0;
|
void fakeMouseMove(int32_t x, int32_t y) override = 0;
|
||||||
virtual void fakeMouseRelativeMove(int32_t dx, int32_t dy) const = 0;
|
void fakeMouseRelativeMove(int32_t dx, int32_t dy) const override = 0;
|
||||||
virtual void fakeMouseWheel(int32_t xDelta, int32_t yDelta) const = 0;
|
void fakeMouseWheel(int32_t xDelta, int32_t yDelta) const override = 0;
|
||||||
|
|
||||||
// IKeyState overrides
|
// IKeyState overrides
|
||||||
virtual void updateKeyMap() = 0;
|
void updateKeyMap() override = 0;
|
||||||
virtual void updateKeyState() = 0;
|
void updateKeyState() override = 0;
|
||||||
virtual void setHalfDuplexMask(KeyModifierMask) = 0;
|
void setHalfDuplexMask(KeyModifierMask) override = 0;
|
||||||
virtual void fakeKeyDown(KeyID id, KeyModifierMask mask, KeyButton button, const std::string &lang) = 0;
|
void fakeKeyDown(KeyID id, KeyModifierMask mask, KeyButton button, const std::string &lang) override = 0;
|
||||||
virtual bool
|
bool
|
||||||
fakeKeyRepeat(KeyID id, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang) = 0;
|
fakeKeyRepeat(KeyID id, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang) override = 0;
|
||||||
virtual bool fakeKeyUp(KeyButton button) = 0;
|
bool fakeKeyUp(KeyButton button) override = 0;
|
||||||
virtual void fakeAllKeysUp() = 0;
|
void fakeAllKeysUp() override = 0;
|
||||||
virtual bool fakeCtrlAltDel() = 0;
|
bool fakeCtrlAltDel() override = 0;
|
||||||
virtual bool fakeMediaKey(KeyID id);
|
bool fakeMediaKey(KeyID id) override;
|
||||||
virtual bool isKeyDown(KeyButton) const = 0;
|
bool isKeyDown(KeyButton) const override = 0;
|
||||||
virtual KeyModifierMask getActiveModifiers() const = 0;
|
KeyModifierMask getActiveModifiers() const override = 0;
|
||||||
virtual KeyModifierMask pollActiveModifiers() const = 0;
|
KeyModifierMask pollActiveModifiers() const override = 0;
|
||||||
virtual int32_t pollActiveGroup() const = 0;
|
int32_t pollActiveGroup() const override = 0;
|
||||||
virtual void pollPressedKeys(KeyButtonSet &pressedKeys) const = 0;
|
void pollPressedKeys(KeyButtonSet &pressedKeys) const override = 0;
|
||||||
|
|
||||||
virtual std::string &getDraggingFilename() = 0;
|
virtual std::string &getDraggingFilename() = 0;
|
||||||
virtual void clearDraggingFilename() = 0;
|
virtual void clearDraggingFilename() = 0;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class KeyState : public IKeyState
|
||||||
public:
|
public:
|
||||||
KeyState(IEventQueue *events, std::vector<std::string> layouts, bool isLangSyncEnabled);
|
KeyState(IEventQueue *events, std::vector<std::string> layouts, bool isLangSyncEnabled);
|
||||||
KeyState(IEventQueue *events, deskflow::KeyMap &keyMap, std::vector<std::string> layouts, bool isLangSyncEnabled);
|
KeyState(IEventQueue *events, deskflow::KeyMap &keyMap, std::vector<std::string> layouts, bool isLangSyncEnabled);
|
||||||
virtual ~KeyState();
|
~KeyState() override;
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -67,10 +67,10 @@ public:
|
||||||
bool isKeyDown(KeyButton) const override;
|
bool isKeyDown(KeyButton) const override;
|
||||||
KeyModifierMask getActiveModifiers() const override;
|
KeyModifierMask getActiveModifiers() const override;
|
||||||
// Left abstract
|
// Left abstract
|
||||||
virtual bool fakeCtrlAltDel() override = 0;
|
bool fakeCtrlAltDel() override = 0;
|
||||||
virtual KeyModifierMask pollActiveModifiers() const override = 0;
|
KeyModifierMask pollActiveModifiers() const override = 0;
|
||||||
virtual int32_t pollActiveGroup() const override = 0;
|
int32_t pollActiveGroup() const override = 0;
|
||||||
virtual void pollPressedKeys(KeyButtonSet &pressedKeys) const override = 0;
|
void pollPressedKeys(KeyButtonSet &pressedKeys) const override = 0;
|
||||||
|
|
||||||
int32_t getKeyState(KeyButton keyButton)
|
int32_t getKeyState(KeyButton keyButton)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,19 +21,19 @@ class PacketStreamFilter : public StreamFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PacketStreamFilter(IEventQueue *events, deskflow::IStream *stream, bool adoptStream = true);
|
PacketStreamFilter(IEventQueue *events, deskflow::IStream *stream, bool adoptStream = true);
|
||||||
~PacketStreamFilter();
|
~PacketStreamFilter() override;
|
||||||
|
|
||||||
// IStream overrides
|
// IStream overrides
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual uint32_t read(void *buffer, uint32_t n);
|
uint32_t read(void *buffer, uint32_t n) override;
|
||||||
virtual void write(const void *buffer, uint32_t n);
|
void write(const void *buffer, uint32_t n) override;
|
||||||
virtual void shutdownInput();
|
void shutdownInput() override;
|
||||||
virtual bool isReady() const;
|
bool isReady() const override;
|
||||||
virtual uint32_t getSize() const;
|
uint32_t getSize() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// StreamFilter overrides
|
// StreamFilter overrides
|
||||||
virtual void filterEvent(const Event &);
|
void filterEvent(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool isReadyNoLock() const;
|
bool isReadyNoLock() const;
|
||||||
|
|
|
||||||
|
|
@ -25,84 +25,84 @@ public:
|
||||||
PlatformScreen(
|
PlatformScreen(
|
||||||
IEventQueue *events, deskflow::ClientScrollDirection scrollDirection = deskflow::ClientScrollDirection::SERVER
|
IEventQueue *events, deskflow::ClientScrollDirection scrollDirection = deskflow::ClientScrollDirection::SERVER
|
||||||
);
|
);
|
||||||
virtual ~PlatformScreen();
|
~PlatformScreen() override;
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
virtual void *getEventTarget() const = 0;
|
void *getEventTarget() const override = 0;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
|
bool getClipboard(ClipboardID id, IClipboard *) const override = 0;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override = 0;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
|
void getCursorPos(int32_t &x, int32_t &y) const override = 0;
|
||||||
|
|
||||||
// IPrimaryScreen overrides
|
// IPrimaryScreen overrides
|
||||||
virtual void reconfigure(uint32_t activeSides) = 0;
|
void reconfigure(uint32_t activeSides) override = 0;
|
||||||
virtual void warpCursor(int32_t x, int32_t y) = 0;
|
void warpCursor(int32_t x, int32_t y) override = 0;
|
||||||
virtual uint32_t registerHotKey(KeyID key, KeyModifierMask mask) = 0;
|
uint32_t registerHotKey(KeyID key, KeyModifierMask mask) override = 0;
|
||||||
virtual void unregisterHotKey(uint32_t id) = 0;
|
void unregisterHotKey(uint32_t id) override = 0;
|
||||||
virtual void fakeInputBegin() = 0;
|
void fakeInputBegin() override = 0;
|
||||||
virtual void fakeInputEnd() = 0;
|
void fakeInputEnd() override = 0;
|
||||||
virtual int32_t getJumpZoneSize() const = 0;
|
int32_t getJumpZoneSize() const override = 0;
|
||||||
virtual bool isAnyMouseButtonDown(uint32_t &buttonID) const = 0;
|
bool isAnyMouseButtonDown(uint32_t &buttonID) const override = 0;
|
||||||
virtual void getCursorCenter(int32_t &x, int32_t &y) const = 0;
|
void getCursorCenter(int32_t &x, int32_t &y) const override = 0;
|
||||||
|
|
||||||
// ISecondaryScreen overrides
|
// ISecondaryScreen overrides
|
||||||
virtual void fakeMouseButton(ButtonID id, bool press) = 0;
|
void fakeMouseButton(ButtonID id, bool press) override = 0;
|
||||||
virtual void fakeMouseMove(int32_t x, int32_t y) = 0;
|
void fakeMouseMove(int32_t x, int32_t y) override = 0;
|
||||||
virtual void fakeMouseRelativeMove(int32_t dx, int32_t dy) const = 0;
|
void fakeMouseRelativeMove(int32_t dx, int32_t dy) const override = 0;
|
||||||
virtual void fakeMouseWheel(int32_t xDelta, int32_t yDelta) const = 0;
|
void fakeMouseWheel(int32_t xDelta, int32_t yDelta) const override = 0;
|
||||||
|
|
||||||
// IKeyState overrides
|
// IKeyState overrides
|
||||||
virtual void updateKeyMap();
|
void updateKeyMap() override;
|
||||||
virtual void updateKeyState();
|
void updateKeyState() override;
|
||||||
virtual void setHalfDuplexMask(KeyModifierMask);
|
void setHalfDuplexMask(KeyModifierMask) override;
|
||||||
virtual void fakeKeyDown(KeyID id, KeyModifierMask mask, KeyButton button, const std::string &);
|
void fakeKeyDown(KeyID id, KeyModifierMask mask, KeyButton button, const std::string &) override;
|
||||||
virtual bool fakeKeyRepeat(KeyID id, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang);
|
bool fakeKeyRepeat(KeyID id, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang) override;
|
||||||
virtual bool fakeKeyUp(KeyButton button);
|
bool fakeKeyUp(KeyButton button) override;
|
||||||
virtual void fakeAllKeysUp();
|
void fakeAllKeysUp() override;
|
||||||
virtual bool fakeCtrlAltDel();
|
bool fakeCtrlAltDel() override;
|
||||||
virtual bool isKeyDown(KeyButton) const;
|
bool isKeyDown(KeyButton) const override;
|
||||||
virtual KeyModifierMask getActiveModifiers() const;
|
KeyModifierMask getActiveModifiers() const override;
|
||||||
virtual KeyModifierMask pollActiveModifiers() const;
|
KeyModifierMask pollActiveModifiers() const override;
|
||||||
virtual int32_t pollActiveGroup() const;
|
int32_t pollActiveGroup() const override;
|
||||||
virtual void pollPressedKeys(KeyButtonSet &pressedKeys) const;
|
void pollPressedKeys(KeyButtonSet &pressedKeys) const override;
|
||||||
|
|
||||||
virtual void setDraggingStarted(bool started)
|
void setDraggingStarted(bool started) override
|
||||||
{
|
{
|
||||||
m_draggingStarted = started;
|
m_draggingStarted = started;
|
||||||
}
|
}
|
||||||
virtual bool isDraggingStarted();
|
bool isDraggingStarted() override;
|
||||||
virtual bool isFakeDraggingStarted()
|
bool isFakeDraggingStarted() override
|
||||||
{
|
{
|
||||||
return m_fakeDraggingStarted;
|
return m_fakeDraggingStarted;
|
||||||
}
|
}
|
||||||
virtual std::string &getDraggingFilename()
|
std::string &getDraggingFilename() override
|
||||||
{
|
{
|
||||||
return m_draggingFilename;
|
return m_draggingFilename;
|
||||||
}
|
}
|
||||||
virtual void clearDraggingFilename()
|
void clearDraggingFilename() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// IPlatformScreen overrides
|
// IPlatformScreen overrides
|
||||||
virtual void enable() = 0;
|
void enable() override = 0;
|
||||||
virtual void disable() = 0;
|
void disable() override = 0;
|
||||||
virtual void enter() = 0;
|
void enter() override = 0;
|
||||||
virtual bool canLeave() = 0;
|
bool canLeave() override = 0;
|
||||||
virtual void leave() = 0;
|
void leave() override = 0;
|
||||||
virtual bool setClipboard(ClipboardID, const IClipboard *) = 0;
|
bool setClipboard(ClipboardID, const IClipboard *) override = 0;
|
||||||
virtual void checkClipboards() = 0;
|
void checkClipboards() override = 0;
|
||||||
virtual void openScreensaver(bool notify) = 0;
|
void openScreensaver(bool notify) override = 0;
|
||||||
virtual void closeScreensaver() = 0;
|
void closeScreensaver() override = 0;
|
||||||
virtual void screensaver(bool activate) = 0;
|
void screensaver(bool activate) override = 0;
|
||||||
virtual void resetOptions() = 0;
|
void resetOptions() override = 0;
|
||||||
virtual void setOptions(const OptionsList &options) = 0;
|
void setOptions(const OptionsList &options) override = 0;
|
||||||
virtual void setSequenceNumber(uint32_t) = 0;
|
void setSequenceNumber(uint32_t) override = 0;
|
||||||
virtual bool isPrimary() const = 0;
|
bool isPrimary() const override = 0;
|
||||||
|
|
||||||
virtual void fakeDraggingFiles(DragFileList fileList)
|
void fakeDraggingFiles(DragFileList fileList) override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("fakeDraggingFiles not implemented");
|
throw std::runtime_error("fakeDraggingFiles not implemented");
|
||||||
}
|
}
|
||||||
virtual const std::string &getDropTarget() const
|
const std::string &getDropTarget() const override
|
||||||
{
|
{
|
||||||
throw std::runtime_error("getDropTarget not implemented");
|
throw std::runtime_error("getDropTarget not implemented");
|
||||||
}
|
}
|
||||||
|
|
@ -123,7 +123,7 @@ protected:
|
||||||
virtual IKeyState *getKeyState() const = 0;
|
virtual IKeyState *getKeyState() const = 0;
|
||||||
|
|
||||||
// IPlatformScreen overrides
|
// IPlatformScreen overrides
|
||||||
virtual void handleSystemEvent(const Event &event, void *) = 0;
|
void handleSystemEvent(const Event &event, void *) override = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief mapClientScrollDirection
|
* \brief mapClientScrollDirection
|
||||||
|
|
|
||||||
|
|
@ -102,5 +102,5 @@ class XIOReadMismatch : public XIO
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// XBase overrides
|
// XBase overrides
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public:
|
||||||
Screen(IPlatformScreen *platformScreen, IEventQueue *events);
|
Screen(IPlatformScreen *platformScreen, IEventQueue *events);
|
||||||
Screen(Screen const &) = delete;
|
Screen(Screen const &) = delete;
|
||||||
Screen(Screen &&) = delete;
|
Screen(Screen &&) = delete;
|
||||||
virtual ~Screen();
|
~Screen() override;
|
||||||
|
|
||||||
Screen &operator&(Screen const &) = delete;
|
Screen &operator&(Screen const &) = delete;
|
||||||
Screen &operator&(Screen &&) = delete;
|
Screen &operator&(Screen &&) = delete;
|
||||||
|
|
@ -297,10 +297,10 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const;
|
bool getClipboard(ClipboardID id, IClipboard *) const override;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const;
|
void getCursorPos(int32_t &x, int32_t &y) const override;
|
||||||
|
|
||||||
IPlatformScreen *getPlatformScreen()
|
IPlatformScreen *getPlatformScreen()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class ServerApp : public App
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ServerApp(IEventQueue *events);
|
ServerApp(IEventQueue *events);
|
||||||
virtual ~ServerApp();
|
~ServerApp() override;
|
||||||
|
|
||||||
//
|
//
|
||||||
// IApp overrides
|
// IApp overrides
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_major;
|
int m_major;
|
||||||
|
|
@ -66,7 +66,7 @@ class XDuplicateClient : public XDeskflow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XDuplicateClient(const std::string &name);
|
XDuplicateClient(const std::string &name);
|
||||||
virtual ~XDuplicateClient() throw()
|
~XDuplicateClient() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
|
|
@ -94,7 +94,7 @@ class XUnknownClient : public XDeskflow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XUnknownClient(const std::string &name);
|
XUnknownClient(const std::string &name);
|
||||||
virtual ~XUnknownClient() throw()
|
~XUnknownClient() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,7 +107,7 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
|
|
@ -123,7 +123,7 @@ class XExitApp : public XDeskflow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XExitApp(int code);
|
XExitApp(int code);
|
||||||
virtual ~XExitApp() throw()
|
~XExitApp() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,7 +131,7 @@ public:
|
||||||
int getCode() const throw();
|
int getCode() const throw();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_code;
|
int m_code;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ public:
|
||||||
trying to open the screen again.
|
trying to open the screen again.
|
||||||
*/
|
*/
|
||||||
XScreenUnavailable(double timeUntilRetry);
|
XScreenUnavailable(double timeUntilRetry);
|
||||||
virtual ~XScreenUnavailable() throw();
|
~XScreenUnavailable() throw() override;
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -51,7 +51,7 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double m_timeUntilRetry;
|
double m_timeUntilRetry;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class AppUtilUnix : public AppUtil
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AppUtilUnix(IEventQueue *events);
|
AppUtilUnix(IEventQueue *events);
|
||||||
virtual ~AppUtilUnix();
|
~AppUtilUnix() override;
|
||||||
|
|
||||||
int run(int argc, char **argv) override;
|
int run(int argc, char **argv) override;
|
||||||
void startNode() override;
|
void startNode() override;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class DataDownloader : public QObject
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DataDownloader(QObject *parent = 0);
|
explicit DataDownloader(QObject *parent = 0);
|
||||||
virtual ~DataDownloader();
|
~DataDownloader() override;
|
||||||
|
|
||||||
QByteArray data() const;
|
QByteArray data() const;
|
||||||
void cancel();
|
void cancel();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public:
|
||||||
{
|
{
|
||||||
return m_MimeType;
|
return m_MimeType;
|
||||||
}
|
}
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||||
int rowCount() const
|
int rowCount() const
|
||||||
{
|
{
|
||||||
return m_NumRows;
|
return m_NumRows;
|
||||||
|
|
@ -41,25 +41,26 @@ public:
|
||||||
{
|
{
|
||||||
return m_NumColumns;
|
return m_NumColumns;
|
||||||
}
|
}
|
||||||
int rowCount(const QModelIndex &) const
|
int rowCount(const QModelIndex &) const override
|
||||||
{
|
{
|
||||||
return rowCount();
|
return rowCount();
|
||||||
}
|
}
|
||||||
int columnCount(const QModelIndex &) const
|
int columnCount(const QModelIndex &) const override
|
||||||
{
|
{
|
||||||
return columnCount();
|
return columnCount();
|
||||||
}
|
}
|
||||||
Qt::DropActions supportedDropActions() const;
|
Qt::DropActions supportedDropActions() const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
QStringList mimeTypes() const;
|
QStringList mimeTypes() const override;
|
||||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||||
bool isFull() const;
|
bool isFull() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void screensChanged();
|
void screensChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
bool
|
||||||
|
dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||||
const Screen &screen(const QModelIndex &index) const
|
const Screen &screen(const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
return screen(index.column(), index.row());
|
return screen(index.column(), index.row());
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ public:
|
||||||
QWidget *parent = nullptr, const QList<deskflow::FingerprintData> &fingerprints = {},
|
QWidget *parent = nullptr, const QList<deskflow::FingerprintData> &fingerprints = {},
|
||||||
FingerprintDialogMode mode = FingerprintDialogMode::Local
|
FingerprintDialogMode mode = FingerprintDialogMode::Local
|
||||||
);
|
);
|
||||||
~FingerprintDialog() = default;
|
~FingerprintDialog() override = default;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void requestLocalPrintsDialog();
|
void requestLocalPrintsDialog();
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class ServerConfigDialog : public QDialog
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ServerConfigDialog(QWidget *parent, ServerConfig &config);
|
ServerConfigDialog(QWidget *parent, ServerConfig &config);
|
||||||
~ServerConfigDialog();
|
~ServerConfigDialog() override;
|
||||||
bool addClient(const QString &clientName);
|
bool addClient(const QString &clientName);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ class FingerprintPreview : public QFrame
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit FingerprintPreview(QWidget *parent, const QList<deskflow::FingerprintData> &fingerprints = {});
|
explicit FingerprintPreview(QWidget *parent, const QList<deskflow::FingerprintData> &fingerprints = {});
|
||||||
~FingerprintPreview() = default;
|
~FingerprintPreview() override = default;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -72,9 +72,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mousePressEvent(QMouseEvent *);
|
void mousePressEvent(QMouseEvent *) override;
|
||||||
void keyPressEvent(QKeyEvent *);
|
void keyPressEvent(QKeyEvent *) override;
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event) override;
|
||||||
void appendToSequence(int key);
|
void appendToSequence(int key);
|
||||||
void updateOutput();
|
void updateOutput();
|
||||||
void startRecording();
|
void startRecording();
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void screenRemoved();
|
void screenRemoved();
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ public:
|
||||||
StreamFilter(IEventQueue *events, deskflow::IStream *stream, bool adoptStream = true);
|
StreamFilter(IEventQueue *events, deskflow::IStream *stream, bool adoptStream = true);
|
||||||
StreamFilter(StreamFilter const &) = delete;
|
StreamFilter(StreamFilter const &) = delete;
|
||||||
StreamFilter(StreamFilter &&) = delete;
|
StreamFilter(StreamFilter &&) = delete;
|
||||||
virtual ~StreamFilter();
|
~StreamFilter() override;
|
||||||
|
|
||||||
StreamFilter &operator=(StreamFilter const &) = delete;
|
StreamFilter &operator=(StreamFilter const &) = delete;
|
||||||
StreamFilter &operator=(StreamFilter &&) = delete;
|
StreamFilter &operator=(StreamFilter &&) = delete;
|
||||||
|
|
@ -34,15 +34,15 @@ public:
|
||||||
// IStream overrides
|
// IStream overrides
|
||||||
// These all just forward to the underlying stream except getEventTarget.
|
// These all just forward to the underlying stream except getEventTarget.
|
||||||
// Override as necessary. getEventTarget returns a pointer to this.
|
// Override as necessary. getEventTarget returns a pointer to this.
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual uint32_t read(void *buffer, uint32_t n);
|
uint32_t read(void *buffer, uint32_t n) override;
|
||||||
virtual void write(const void *buffer, uint32_t n);
|
void write(const void *buffer, uint32_t n) override;
|
||||||
virtual void flush();
|
void flush() override;
|
||||||
virtual void shutdownInput();
|
void shutdownInput() override;
|
||||||
virtual void shutdownOutput();
|
void shutdownOutput() override;
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
virtual bool isReady() const;
|
bool isReady() const override;
|
||||||
virtual uint32_t getSize() const;
|
uint32_t getSize() const override;
|
||||||
|
|
||||||
//! Get the stream
|
//! Get the stream
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
|
|
@ -51,17 +51,17 @@ public:
|
||||||
// in VC++6. it claims the methods are unused locals and warns
|
// in VC++6. it claims the methods are unused locals and warns
|
||||||
// that it's removing them. it's presumably tickled by inheriting
|
// that it's removing them. it's presumably tickled by inheriting
|
||||||
// methods with identical signatures from both superclasses.
|
// methods with identical signatures from both superclasses.
|
||||||
virtual void bind(const NetworkAddress &) = 0;
|
void bind(const NetworkAddress &) override = 0;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
|
|
||||||
// IStream overrides
|
// IStream overrides
|
||||||
virtual uint32_t read(void *buffer, uint32_t n) = 0;
|
uint32_t read(void *buffer, uint32_t n) override = 0;
|
||||||
virtual void write(const void *buffer, uint32_t n) = 0;
|
void write(const void *buffer, uint32_t n) override = 0;
|
||||||
virtual void flush() = 0;
|
void flush() override = 0;
|
||||||
virtual void shutdownInput() = 0;
|
void shutdownInput() override = 0;
|
||||||
virtual void shutdownOutput() = 0;
|
void shutdownOutput() override = 0;
|
||||||
virtual bool isReady() const = 0;
|
bool isReady() const override = 0;
|
||||||
|
uint32_t getSize() const override = 0;
|
||||||
virtual bool isFatal() const = 0;
|
virtual bool isFatal() const = 0;
|
||||||
virtual uint32_t getSize() const = 0;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// ISocket overrides
|
// ISocket overrides
|
||||||
virtual void bind(const NetworkAddress &) = 0;
|
void bind(const NetworkAddress &) override = 0;
|
||||||
virtual void close() = 0;
|
void close() override = 0;
|
||||||
virtual void *getEventTarget() const = 0;
|
void *getEventTarget() const override = 0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
// IListenSocket overrides
|
// IListenSocket overrides
|
||||||
virtual IDataSocket *accept();
|
IDataSocket *accept() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const SecurityLevel m_securityLevel;
|
const SecurityLevel m_securityLevel;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ public:
|
||||||
);
|
);
|
||||||
SecureSocket(SecureSocket const &) = delete;
|
SecureSocket(SecureSocket const &) = delete;
|
||||||
SecureSocket(SecureSocket &&) = delete;
|
SecureSocket(SecureSocket &&) = delete;
|
||||||
~SecureSocket();
|
~SecureSocket() override;
|
||||||
|
|
||||||
SecureSocket &operator=(SecureSocket const &) = delete;
|
SecureSocket &operator=(SecureSocket const &) = delete;
|
||||||
SecureSocket &operator=(SecureSocket &&) = delete;
|
SecureSocket &operator=(SecureSocket &&) = delete;
|
||||||
|
|
@ -45,7 +45,7 @@ public:
|
||||||
void close() override;
|
void close() override;
|
||||||
|
|
||||||
// IDataSocket overrides
|
// IDataSocket overrides
|
||||||
virtual void connect(const NetworkAddress &) override;
|
void connect(const NetworkAddress &) override;
|
||||||
|
|
||||||
ISocketMultiplexerJob *newJob() override;
|
ISocketMultiplexerJob *newJob() override;
|
||||||
bool isFatal() const override
|
bool isFatal() const override
|
||||||
|
|
|
||||||
|
|
@ -25,18 +25,18 @@ public:
|
||||||
TCPListenSocket(IEventQueue *events, SocketMultiplexer *socketMultiplexer, IArchNetwork::EAddressFamily family);
|
TCPListenSocket(IEventQueue *events, SocketMultiplexer *socketMultiplexer, IArchNetwork::EAddressFamily family);
|
||||||
TCPListenSocket(TCPListenSocket const &) = delete;
|
TCPListenSocket(TCPListenSocket const &) = delete;
|
||||||
TCPListenSocket(TCPListenSocket &&) = delete;
|
TCPListenSocket(TCPListenSocket &&) = delete;
|
||||||
virtual ~TCPListenSocket();
|
~TCPListenSocket() override;
|
||||||
|
|
||||||
TCPListenSocket &operator=(TCPListenSocket const &) = delete;
|
TCPListenSocket &operator=(TCPListenSocket const &) = delete;
|
||||||
TCPListenSocket &operator=(TCPListenSocket &&) = delete;
|
TCPListenSocket &operator=(TCPListenSocket &&) = delete;
|
||||||
|
|
||||||
// ISocket overrides
|
// ISocket overrides
|
||||||
virtual void bind(const NetworkAddress &);
|
void bind(const NetworkAddress &) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
|
|
||||||
// IListenSocket overrides
|
// IListenSocket overrides
|
||||||
virtual IDataSocket *accept();
|
IDataSocket *accept() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setListeningJob();
|
void setListeningJob();
|
||||||
|
|
|
||||||
|
|
@ -33,28 +33,28 @@ public:
|
||||||
TCPSocket(IEventQueue *events, SocketMultiplexer *socketMultiplexer, ArchSocket socket);
|
TCPSocket(IEventQueue *events, SocketMultiplexer *socketMultiplexer, ArchSocket socket);
|
||||||
TCPSocket(TCPSocket const &) = delete;
|
TCPSocket(TCPSocket const &) = delete;
|
||||||
TCPSocket(TCPSocket &&) = delete;
|
TCPSocket(TCPSocket &&) = delete;
|
||||||
virtual ~TCPSocket();
|
~TCPSocket() override;
|
||||||
|
|
||||||
TCPSocket &operator=(TCPSocket const &) = delete;
|
TCPSocket &operator=(TCPSocket const &) = delete;
|
||||||
TCPSocket &operator=(TCPSocket &&) = delete;
|
TCPSocket &operator=(TCPSocket &&) = delete;
|
||||||
|
|
||||||
// ISocket overrides
|
// ISocket overrides
|
||||||
virtual void bind(const NetworkAddress &);
|
void bind(const NetworkAddress &) override;
|
||||||
virtual void close();
|
void close() override;
|
||||||
virtual void *getEventTarget() const;
|
void *getEventTarget() const override;
|
||||||
|
|
||||||
// IStream overrides
|
// IStream overrides
|
||||||
virtual uint32_t read(void *buffer, uint32_t n);
|
uint32_t read(void *buffer, uint32_t n) override;
|
||||||
virtual void write(const void *buffer, uint32_t n);
|
void write(const void *buffer, uint32_t n) override;
|
||||||
virtual void flush();
|
void flush() override;
|
||||||
virtual void shutdownInput();
|
void shutdownInput() override;
|
||||||
virtual void shutdownOutput();
|
void shutdownOutput() override;
|
||||||
virtual bool isReady() const;
|
bool isReady() const override;
|
||||||
virtual bool isFatal() const;
|
bool isFatal() const override;
|
||||||
virtual uint32_t getSize() const;
|
uint32_t getSize() const override;
|
||||||
|
|
||||||
// IDataSocket overrides
|
// IDataSocket overrides
|
||||||
virtual void connect(const NetworkAddress &);
|
void connect(const NetworkAddress &) override;
|
||||||
|
|
||||||
virtual ISocketMultiplexerJob *newJob();
|
virtual ISocketMultiplexerJob *newJob();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,15 @@ class TCPSocketFactory : public ISocketFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TCPSocketFactory(IEventQueue *events, SocketMultiplexer *socketMultiplexer);
|
TCPSocketFactory(IEventQueue *events, SocketMultiplexer *socketMultiplexer);
|
||||||
virtual ~TCPSocketFactory();
|
~TCPSocketFactory() override;
|
||||||
|
|
||||||
// ISocketFactory overrides
|
// ISocketFactory overrides
|
||||||
virtual IDataSocket *create(
|
IDataSocket *create(
|
||||||
IArchNetwork::EAddressFamily family = IArchNetwork::kINET, SecurityLevel securityLevel = SecurityLevel::PlainText
|
IArchNetwork::EAddressFamily family = IArchNetwork::kINET, SecurityLevel securityLevel = SecurityLevel::PlainText
|
||||||
) const;
|
) const override;
|
||||||
virtual IListenSocket *createListen(
|
IListenSocket *createListen(
|
||||||
IArchNetwork::EAddressFamily family = IArchNetwork::kINET, SecurityLevel securityLevel = SecurityLevel::PlainText
|
IArchNetwork::EAddressFamily family = IArchNetwork::kINET, SecurityLevel securityLevel = SecurityLevel::PlainText
|
||||||
) const;
|
) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IEventQueue *m_events;
|
IEventQueue *m_events;
|
||||||
|
|
|
||||||
|
|
@ -23,16 +23,16 @@ public:
|
||||||
TSocketMultiplexerMethodJob(T *object, Method method, ArchSocket socket, bool readable, bool writeable);
|
TSocketMultiplexerMethodJob(T *object, Method method, ArchSocket socket, bool readable, bool writeable);
|
||||||
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob const &) = delete;
|
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob const &) = delete;
|
||||||
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob &&) = delete;
|
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob &&) = delete;
|
||||||
virtual ~TSocketMultiplexerMethodJob();
|
~TSocketMultiplexerMethodJob() override;
|
||||||
|
|
||||||
TSocketMultiplexerMethodJob &operator=(TSocketMultiplexerMethodJob const &) = delete;
|
TSocketMultiplexerMethodJob &operator=(TSocketMultiplexerMethodJob const &) = delete;
|
||||||
TSocketMultiplexerMethodJob &operator=(TSocketMultiplexerMethodJob &&) = delete;
|
TSocketMultiplexerMethodJob &operator=(TSocketMultiplexerMethodJob &&) = delete;
|
||||||
|
|
||||||
// IJob overrides
|
// IJob overrides
|
||||||
virtual ISocketMultiplexerJob *run(bool readable, bool writable, bool error);
|
ISocketMultiplexerJob *run(bool readable, bool writable, bool error) override;
|
||||||
virtual ArchSocket getSocket() const;
|
ArchSocket getSocket() const override;
|
||||||
virtual bool isReadable() const;
|
bool isReadable() const override;
|
||||||
virtual bool isWritable() const;
|
bool isWritable() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T *m_object;
|
T *m_object;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
XSocketAddress(EError, const std::string &hostname, int port) throw();
|
XSocketAddress(EError, const std::string &hostname, int port) throw();
|
||||||
virtual ~XSocketAddress() throw()
|
~XSocketAddress() throw() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// XBase overrides
|
// XBase overrides
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EError m_error;
|
EError m_error;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class EiEventQueueBuffer : public IEventQueueBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EiEventQueueBuffer(EiScreen *screen, ei *ei, IEventQueue *events);
|
EiEventQueueBuffer(EiScreen *screen, ei *ei, IEventQueue *events);
|
||||||
~EiEventQueueBuffer();
|
~EiEventQueueBuffer() override;
|
||||||
|
|
||||||
// IEventQueueBuffer overrides
|
// IEventQueueBuffer overrides
|
||||||
void init() override
|
void init() override
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class EiKeyState : public KeyState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EiKeyState(EiScreen *screen, IEventQueue *events);
|
EiKeyState(EiScreen *screen, IEventQueue *events);
|
||||||
~EiKeyState();
|
~EiKeyState() override;
|
||||||
|
|
||||||
void init(int fd, std::size_t len);
|
void init(int fd, std::size_t len);
|
||||||
void init_default_keymap();
|
void init_default_keymap();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class EiScreen : public PlatformScreen
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EiScreen(bool is_primary, IEventQueue *events, bool use_portal);
|
EiScreen(bool is_primary, IEventQueue *events, bool use_portal);
|
||||||
~EiScreen();
|
~EiScreen() override;
|
||||||
|
|
||||||
// IScreen overrides
|
// IScreen overrides
|
||||||
void *getEventTarget() const override;
|
void *getEventTarget() const override;
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ public:
|
||||||
XWindowsClipboard(Display *, Window window, ClipboardID id);
|
XWindowsClipboard(Display *, Window window, ClipboardID id);
|
||||||
XWindowsClipboard(XWindowsClipboard const &) = delete;
|
XWindowsClipboard(XWindowsClipboard const &) = delete;
|
||||||
XWindowsClipboard(XWindowsClipboard &&) = delete;
|
XWindowsClipboard(XWindowsClipboard &&) = delete;
|
||||||
virtual ~XWindowsClipboard();
|
~XWindowsClipboard() override;
|
||||||
|
|
||||||
XWindowsClipboard &operator=(XWindowsClipboard const &) = delete;
|
XWindowsClipboard &operator=(XWindowsClipboard const &) = delete;
|
||||||
XWindowsClipboard &operator=(XWindowsClipboard &&) = delete;
|
XWindowsClipboard &operator=(XWindowsClipboard &&) = delete;
|
||||||
|
|
@ -80,13 +80,13 @@ public:
|
||||||
Atom getSelection() const;
|
Atom getSelection() const;
|
||||||
|
|
||||||
// IClipboard overrides
|
// IClipboard overrides
|
||||||
virtual bool empty();
|
bool empty() override;
|
||||||
virtual void add(EFormat, const std::string &data);
|
void add(EFormat, const std::string &data) override;
|
||||||
virtual bool open(Time) const;
|
bool open(Time) const override;
|
||||||
virtual void close() const;
|
void close() const override;
|
||||||
virtual Time getTime() const;
|
Time getTime() const override;
|
||||||
virtual bool has(EFormat) const;
|
bool has(EFormat) const override;
|
||||||
virtual std::string get(EFormat) const;
|
std::string get(EFormat) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// remove all converters from our list
|
// remove all converters from our list
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,14 @@ class XWindowsClipboardAnyBitmapConverter : public IXWindowsClipboardConverter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XWindowsClipboardAnyBitmapConverter();
|
XWindowsClipboardAnyBitmapConverter();
|
||||||
virtual ~XWindowsClipboardAnyBitmapConverter();
|
~XWindowsClipboardAnyBitmapConverter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const = 0;
|
Atom getAtom() const override = 0;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Convert from IClipboard format
|
//! Convert from IClipboard format
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,14 @@ class XWindowsClipboardBMPConverter : public IXWindowsClipboardConverter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XWindowsClipboardBMPConverter(Display *display);
|
XWindowsClipboardBMPConverter(Display *display);
|
||||||
virtual ~XWindowsClipboardBMPConverter();
|
~XWindowsClipboardBMPConverter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const;
|
Atom getAtom() const override;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Atom m_atom;
|
Atom m_atom;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ public:
|
||||||
\c name is converted to an atom and that is reported by getAtom().
|
\c name is converted to an atom and that is reported by getAtom().
|
||||||
*/
|
*/
|
||||||
XWindowsClipboardHTMLConverter(Display *display, const char *name);
|
XWindowsClipboardHTMLConverter(Display *display, const char *name);
|
||||||
virtual ~XWindowsClipboardHTMLConverter();
|
~XWindowsClipboardHTMLConverter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const;
|
Atom getAtom() const override;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Atom m_atom;
|
Atom m_atom;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ public:
|
||||||
\c name is converted to an atom and that is reported by getAtom().
|
\c name is converted to an atom and that is reported by getAtom().
|
||||||
*/
|
*/
|
||||||
XWindowsClipboardTextConverter(Display *display, const char *name);
|
XWindowsClipboardTextConverter(Display *display, const char *name);
|
||||||
virtual ~XWindowsClipboardTextConverter();
|
~XWindowsClipboardTextConverter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const;
|
Atom getAtom() const override;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Atom m_atom;
|
Atom m_atom;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ public:
|
||||||
\c name is converted to an atom and that is reported by getAtom().
|
\c name is converted to an atom and that is reported by getAtom().
|
||||||
*/
|
*/
|
||||||
XWindowsClipboardUCS2Converter(Display *display, const char *name);
|
XWindowsClipboardUCS2Converter(Display *display, const char *name);
|
||||||
virtual ~XWindowsClipboardUCS2Converter();
|
~XWindowsClipboardUCS2Converter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const;
|
Atom getAtom() const override;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Atom m_atom;
|
Atom m_atom;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ public:
|
||||||
\c name is converted to an atom and that is reported by getAtom().
|
\c name is converted to an atom and that is reported by getAtom().
|
||||||
*/
|
*/
|
||||||
XWindowsClipboardUTF8Converter(Display *display, const char *name, bool normalize = false);
|
XWindowsClipboardUTF8Converter(Display *display, const char *name, bool normalize = false);
|
||||||
virtual ~XWindowsClipboardUTF8Converter();
|
~XWindowsClipboardUTF8Converter() override;
|
||||||
|
|
||||||
// IXWindowsClipboardConverter overrides
|
// IXWindowsClipboardConverter overrides
|
||||||
virtual IClipboard::EFormat getFormat() const;
|
IClipboard::EFormat getFormat() const override;
|
||||||
virtual Atom getAtom() const;
|
Atom getAtom() const override;
|
||||||
virtual int getDataSize() const;
|
int getDataSize() const override;
|
||||||
virtual std::string fromIClipboard(const std::string &) const;
|
std::string fromIClipboard(const std::string &) const override;
|
||||||
virtual std::string toIClipboard(const std::string &) const;
|
std::string toIClipboard(const std::string &) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Atom m_atom;
|
Atom m_atom;
|
||||||
|
|
|
||||||
|
|
@ -27,21 +27,21 @@ public:
|
||||||
XWindowsEventQueueBuffer(Display *, Window, IEventQueue *events);
|
XWindowsEventQueueBuffer(Display *, Window, IEventQueue *events);
|
||||||
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer const &) = delete;
|
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer const &) = delete;
|
||||||
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer &&) = delete;
|
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer &&) = delete;
|
||||||
virtual ~XWindowsEventQueueBuffer();
|
~XWindowsEventQueueBuffer() override;
|
||||||
|
|
||||||
XWindowsEventQueueBuffer &operator=(XWindowsEventQueueBuffer const &) = delete;
|
XWindowsEventQueueBuffer &operator=(XWindowsEventQueueBuffer const &) = delete;
|
||||||
XWindowsEventQueueBuffer &operator=(XWindowsEventQueueBuffer &&) = delete;
|
XWindowsEventQueueBuffer &operator=(XWindowsEventQueueBuffer &&) = delete;
|
||||||
|
|
||||||
// IEventQueueBuffer overrides
|
// IEventQueueBuffer overrides
|
||||||
virtual void init()
|
void init() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual void waitForEvent(double timeout);
|
void waitForEvent(double timeout) override;
|
||||||
virtual Type getEvent(Event &event, uint32_t &dataID);
|
Type getEvent(Event &event, uint32_t &dataID) override;
|
||||||
virtual bool addEvent(uint32_t dataID);
|
bool addEvent(uint32_t dataID) override;
|
||||||
virtual bool isEmpty() const;
|
bool isEmpty() const override;
|
||||||
virtual EventQueueTimer *newTimer(double duration, bool oneShot) const;
|
EventQueueTimer *newTimer(double duration, bool oneShot) const override;
|
||||||
virtual void deleteTimer(EventQueueTimer *) const;
|
void deleteTimer(EventQueueTimer *) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void flush();
|
void flush();
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public:
|
||||||
|
|
||||||
XWindowsKeyState(Display *, bool useXKB, IEventQueue *events);
|
XWindowsKeyState(Display *, bool useXKB, IEventQueue *events);
|
||||||
XWindowsKeyState(Display *, bool useXKB, IEventQueue *events, deskflow::KeyMap &keyMap);
|
XWindowsKeyState(Display *, bool useXKB, IEventQueue *events, deskflow::KeyMap &keyMap);
|
||||||
~XWindowsKeyState();
|
~XWindowsKeyState() override;
|
||||||
|
|
||||||
//! @name modifiers
|
//! @name modifiers
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -94,15 +94,15 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IKeyState overrides
|
// IKeyState overrides
|
||||||
virtual bool fakeCtrlAltDel();
|
bool fakeCtrlAltDel() override;
|
||||||
virtual KeyModifierMask pollActiveModifiers() const;
|
KeyModifierMask pollActiveModifiers() const override;
|
||||||
virtual int32_t pollActiveGroup() const;
|
int32_t pollActiveGroup() const override;
|
||||||
virtual void pollPressedKeys(KeyButtonSet &pressedKeys) const;
|
void pollPressedKeys(KeyButtonSet &pressedKeys) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// KeyState overrides
|
// KeyState overrides
|
||||||
virtual void getKeyMap(deskflow::KeyMap &keyMap);
|
void getKeyMap(deskflow::KeyMap &keyMap) override;
|
||||||
virtual void fakeKey(const Keystroke &keystroke);
|
void fakeKey(const Keystroke &keystroke) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void init(Display *display, bool useXKB);
|
void init(Display *display, bool useXKB);
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public:
|
||||||
const char *displayName, bool isPrimary, bool disableXInitThreads, int mouseScrollDelta, IEventQueue *events,
|
const char *displayName, bool isPrimary, bool disableXInitThreads, int mouseScrollDelta, IEventQueue *events,
|
||||||
deskflow::ClientScrollDirection m_clientScrollDirection = deskflow::ClientScrollDirection::SERVER
|
deskflow::ClientScrollDirection m_clientScrollDirection = deskflow::ClientScrollDirection::SERVER
|
||||||
);
|
);
|
||||||
virtual ~XWindowsScreen() override;
|
~XWindowsScreen() override;
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public:
|
||||||
XWindowsScreenSaver(Display *, Window, void *eventTarget, IEventQueue *events);
|
XWindowsScreenSaver(Display *, Window, void *eventTarget, IEventQueue *events);
|
||||||
XWindowsScreenSaver(XWindowsScreenSaver const &) = delete;
|
XWindowsScreenSaver(XWindowsScreenSaver const &) = delete;
|
||||||
XWindowsScreenSaver(XWindowsScreenSaver &&) = delete;
|
XWindowsScreenSaver(XWindowsScreenSaver &&) = delete;
|
||||||
virtual ~XWindowsScreenSaver();
|
~XWindowsScreenSaver() override;
|
||||||
|
|
||||||
XWindowsScreenSaver &operator=(XWindowsScreenSaver const &) = delete;
|
XWindowsScreenSaver &operator=(XWindowsScreenSaver const &) = delete;
|
||||||
XWindowsScreenSaver &operator=(XWindowsScreenSaver &&) = delete;
|
XWindowsScreenSaver &operator=(XWindowsScreenSaver &&) = delete;
|
||||||
|
|
@ -53,11 +53,11 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreenSaver overrides
|
// IScreenSaver overrides
|
||||||
virtual void enable();
|
void enable() override;
|
||||||
virtual void disable();
|
void disable() override;
|
||||||
virtual void activate();
|
void activate() override;
|
||||||
virtual void deactivate();
|
void deactivate() override;
|
||||||
virtual bool isActive() const;
|
bool isActive() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// find and set the running xscreensaver's window. returns true iff
|
// find and set the running xscreensaver's window. returns true iff
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public:
|
||||||
\c name is the name of the client.
|
\c name is the name of the client.
|
||||||
*/
|
*/
|
||||||
BaseClientProxy(const std::string &name);
|
BaseClientProxy(const std::string &name);
|
||||||
~BaseClientProxy();
|
~BaseClientProxy() override;
|
||||||
|
|
||||||
//! @name manipulators
|
//! @name manipulators
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -54,33 +54,33 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IScreen
|
// IScreen
|
||||||
virtual void *getEventTarget() const = 0;
|
void *getEventTarget() const override = 0;
|
||||||
virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
|
bool getClipboard(ClipboardID id, IClipboard *) const override = 0;
|
||||||
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
|
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override = 0;
|
||||||
virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
|
void getCursorPos(int32_t &x, int32_t &y) const override = 0;
|
||||||
|
|
||||||
// IClient overrides
|
// IClient overrides
|
||||||
virtual void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver) = 0;
|
void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver) override = 0;
|
||||||
virtual bool leave() = 0;
|
bool leave() override = 0;
|
||||||
virtual void setClipboard(ClipboardID, const IClipboard *) = 0;
|
void setClipboard(ClipboardID, const IClipboard *) override = 0;
|
||||||
virtual void grabClipboard(ClipboardID) = 0;
|
void grabClipboard(ClipboardID) override = 0;
|
||||||
virtual void setClipboardDirty(ClipboardID, bool) = 0;
|
void setClipboardDirty(ClipboardID, bool) override = 0;
|
||||||
virtual void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) = 0;
|
void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) override = 0;
|
||||||
virtual void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang) = 0;
|
void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang) override = 0;
|
||||||
virtual void keyUp(KeyID, KeyModifierMask, KeyButton) = 0;
|
void keyUp(KeyID, KeyModifierMask, KeyButton) override = 0;
|
||||||
virtual void mouseDown(ButtonID) = 0;
|
void mouseDown(ButtonID) override = 0;
|
||||||
virtual void mouseUp(ButtonID) = 0;
|
void mouseUp(ButtonID) override = 0;
|
||||||
virtual void mouseMove(int32_t xAbs, int32_t yAbs) = 0;
|
void mouseMove(int32_t xAbs, int32_t yAbs) override = 0;
|
||||||
virtual void mouseRelativeMove(int32_t xRel, int32_t yRel) = 0;
|
void mouseRelativeMove(int32_t xRel, int32_t yRel) override = 0;
|
||||||
virtual void mouseWheel(int32_t xDelta, int32_t yDelta) = 0;
|
void mouseWheel(int32_t xDelta, int32_t yDelta) override = 0;
|
||||||
virtual void screensaver(bool activate) = 0;
|
void screensaver(bool activate) override = 0;
|
||||||
virtual void resetOptions() = 0;
|
void resetOptions() override = 0;
|
||||||
virtual void setOptions(const OptionsList &options) = 0;
|
void setOptions(const OptionsList &options) override = 0;
|
||||||
virtual void sendDragInfo(uint32_t fileCount, const char *info, size_t size) = 0;
|
virtual void sendDragInfo(uint32_t fileCount, const char *info, size_t size) = 0;
|
||||||
virtual void fileChunkSending(uint8_t mark, char *data, size_t dataSize) = 0;
|
virtual void fileChunkSending(uint8_t mark, char *data, size_t dataSize) = 0;
|
||||||
virtual std::string getSecureInputApp() const = 0;
|
virtual std::string getSecureInputApp() const = 0;
|
||||||
virtual void secureInputNotification(const std::string &app) const = 0;
|
virtual void secureInputNotification(const std::string &app) const = 0;
|
||||||
virtual std::string getName() const;
|
std::string getName() const override;
|
||||||
virtual deskflow::IStream *getStream() const = 0;
|
virtual deskflow::IStream *getStream() const = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ public:
|
||||||
ClientProxy(const std::string &name, deskflow::IStream *adoptedStream);
|
ClientProxy(const std::string &name, deskflow::IStream *adoptedStream);
|
||||||
ClientProxy(ClientProxy const &) = delete;
|
ClientProxy(ClientProxy const &) = delete;
|
||||||
ClientProxy(ClientProxy &&) = delete;
|
ClientProxy(ClientProxy &&) = delete;
|
||||||
~ClientProxy();
|
~ClientProxy() override;
|
||||||
|
|
||||||
ClientProxy &operator=(ClientProxy const &) = delete;
|
ClientProxy &operator=(ClientProxy const &) = delete;
|
||||||
ClientProxy &operator=(ClientProxy &&) = delete;
|
ClientProxy &operator=(ClientProxy &&) = delete;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public:
|
||||||
ClientProxy1_0(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
ClientProxy1_0(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
||||||
ClientProxy1_0(ClientProxy1_0 const &) = delete;
|
ClientProxy1_0(ClientProxy1_0 const &) = delete;
|
||||||
ClientProxy1_0(ClientProxy1_0 &&) = delete;
|
ClientProxy1_0(ClientProxy1_0 &&) = delete;
|
||||||
~ClientProxy1_0();
|
~ClientProxy1_0() override;
|
||||||
|
|
||||||
ClientProxy1_0 &operator=(ClientProxy1_0 const &) = delete;
|
ClientProxy1_0 &operator=(ClientProxy1_0 const &) = delete;
|
||||||
ClientProxy1_0 &operator=(ClientProxy1_0 &&) = delete;
|
ClientProxy1_0 &operator=(ClientProxy1_0 &&) = delete;
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ class ClientProxy1_1 : public ClientProxy1_0
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientProxy1_1(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
ClientProxy1_1(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
||||||
~ClientProxy1_1();
|
~ClientProxy1_1() override;
|
||||||
|
|
||||||
// IClient overrides
|
// IClient overrides
|
||||||
virtual void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &);
|
void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) override;
|
||||||
virtual void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &);
|
void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &) override;
|
||||||
virtual void keyUp(KeyID, KeyModifierMask, KeyButton);
|
void keyUp(KeyID, KeyModifierMask, KeyButton) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ class ClientProxy1_2 : public ClientProxy1_1
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientProxy1_2(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
ClientProxy1_2(const std::string &name, deskflow::IStream *adoptedStream, IEventQueue *events);
|
||||||
~ClientProxy1_2();
|
~ClientProxy1_2() override;
|
||||||
|
|
||||||
// IClient overrides
|
// IClient overrides
|
||||||
virtual void mouseRelativeMove(int32_t xRel, int32_t yRel);
|
void mouseRelativeMove(int32_t xRel, int32_t yRel) override;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ class ClientProxy1_4 : public ClientProxy1_3
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientProxy1_4(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
ClientProxy1_4(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
||||||
~ClientProxy1_4();
|
~ClientProxy1_4() override;
|
||||||
|
|
||||||
//! @name accessors
|
//! @name accessors
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -30,10 +30,10 @@ public:
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
// IClient overrides
|
// IClient overrides
|
||||||
virtual void keyDown(KeyID key, KeyModifierMask mask, KeyButton button, const std::string &);
|
void keyDown(KeyID key, KeyModifierMask mask, KeyButton button, const std::string &) override;
|
||||||
virtual void keyRepeat(KeyID key, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang);
|
void keyRepeat(KeyID key, KeyModifierMask mask, int32_t count, KeyButton button, const std::string &lang) override;
|
||||||
virtual void keyUp(KeyID key, KeyModifierMask mask, KeyButton button);
|
void keyUp(KeyID key, KeyModifierMask mask, KeyButton button) override;
|
||||||
virtual void keepAlive();
|
void keepAlive() override;
|
||||||
|
|
||||||
Server *m_server;
|
Server *m_server;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,14 @@ public:
|
||||||
ClientProxy1_5(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
ClientProxy1_5(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
||||||
ClientProxy1_5(ClientProxy1_5 const &) = delete;
|
ClientProxy1_5(ClientProxy1_5 const &) = delete;
|
||||||
ClientProxy1_5(ClientProxy1_5 &&) = delete;
|
ClientProxy1_5(ClientProxy1_5 &&) = delete;
|
||||||
~ClientProxy1_5();
|
~ClientProxy1_5() override;
|
||||||
|
|
||||||
ClientProxy1_5 &operator=(ClientProxy1_5 const &) = delete;
|
ClientProxy1_5 &operator=(ClientProxy1_5 const &) = delete;
|
||||||
ClientProxy1_5 &operator=(ClientProxy1_5 &&) = delete;
|
ClientProxy1_5 &operator=(ClientProxy1_5 &&) = delete;
|
||||||
|
|
||||||
virtual void sendDragInfo(uint32_t fileCount, const char *info, size_t size);
|
void sendDragInfo(uint32_t fileCount, const char *info, size_t size) override;
|
||||||
virtual void fileChunkSending(uint8_t mark, char *data, size_t dataSize);
|
void fileChunkSending(uint8_t mark, char *data, size_t dataSize) override;
|
||||||
virtual bool parseMessage(const uint8_t *code);
|
bool parseMessage(const uint8_t *code) override;
|
||||||
void fileChunkReceived();
|
void fileChunkReceived();
|
||||||
void dragInfoReceived();
|
void dragInfoReceived();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ class ClientProxy1_6 : public ClientProxy1_5
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClientProxy1_6(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
ClientProxy1_6(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
||||||
~ClientProxy1_6();
|
~ClientProxy1_6() override;
|
||||||
|
|
||||||
virtual void setClipboard(ClipboardID id, const IClipboard *clipboard);
|
void setClipboard(ClipboardID id, const IClipboard *clipboard) override;
|
||||||
virtual bool recvClipboard();
|
bool recvClipboard() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handleClipboardSendingEvent(const Event &, void *);
|
void handleClipboardSendingEvent(const Event &, void *);
|
||||||
|
|
|
||||||
|
|
@ -549,11 +549,11 @@ class XConfigRead : public XBase
|
||||||
public:
|
public:
|
||||||
XConfigRead(const ConfigReadContext &context, const std::string &);
|
XConfigRead(const ConfigReadContext &context, const std::string &);
|
||||||
XConfigRead(const ConfigReadContext &context, const char *errorFmt, const std::string &arg);
|
XConfigRead(const ConfigReadContext &context, const char *errorFmt, const std::string &arg);
|
||||||
virtual ~XConfigRead() throw();
|
~XConfigRead() throw() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// XBase overrides
|
// XBase overrides
|
||||||
virtual std::string getWhat() const throw();
|
std::string getWhat() const throw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string m_error;
|
std::string m_error;
|
||||||
|
|
|
||||||
|
|
@ -53,17 +53,17 @@ public:
|
||||||
public:
|
public:
|
||||||
KeystrokeCondition(IEventQueue *events, IPlatformScreen::KeyInfo *);
|
KeystrokeCondition(IEventQueue *events, IPlatformScreen::KeyInfo *);
|
||||||
KeystrokeCondition(IEventQueue *events, KeyID key, KeyModifierMask mask);
|
KeystrokeCondition(IEventQueue *events, KeyID key, KeyModifierMask mask);
|
||||||
virtual ~KeystrokeCondition();
|
~KeystrokeCondition() override;
|
||||||
|
|
||||||
KeyID getKey() const;
|
KeyID getKey() const;
|
||||||
KeyModifierMask getMask() const;
|
KeyModifierMask getMask() const;
|
||||||
|
|
||||||
// Condition overrides
|
// Condition overrides
|
||||||
virtual Condition *clone() const;
|
Condition *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual EFilterStatus match(const Event &);
|
EFilterStatus match(const Event &) override;
|
||||||
virtual void enablePrimary(PrimaryClient *);
|
void enablePrimary(PrimaryClient *) override;
|
||||||
virtual void disablePrimary(PrimaryClient *);
|
void disablePrimary(PrimaryClient *) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t m_id;
|
uint32_t m_id;
|
||||||
|
|
@ -78,15 +78,15 @@ public:
|
||||||
public:
|
public:
|
||||||
MouseButtonCondition(IEventQueue *events, IPlatformScreen::ButtonInfo *);
|
MouseButtonCondition(IEventQueue *events, IPlatformScreen::ButtonInfo *);
|
||||||
MouseButtonCondition(IEventQueue *events, ButtonID, KeyModifierMask mask);
|
MouseButtonCondition(IEventQueue *events, ButtonID, KeyModifierMask mask);
|
||||||
virtual ~MouseButtonCondition();
|
~MouseButtonCondition() override;
|
||||||
|
|
||||||
ButtonID getButton() const;
|
ButtonID getButton() const;
|
||||||
KeyModifierMask getMask() const;
|
KeyModifierMask getMask() const;
|
||||||
|
|
||||||
// Condition overrides
|
// Condition overrides
|
||||||
virtual Condition *clone() const;
|
Condition *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual EFilterStatus match(const Event &);
|
EFilterStatus match(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ButtonID m_button;
|
ButtonID m_button;
|
||||||
|
|
@ -99,12 +99,12 @@ public:
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScreenConnectedCondition(IEventQueue *events, const std::string &screen);
|
ScreenConnectedCondition(IEventQueue *events, const std::string &screen);
|
||||||
virtual ~ScreenConnectedCondition();
|
~ScreenConnectedCondition() override;
|
||||||
|
|
||||||
// Condition overrides
|
// Condition overrides
|
||||||
virtual Condition *clone() const;
|
Condition *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual EFilterStatus match(const Event &);
|
EFilterStatus match(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string m_screen;
|
std::string m_screen;
|
||||||
|
|
@ -143,9 +143,9 @@ public:
|
||||||
Mode getMode() const;
|
Mode getMode() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mode m_mode;
|
Mode m_mode;
|
||||||
|
|
@ -165,9 +165,9 @@ public:
|
||||||
Mode getMode() const;
|
Mode getMode() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mode m_mode;
|
Mode m_mode;
|
||||||
|
|
@ -183,9 +183,9 @@ public:
|
||||||
std::string getScreen() const;
|
std::string getScreen() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string m_screen;
|
std::string m_screen;
|
||||||
|
|
@ -201,9 +201,9 @@ public:
|
||||||
EDirection getDirection() const;
|
EDirection getDirection() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EDirection m_direction;
|
EDirection m_direction;
|
||||||
|
|
@ -228,9 +228,9 @@ public:
|
||||||
std::set<std::string> getScreens() const;
|
std::set<std::string> getScreens() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mode m_mode;
|
Mode m_mode;
|
||||||
|
|
@ -245,7 +245,7 @@ public:
|
||||||
KeystrokeAction(IEventQueue *events, IPlatformScreen::KeyInfo *adoptedInfo, bool press);
|
KeystrokeAction(IEventQueue *events, IPlatformScreen::KeyInfo *adoptedInfo, bool press);
|
||||||
KeystrokeAction(KeystrokeAction const &) = delete;
|
KeystrokeAction(KeystrokeAction const &) = delete;
|
||||||
KeystrokeAction(KeystrokeAction &&) = delete;
|
KeystrokeAction(KeystrokeAction &&) = delete;
|
||||||
~KeystrokeAction();
|
~KeystrokeAction() override;
|
||||||
|
|
||||||
KeystrokeAction &operator=(KeystrokeAction const &) = delete;
|
KeystrokeAction &operator=(KeystrokeAction const &) = delete;
|
||||||
KeystrokeAction &operator=(KeystrokeAction &&) = delete;
|
KeystrokeAction &operator=(KeystrokeAction &&) = delete;
|
||||||
|
|
@ -255,9 +255,9 @@ public:
|
||||||
bool isOnPress() const;
|
bool isOnPress() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const char *formatName() const;
|
virtual const char *formatName() const;
|
||||||
|
|
@ -275,7 +275,7 @@ public:
|
||||||
MouseButtonAction(IEventQueue *events, IPlatformScreen::ButtonInfo *adoptedInfo, bool press);
|
MouseButtonAction(IEventQueue *events, IPlatformScreen::ButtonInfo *adoptedInfo, bool press);
|
||||||
MouseButtonAction(MouseButtonAction const &) = delete;
|
MouseButtonAction(MouseButtonAction const &) = delete;
|
||||||
MouseButtonAction(MouseButtonAction &&) = delete;
|
MouseButtonAction(MouseButtonAction &&) = delete;
|
||||||
~MouseButtonAction();
|
~MouseButtonAction() override;
|
||||||
|
|
||||||
MouseButtonAction &operator=(MouseButtonAction const &) = delete;
|
MouseButtonAction &operator=(MouseButtonAction const &) = delete;
|
||||||
MouseButtonAction &operator=(MouseButtonAction &&) = delete;
|
MouseButtonAction &operator=(MouseButtonAction &&) = delete;
|
||||||
|
|
@ -284,9 +284,9 @@ public:
|
||||||
bool isOnPress() const;
|
bool isOnPress() const;
|
||||||
|
|
||||||
// Action overrides
|
// Action overrides
|
||||||
virtual Action *clone() const;
|
Action *clone() const override;
|
||||||
virtual std::string format() const;
|
std::string format() const override;
|
||||||
virtual void perform(const Event &);
|
void perform(const Event &) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const char *formatName() const;
|
virtual const char *formatName() const;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public:
|
||||||
\c name is the name of the server and \p screen is primary screen.
|
\c name is the name of the server and \p screen is primary screen.
|
||||||
*/
|
*/
|
||||||
PrimaryClient(const std::string &name, deskflow::Screen *screen);
|
PrimaryClient(const std::string &name, deskflow::Screen *screen);
|
||||||
~PrimaryClient();
|
~PrimaryClient() override;
|
||||||
|
|
||||||
#ifdef TEST_ENV
|
#ifdef TEST_ENV
|
||||||
PrimaryClient() : BaseClientProxy("")
|
PrimaryClient() : BaseClientProxy("")
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ public:
|
||||||
);
|
);
|
||||||
Server(Server const &) = delete;
|
Server(Server const &) = delete;
|
||||||
Server(Server &&) = delete;
|
Server(Server &&) = delete;
|
||||||
~Server();
|
~Server() override;
|
||||||
|
|
||||||
Server &operator=(Server const &) = delete;
|
Server &operator=(Server const &) = delete;
|
||||||
Server &operator=(Server &&) = delete;
|
Server &operator=(Server &&) = delete;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue