Deskflow 1.26.0.134
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow::KeyboardLayoutManager Class Reference

#include <KeyboardLayoutManager.h>

Public Member Functions

 KeyboardLayoutManager (const std::vector< std::string > &localLayouts=AppUtil::instance().getKeyboardLayoutList())
void setRemoteLayouts (const std::string_view &remoteLayouts)
 setRemoteLayouts sets remote layouts
const std::vector< std::string > & getRemoteLayouts () const
 getRemoteLayouts getter for remote layouts
const std::vector< std::string > & getLocalLayouts () const
 getLocalLayouts getter for local layouts
std::string getMissedLayouts () const
 getMissedLayouts getter for missed layouts on local machine
std::string getSerializedLocalLayouts () const
 getSerializedLocalLayouts getter for local serialized layouts
bool isLayoutInstalled (const std::string &layout) const
 isLayoutInstalled checks if layout is installed

Constructor & Destructor Documentation

◆ KeyboardLayoutManager()

deskflow::KeyboardLayoutManager::KeyboardLayoutManager ( const std::vector< std::string > & localLayouts = AppUtil::instance().getKeyboardLayoutList())
explicit

Member Function Documentation

◆ getLocalLayouts()

const std::vector< std::string > & deskflow::KeyboardLayoutManager::getLocalLayouts ( ) const

getLocalLayouts getter for local layouts

Returns
vector of local layouts

◆ getMissedLayouts()

std::string deskflow::KeyboardLayoutManager::getMissedLayouts ( ) const

getMissedLayouts getter for missed layouts on local machine

Returns
difference between remote and local layouts as a coma separated string

◆ getRemoteLayouts()

const std::vector< std::string > & deskflow::KeyboardLayoutManager::getRemoteLayouts ( ) const

getRemoteLayouts getter for remote layouts

Returns
vector of remote layouts

◆ getSerializedLocalLayouts()

std::string deskflow::KeyboardLayoutManager::getSerializedLocalLayouts ( ) const

getSerializedLocalLayouts getter for local serialized layouts

Returns
serialized local layouts as a string

◆ isLayoutInstalled()

bool deskflow::KeyboardLayoutManager::isLayoutInstalled ( const std::string & layout) const

isLayoutInstalled checks if layout is installed

Parameters
layoutwhich should be checked
Returns
true if the specified layout is installed

◆ setRemoteLayouts()

void deskflow::KeyboardLayoutManager::setRemoteLayouts ( const std::string_view & remoteLayouts)

setRemoteLayouts sets remote layouts

Parameters
remoteLayoutsis a string with sericalized layouts

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