Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
IStream.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) 2004 Chris Schoeneman
6
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7
*/
8
9
#pragma once
10
11
#include <cstdint>
12
13
class
IEventQueue
;
14
15
namespace
deskflow
{
16
18
21
class
IStream
22
{
23
public
:
24
IStream
() =
default
;
25
virtual
~IStream
() =
default
;
27
28
30
37
virtual
void
close
() = 0;
38
40
45
virtual
uint32_t
read
(
void
*buffer, uint32_t n) = 0;
46
48
54
virtual
void
write
(
const
void
*buffer, uint32_t n) = 0;
55
57
60
virtual
void
flush
() = 0;
61
63
67
virtual
void
shutdownInput
() = 0;
68
70
75
virtual
void
shutdownOutput
() = 0;
76
78
80
82
86
virtual
void
*
getEventTarget
()
const
= 0;
87
89
94
virtual
bool
isReady
()
const
= 0;
95
97
103
virtual
uint32_t
getSize
()
const
= 0;
104
106
};
107
108
}
// namespace deskflow
IEventQueue
Event queue interface.
Definition
IEventQueue.h:29
deskflow::IStream::getSize
virtual uint32_t getSize() const =0
Get bytes available to read.
deskflow::IStream::getEventTarget
virtual void * getEventTarget() const =0
Get event target.
deskflow::IStream::write
virtual void write(const void *buffer, uint32_t n)=0
Write to stream.
deskflow::IStream::read
virtual uint32_t read(void *buffer, uint32_t n)=0
Read from stream.
deskflow::IStream::isReady
virtual bool isReady() const =0
Test if read() will succeed.
deskflow::IStream::~IStream
virtual ~IStream()=default
deskflow::IStream::flush
virtual void flush()=0
Flush the stream.
deskflow::IStream::close
virtual void close()=0
Close the stream.
deskflow::IStream::shutdownOutput
virtual void shutdownOutput()=0
Shutdown output.
deskflow::IStream::IStream
IStream()=default
deskflow::IStream::shutdownInput
virtual void shutdownInput()=0
Shutdown input.
deskflow
Definition
DaemonApp.h:18
src
lib
io
IStream.h
Generated by
1.18.0