Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
KeyboardLayoutManager.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2014 - 2021 Synergy App Ltd
4
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5
*/
6
7
#pragma once
8
9
#include "
deskflow/AppUtil.h
"
10
#include <vector>
11
12
namespace
deskflow
{
13
14
class
KeyboardLayoutManager
15
{
16
std::vector<std::string> m_remoteLayouts;
17
std::vector<std::string> m_localLayouts;
18
19
public
:
20
explicit
KeyboardLayoutManager
(
21
const
std::vector<std::string> &localLayouts =
AppUtil::instance
().getKeyboardLayoutList()
22
);
23
28
void
setRemoteLayouts
(
const
std::string_view &remoteLayouts);
29
34
const
std::vector<std::string> &
getRemoteLayouts
()
const
;
35
40
const
std::vector<std::string> &
getLocalLayouts
()
const
;
41
47
std::string
getMissedLayouts
()
const
;
48
53
std::string
getSerializedLocalLayouts
()
const
;
54
60
bool
isLayoutInstalled
(
const
std::string &layout)
const
;
61
};
62
63
}
// namespace deskflow
AppUtil.h
AppUtil::instance
static AppUtil & instance()
Definition
AppUtil.cpp:31
deskflow::KeyboardLayoutManager::KeyboardLayoutManager
KeyboardLayoutManager(const std::vector< std::string > &localLayouts=AppUtil::instance().getKeyboardLayoutList())
Definition
KeyboardLayoutManager.cpp:30
deskflow::KeyboardLayoutManager::getRemoteLayouts
const std::vector< std::string > & getRemoteLayouts() const
getRemoteLayouts getter for remote layouts
Definition
KeyboardLayoutManager.cpp:48
deskflow::KeyboardLayoutManager::isLayoutInstalled
bool isLayoutInstalled(const std::string &layout) const
isLayoutInstalled checks if layout is installed
Definition
KeyboardLayoutManager.cpp:79
deskflow::KeyboardLayoutManager::getMissedLayouts
std::string getMissedLayouts() const
getMissedLayouts getter for missed layouts on local machine
Definition
KeyboardLayoutManager.cpp:58
deskflow::KeyboardLayoutManager::getLocalLayouts
const std::vector< std::string > & getLocalLayouts() const
getLocalLayouts getter for local layouts
Definition
KeyboardLayoutManager.cpp:53
deskflow::KeyboardLayoutManager::setRemoteLayouts
void setRemoteLayouts(const std::string_view &remoteLayouts)
setRemoteLayouts sets remote layouts
Definition
KeyboardLayoutManager.cpp:36
deskflow::KeyboardLayoutManager::getSerializedLocalLayouts
std::string getSerializedLocalLayouts() const
getSerializedLocalLayouts getter for local serialized layouts
Definition
KeyboardLayoutManager.cpp:74
deskflow
Definition
DaemonApp.h:18
src
lib
deskflow
KeyboardLayoutManager.h
Generated by
1.18.0