mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-14 20:59:25 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/*
|
|
Copyright: © 2018 SIL International.
|
|
Description: Internal keyboard class and adaptor class for the API.
|
|
Create Date: 2 Oct 2018
|
|
Authors: Tim Eves (TSE)
|
|
History: 2 Oct 2018 - TSE - Refactored out of km_kbp_keyboard_api.cpp
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <experimental/filesystem>
|
|
#include <string>
|
|
|
|
#include <keyman/keyboardprocessor.h>
|
|
|
|
#include "option.hpp"
|
|
|
|
namespace std {
|
|
namespace filesystem = std::experimental::filesystem;
|
|
}
|
|
|
|
// Forward declartions
|
|
class json;
|
|
|
|
namespace km {
|
|
namespace kbp
|
|
{
|
|
|
|
class keyboard : public km_kbp_keyboard_attrs
|
|
{
|
|
std::string const _keyboard_id;
|
|
std::string const _version_string;
|
|
std::filesystem::path const _folder_path;
|
|
std::vector<km_kbp_option_item> _default_opts;
|
|
|
|
public:
|
|
keyboard(std::filesystem::path const &);
|
|
|
|
friend json & operator << (json &, km::kbp::keyboard const &);
|
|
};
|
|
|
|
json & operator << (json &, km::kbp::keyboard const &);
|
|
|
|
} // namespace kbp
|
|
} // namespace km
|
|
|
|
struct km_kbp_keyboard : public km::kbp::keyboard {};
|