22 #ifndef VIRTUAL_KEYBOARD_PREFERENCES_H
23 #define VIRTUAL_KEYBOARD_PREFERENCES_H
28 #include "VirtualKeyboard.h"
37 void clear() { layout.clear(); language.clear(); }
38 void set(
const std::string & layout_) { layout = layout_; language.clear(); }
39 void set(
const std::string & layout_,
const std::string & language_)
40 { layout = layout_; language = language_; }
42 bool empty()
const {
return layout.empty() && language.empty(); }
43 bool operator==(
const SKeyboardCombo & rhs) {
return layout == rhs.layout && language == rhs.language; }
44 bool operator!=(
const SKeyboardCombo & rhs) {
return layout != rhs.layout || language != rhs.language; }
90 void savePreferences(
const std::vector<SKeyboardCombo> & combos);
96 bool mSettingsReceived;
99 std::vector<SKeyboardCombo> mCombos;
100 SKeyboardCombo mActiveCombo;
102 VirtualKeyboard * mVirtualKeyboard;
105 #define PALM_VIRTUAL_KEYBOARD_PREFS "x_palm_virtualkeyboard_prefs"
106 #define PALM_VIRTUAL_KEYBOARD_SETTINGS "x_palm_virtualkeyboard_settings"
107 #define PALM_VIRTUAL_KEYBOARD_LAYOUTS "x_palm_virtualkeyboard_layouts"
109 #endif // VIRTUAL_KEYBOARD_PREFERENCES_H