Deskflow 1.26.0.418
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Action Class Reference

#include <Action.h>

Public Types

enum class  Type {
  keyDown , keyUp , keystroke , switchToScreen ,
  switchInDirection , switchToNextScreen , lockCursorToScreen , restartAllConnections ,
  mouseDown , mouseUp , mousebutton
}
enum class  SwitchDirection { left , right , up , down }
enum class  LockCursorMode { toggle , on , off }

Public Member Functions

 Action ()=default
QString text () const
void loadSettings (QSettings &settings)
void saveSettings (QSettings &settings) const
const KeySequencekeySequence () const
void setKeySequence (const KeySequence &seq)
int type () const
void setType (int t)
QStringList typeScreenNames () const
void clearScreens ()
void addScreen (const QString &screen)
void removeScreen (const QString &screen)
const QString & switchScreenName () const
void setSwitchScreenName (const QString &n)
int switchDirection () const
void setSwitchDirection (int d)
int lockCursorMode () const
void setLockCursorMode (int m)
bool activeOnRelease () const
void setActiveOnRelease (bool b)
bool haveScreens () const
void setHaveScreens (bool b)
bool restartServer () const
void setRestartServer (bool b)
bool operator== (const Action &a) const =default

Member Enumeration Documentation

◆ LockCursorMode

enum class Action::LockCursorMode
strong
Enumerator
toggle 
on 
off 

◆ SwitchDirection

enum class Action::SwitchDirection
strong
Enumerator
left 
right 
up 
down 

◆ Type

enum class Action::Type
strong
Enumerator
keyDown 
keyUp 
keystroke 
switchToScreen 
switchInDirection 
switchToNextScreen 
lockCursorToScreen 
restartAllConnections 
mouseDown 
mouseUp 
mousebutton 

Constructor & Destructor Documentation

◆ Action()

Action::Action ( )
default

Member Function Documentation

◆ activeOnRelease()

bool Action::activeOnRelease ( ) const

◆ addScreen()

void Action::addScreen ( const QString & screen)

◆ clearScreens()

void Action::clearScreens ( )

◆ haveScreens()

bool Action::haveScreens ( ) const

◆ keySequence()

const KeySequence & Action::keySequence ( ) const

◆ loadSettings()

void Action::loadSettings ( QSettings & settings)

◆ lockCursorMode()

int Action::lockCursorMode ( ) const

◆ operator==()

bool Action::operator== ( const Action & a) const
default

◆ removeScreen()

void Action::removeScreen ( const QString & screen)

◆ restartServer()

bool Action::restartServer ( ) const

◆ saveSettings()

void Action::saveSettings ( QSettings & settings) const

◆ setActiveOnRelease()

void Action::setActiveOnRelease ( bool b)

◆ setHaveScreens()

void Action::setHaveScreens ( bool b)

◆ setKeySequence()

void Action::setKeySequence ( const KeySequence & seq)

◆ setLockCursorMode()

void Action::setLockCursorMode ( int m)

◆ setRestartServer()

void Action::setRestartServer ( bool b)

◆ setSwitchDirection()

void Action::setSwitchDirection ( int d)

◆ setSwitchScreenName()

void Action::setSwitchScreenName ( const QString & n)

◆ setType()

void Action::setType ( int t)

◆ switchDirection()

int Action::switchDirection ( ) const

◆ switchScreenName()

const QString & Action::switchScreenName ( ) const

◆ text()

QString Action::text ( ) const

◆ type()

int Action::type ( ) const

◆ typeScreenNames()

QStringList Action::typeScreenNames ( ) const

The documentation for this class was generated from the following files: