Deskflow 1.26.0.134
Keyboard and mouse sharing utility
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 Symless 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
12namespace deskflow {
13
15{
16 std::vector<std::string> m_remoteLayouts;
17 std::vector<std::string> m_localLayouts;
18
19public:
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
static AppUtil & instance()
Definition AppUtil.cpp:31
KeyboardLayoutManager(const std::vector< std::string > &localLayouts=AppUtil::instance().getKeyboardLayoutList())
Definition KeyboardLayoutManager.cpp:30
const std::vector< std::string > & getRemoteLayouts() const
getRemoteLayouts getter for remote layouts
Definition KeyboardLayoutManager.cpp:48
bool isLayoutInstalled(const std::string &layout) const
isLayoutInstalled checks if layout is installed
Definition KeyboardLayoutManager.cpp:79
std::string getMissedLayouts() const
getMissedLayouts getter for missed layouts on local machine
Definition KeyboardLayoutManager.cpp:58
const std::vector< std::string > & getLocalLayouts() const
getLocalLayouts getter for local layouts
Definition KeyboardLayoutManager.cpp:53
void setRemoteLayouts(const std::string_view &remoteLayouts)
setRemoteLayouts sets remote layouts
Definition KeyboardLayoutManager.cpp:36
std::string getSerializedLocalLayouts() const
getSerializedLocalLayouts getter for local serialized layouts
Definition KeyboardLayoutManager.cpp:74
Definition DaemonApp.h:20