Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
IApp.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4
* SPDX-FileCopyrightText: (C) 2012 - 2016 Synergy App Ltd
5
* SPDX-FileCopyrightText: (C) 2012 Nick Bolton
6
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7
*/
8
9
#pragma once
10
11
using
StartupFunc
= int (*)();
12
13
namespace
deskflow
{
14
class
Screen
;
15
}
// namespace deskflow
16
17
class
IEventQueue
;
18
19
class
IApp
20
{
21
public
:
22
virtual
~IApp
() =
default
;
23
virtual
void
setByeFunc
(
void
(*
bye
)(
int
)) = 0;
24
virtual
int
start
() = 0;
25
virtual
int
runInner
(
StartupFunc
startup) = 0;
26
virtual
void
startNode
() = 0;
27
virtual
void
bye
(
int
error) = 0;
28
virtual
int
mainLoop
() = 0;
29
virtual
void
initApp
() = 0;
30
virtual
const
char
*
daemonName
()
const
= 0;
31
virtual
deskflow::Screen
*
createScreen
() = 0;
32
virtual
IEventQueue
*
getEvents
()
const
= 0;
33
};
StartupFunc
int(*)() StartupFunc
Definition
IApp.h:11
IApp
Definition
IApp.h:20
IApp::mainLoop
virtual int mainLoop()=0
IApp::daemonName
virtual const char * daemonName() const =0
IApp::startNode
virtual void startNode()=0
IApp::bye
virtual void bye(int error)=0
IApp::initApp
virtual void initApp()=0
IApp::getEvents
virtual IEventQueue * getEvents() const =0
IApp::~IApp
virtual ~IApp()=default
IApp::start
virtual int start()=0
IApp::setByeFunc
virtual void setByeFunc(void(*bye)(int))=0
IApp::runInner
virtual int runInner(StartupFunc startup)=0
IApp::createScreen
virtual deskflow::Screen * createScreen()=0
IEventQueue
Event queue interface.
Definition
IEventQueue.h:29
Screen
Definition
Screen.h:26
deskflow::Screen
Platform independent screen.
Definition
Screen.h:30
deskflow
Definition
DaemonApp.h:18
src
lib
deskflow
IApp.h
Generated by
1.18.0