Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow Namespace Reference

Namespaces

namespace  client
namespace  core
namespace  filesystem
namespace  gui
namespace  languages
namespace  platform
namespace  server
namespace  string
 std::string utilities

Classes

class  ArgsBase
 This is the base Argument class that will store the generic arguments passed into the applications this will be derived from and expanded to include application specific arguments. More...
class  ClientArgs
class  Config
 App configuration. More...
class  EiEventQueueBuffer
 Event queue buffer for Ei. More...
class  EiKeyState
 A key state for Ei. More...
class  EiScreen
 Implementation of IPlatformScreen for X11. More...
class  FinalAction
 The FinalAction class implements a common pattern for calling an action at the end of a function. More...
class  IStream
 Bidirectional stream interface. More...
class  KeyMap
 Key map. More...
class  PortalInputCapture
class  PortalRemoteDesktop
class  Screen
 Platform independent screen. More...
class  ServerArgs

Enumerations

enum class  EventTypes : uint32_t {
  Unknown , Quit , System , Timer ,
  ClientConnected , ClientConnectionRefused , ClientConnectionFailed , ClientDisconnected ,
  StreamInputReady , StreamOutputFlushed , StreamOutputError , StreamInputShutdown ,
  StreamOutputShutdown , StreamInputFormatError , DataSocketConnected , DataSocketSecureConnected ,
  DataSocketConnectionFailed , ListenSocketConnecting , SocketDisconnected , SocketStopRetry ,
  OsxScreenConfirmSleep , ClientListenerAccepted , ClientProxyReady , ClientProxyDisconnected ,
  ClientProxyUnknownSuccess , ClientProxyUnknownFailure , ServerConnected , ServerDisconnected ,
  ServerSwitchToScreen , ServerToggleScreen , ServerSwitchInDirection , ServerKeyboardBroadcast ,
  ServerLockCursorToScreen , ServerScreenSwitched , ServerAppReloadConfig , ServerAppForceReconnect ,
  ServerAppResetServer , KeyStateKeyDown , KeyStateKeyUp , KeyStateKeyRepeat ,
  PrimaryScreenButtonDown , PrimaryScreenButtonUp , PrimaryScreenMotionOnPrimary , PrimaryScreenMotionOnSecondary ,
  PrimaryScreenWheel , PrimaryScreenSaverActivated , PrimaryScreenSaverDeactivated , PrimaryScreenHotkeyDown ,
  PrimaryScreenHotkeyUp , PrimaryScreenFakeInputBegin , PrimaryScreenFakeInputEnd , ScreenError ,
  ScreenShapeChanged , ScreenSuspend , ScreenResume , ClipboardGrabbed ,
  ClipboardChanged , ClipboardSending , EIConnected , EISessionClosed
}
enum class  ClientScrollDirection { Normal = 1 , Inverted = -1 }

Functions

template<class Callable>
FinalAction< Callable > finally (Callable &&callable) noexcept
void openUtf8Path (std::ifstream &stream, const fs::path &path, std::ios_base::openmode mode)
void openUtf8Path (std::ofstream &stream, const fs::path &path, std::ios_base::openmode mode)
void openUtf8Path (std::fstream &stream, const fs::path &path, std::ios_base::openmode mode)
std::FILE * fopenUtf8Path (const fs::path &path, const std::string &mode)
QString formatSSLFingerprint (const QByteArray &fingerprint, bool enableSeparators=true)
 formatSSLFingerprint Format an ssl Fingerprint
Fingerprint sslCertFingerprint (const X509 *cert, Fingerprint::Type type)
Fingerprint pemFileCertFingerprint (const std::string &path, Fingerprint::Type type)
void generatePemSelfSignedCert (const std::string &path, int keyLength)
int getCertLength (const std::string &path)
QString formatSSLFingerprintColumns (const QByteArray &fingerprint)
QString generateFingerprintArt (const QByteArray &rawDigest)

Enumeration Type Documentation

◆ ClientScrollDirection

Enumerator
Normal 

Same direction as the server.

Inverted 

Inverted scroll direction from the server.

◆ EventTypes

enum class deskflow::EventTypes : uint32_t
strong
Enumerator
Unknown 

An unknown event type. This type is used as a placeholder for unknown events when filtering events.

Quit 

Exit has been requested.

System 

This event is sent when system event occurs. The data is a pointer to system event type.

Timer 

This event is sent when a timer event occurs. The data is pointer to TimerInfo.

ClientConnected 

This event is sent when the client has successfully connected to the server.

ClientConnectionRefused 

This event is sent when the server refuses the client

ClientConnectionFailed 

This event is sent when the server fails for some reason. The event data is a pointer to FailInfo.

ClientDisconnected 

This event is sent when the client has disconnected from the server (and only after having successfully connected).

StreamInputReady 

A stream sends this event when read() will return with data.

StreamOutputFlushed 

A stream sends this event when the output buffer has been flushed. If there have been no writes since the event was posted, calling shutdownOutput() or close() will not discard any data and flush() will return immediately.

StreamOutputError 

A stream sends this event when a write has failed.

StreamInputShutdown 

This event is sent when the input side of the stream has shutdown. When the input has shutdown, no more data will ever be available to read.

StreamOutputShutdown 

This event is sent when the output side of the stream has shutdown. When the output has shutdown, no more data can ever be written to the stream. Any attempt to do so will generate a output error event.

StreamInputFormatError 

This event is sent when a stream receives an irrecoverable input format error.

DataSocketConnected 

A socket sends this event when a remote connection has been established.

DataSocketSecureConnected 

A secure socket sends this event when a remote connection has been established.

DataSocketConnectionFailed 

A socket sends this event when an attempt to connect to a remote port has failed. The data is a pointer to a ConnectionFailedInfo.

ListenSocketConnecting 

A socket sends this event when a remote connection is waiting to be accepted.

SocketDisconnected 

A socket sends this event when the remote side of the socket has disconnected or shutdown both input and output.

SocketStopRetry 

This is sent when the client doesn't want to reconnect after it disconnects from the server.

OsxScreenConfirmSleep 
ClientListenerAccepted 

This event is sent whenever a server accepts a client.

ClientProxyReady 

This event is sent when the client has completed the initial handshake. Until it is sent, the client is not fully connected.

ClientProxyDisconnected 

This event is sent when the client disconnects or is disconnected. The target is getEventTarget().

ClientProxyUnknownSuccess 

This event is sent when the client has correctly responded to the hello message. The target is this.

ClientProxyUnknownFailure 

This event is sent when a client fails to correctly respond to the hello message. The target is this.

ServerConnected 

This event is sent when a client screen has connected. The event data is a pointer to ScreenConnectedInfo that indicates the connected screen.

ServerDisconnected 

This is event sent when all the clients have disconnected.

ServerSwitchToScreen 

This event is sent to inform the server to switch screens. The event data is a pointer to SwitchToScreenInfo that indicates the target screen.

ServerToggleScreen 

This event is sent to inform the server to toggle screens. These is no event data.

ServerSwitchInDirection 

This event is sent to inform the server to switch screens. The event data is a pointer to SwitchInDirectionInfo that indicates the target direction.

ServerKeyboardBroadcast 

This event is sent to inform the server to turn keyboard broadcasting on or off. The event data is a pointer to KeyboardBroadcastInfo.

ServerLockCursorToScreen 

This event is sent to inform the server to lock the cursor to the active screen or to unlock it. The event data is a pointer to LockCursorToScreenInfo.

ServerScreenSwitched 

This event is sent when the screen has been switched to a client.

ServerAppReloadConfig 
ServerAppForceReconnect 
ServerAppResetServer 
KeyStateKeyDown 

This event is sent when key is down. Event data is a pointer to KeyInfo (count == 1)

KeyStateKeyUp 

This event is sent when key is up. Event data is a pointer to KeyInfo (count == 1)

KeyStateKeyRepeat 

This event is sent when key is repeated. Event data is a pointer to KeyInfo.

PrimaryScreenButtonDown 

This event is sent when button is down. Event data is a pointer to ButtonInfo.

PrimaryScreenButtonUp 

This event is sent when button is up. Event data is a pointer to ButtonInfo.

PrimaryScreenMotionOnPrimary 

This event is sent when mouse moves on primary screen. Event data is a pointer to MotionInfo, the values are absolute position.

PrimaryScreenMotionOnSecondary 

This event is sent when mouse moves on secondary screen. Event data is a pointer to MotionInfo, the values are relative motion deltas.

PrimaryScreenWheel 

This event is sent when mouse wheel is rotated. Event data is a pointer to WheelInfo.

PrimaryScreenSaverActivated 

This event is sent when screensaver is activated.

PrimaryScreenSaverDeactivated 

This event is sent when screensaver is deactivated.

PrimaryScreenHotkeyDown 

This event is sent when hotkey is down. Event data is a pointer to HotKeyInfo.

PrimaryScreenHotkeyUp 

This event is sent when hotkey is up. Event data is a pointer to HotKeyInfo.

PrimaryScreenFakeInputBegin 

This event is sent when fake input begins.

PrimaryScreenFakeInputEnd 

This event is sent when fake input ends.

ScreenError 

This event is sent whenever the screen has failed for some reason (e.g. the X Windows server died).

ScreenShapeChanged 

This event is sent whenever the screen's shape changes.

ScreenSuspend 

This event is sent whenever the system goes to sleep or a user session is deactivated (fast user switching).

ScreenResume 

This event is sent whenever the system wakes up or a user session is activated (fast user switching).

ClipboardGrabbed 

This event is sent whenever the clipboard is grabbed by some other application so we don't own it anymore. The data is a pointer to a ClipboardInfo.

ClipboardChanged 

This event is sent whenever the contents of the clipboard has changed. The data is a pointer to a ClipboardInfo.

ClipboardSending 

This event is sent whenever a clipboard chunk is transferred.

EIConnected 

Start libEI.

EISessionClosed 

Stop libEi.

Function Documentation

◆ finally()

template<class Callable>
FinalAction< Callable > deskflow::finally ( Callable && callable)
inlinenoexcept

◆ fopenUtf8Path()

std::FILE * deskflow::fopenUtf8Path ( const fs::path & path,
const std::string & mode )

◆ formatSSLFingerprint()

QString deskflow::formatSSLFingerprint ( const QByteArray & fingerprint,
bool enableSeparators = true )

formatSSLFingerprint Format an ssl Fingerprint

Parameters
fingerprintinput string
enableSeparatorsinsert : seperator every byte when true
Returns
a Formated Fingerprint String

◆ formatSSLFingerprintColumns()

QString deskflow::formatSSLFingerprintColumns ( const QByteArray & fingerprint)

◆ generateFingerprintArt()

QString deskflow::generateFingerprintArt ( const QByteArray & rawDigest)

◆ generatePemSelfSignedCert()

void deskflow::generatePemSelfSignedCert ( const std::string & path,
int keyLength )

◆ getCertLength()

int deskflow::getCertLength ( const std::string & path)

◆ openUtf8Path() [1/3]

void deskflow::openUtf8Path ( std::fstream & stream,
const fs::path & path,
std::ios_base::openmode mode )

◆ openUtf8Path() [2/3]

void deskflow::openUtf8Path ( std::ifstream & stream,
const fs::path & path,
std::ios_base::openmode mode )

◆ openUtf8Path() [3/3]

void deskflow::openUtf8Path ( std::ofstream & stream,
const fs::path & path,
std::ios_base::openmode mode )

◆ pemFileCertFingerprint()

Fingerprint deskflow::pemFileCertFingerprint ( const std::string & path,
Fingerprint::Type type )

◆ sslCertFingerprint()

Fingerprint deskflow::sslCertFingerprint ( const X509 * cert,
Fingerprint::Type type )