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

Namespaces

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

Classes

class  Computer
 Platform independent computer. More...
class  EiClipboard
 EI/Portal clipboard implementation. More...
class  EiComputer
 Implementation of IPlatformComputer for X11. More...
class  EiEventQueueBuffer
 Event queue buffer for Ei. More...
class  EiKeyState
 A key state for Ei. 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  KeyboardLayoutManager
class  KeyMap
 Key map. More...
class  PortalClipboard
class  PortalGlobalShortcuts
class  PortalInputCapture
class  PortalRemoteDesktop

Typedefs

using ClipboardInfo = IComputer::ClipboardInfo

Enumerations

enum class  EventTypes : uint32_t {
  Unknown , Quit , System , Timer ,
  ClientConnected , ClientConnectionRefused , ClientConnectionFailed , ClientDisconnected ,
  ClientDisconnectRequested , StreamInputReady , StreamOutputFlushed , StreamOutputError ,
  StreamInputShutdown , StreamOutputShutdown , StreamInputFormatError , DataSocketConnected ,
  DataSocketSecureConnected , DataSocketConnectionFailed , ListenSocketConnecting , SocketDisconnected ,
  OsxComputerConfirmSleep , ClientListenerAccepted , ClientListenerDisconnectedOnAccept , ClientProxyReady ,
  ClientProxyDisconnected , ClientProxyUnknownSuccess , ClientProxyUnknownFailure , ServerConnected ,
  ServerDisconnected , ServerSwitchToComputer , ServerToggleComputer , ServerSwitchInDirection ,
  ServerKeyboardBroadcast , ServerLockCursorToComputer , ServerComputerSwitched , ServerAppReloadConfig ,
  ServerAppForceReconnect , ServerAppResetServer , KeyStateKeyDown , KeyStateKeyUp ,
  KeyStateKeyRepeat , PrimaryComputerButtonDown , PrimaryComputerButtonUp , PrimaryComputerMotionOnPrimary ,
  PrimaryComputerMotionOnSecondary , PrimaryComputerWheel , PrimaryScreenSaverActivated , PrimaryScreenSaverDeactivated ,
  PrimaryComputerHotkeyDown , PrimaryComputerHotkeyUp , PrimaryComputerFakeInputBegin , PrimaryComputerFakeInputEnd ,
  ComputerError , ComputerShapeChanged , ComputerSuspend , ComputerResume ,
  ClipboardGrabbed , ClipboardChanged , ClipboardSending , EIConnected ,
  EISessionClosed
}

Functions

template<class Callable>
FinalAction< Callable > finally (Callable &&callable) noexcept
bool runInAutoReleasePool (const std::function< bool()> &fn)
 Run fn inside an Objective-C @autoreleasepool block.
QString formatSSLFingerprint (const QByteArray &fingerprint, bool enableSeparators=true)
 formatSSLFingerprint Format an ssl Fingerprint
Fingerprint sslCertFingerprint (const X509 *cert, QCryptographicHash::Algorithm type)
void generatePemSelfSignedCert (const QString &path, int keyLength)
QString formatSSLFingerprintColumns (const QByteArray &fingerprint)
QString generateFingerprintArt (const QByteArray &rawDigest)

Variables

static constexpr int kBmpSignatureSize = 2
static constexpr quint32 kBmpFileHeaderSize = 14
static constexpr quint32 kMinDibHeaderSize = 12

Typedef Documentation

◆ ClipboardInfo

Enumeration Type Documentation

◆ 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).

ClientDisconnectRequested 

Internal client event used to defer disconnect cleanup until the current callback has returned.

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.

OsxComputerConfirmSleep 
ClientListenerAccepted 

This event is sent whenever a server accepts a client.

ClientListenerDisconnectedOnAccept 

This event is sent whenever a client disconnects/errors out before the connection is fully accepted.

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 computer has connected. The event data is a pointer to ComputerConnectedInfo that indicates the connected computer.

ServerDisconnected 

This is event sent when all the clients have disconnected.

ServerSwitchToComputer 

This event is sent to inform the server to switch computers. The event data is a pointer to SwitchToComputerInfo that indicates the target computer.

ServerToggleComputer 

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

ServerSwitchInDirection 

This event is sent to inform the server to switch computers. 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.

ServerLockCursorToComputer 

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

ServerComputerSwitched 

This event is sent when the computer 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.

PrimaryComputerButtonDown 

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

PrimaryComputerButtonUp 

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

PrimaryComputerMotionOnPrimary 

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

PrimaryComputerMotionOnSecondary 

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

PrimaryComputerWheel 

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.

PrimaryComputerHotkeyDown 

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

PrimaryComputerHotkeyUp 

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

PrimaryComputerFakeInputBegin 

This event is sent when fake input begins.

PrimaryComputerFakeInputEnd 

This event is sent when fake input ends.

ComputerError 

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

ComputerShapeChanged 

This event is sent whenever the computer's display shape changes.

ComputerSuspend 

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

ComputerResume 

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

◆ 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 QString & path,
int keyLength )

◆ runInAutoReleasePool()

bool deskflow::runInAutoReleasePool ( const std::function< bool()> & fn)

Run fn inside an Objective-C @autoreleasepool block.

◆ sslCertFingerprint()

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

Variable Documentation

◆ kBmpFileHeaderSize

quint32 deskflow::kBmpFileHeaderSize = 14
staticconstexpr

◆ kBmpSignatureSize

int deskflow::kBmpSignatureSize = 2
staticconstexpr

◆ kMinDibHeaderSize

quint32 deskflow::kMinDibHeaderSize = 12
staticconstexpr