Kodi Development  20.0
for Binary and Script based Add-Ons
Keyboard.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "AddonClass.h"
12 #include "AddonString.h"
13 #include "Exception.h"
14 
15 class CGUIDialogKeyboardGeneric;
16 
17 namespace XBMCAddon
18 {
19  namespace xbmc
20  {
21  XBMCCOMMONS_STANDARD_EXCEPTION(KeyboardException);
22 
54  class Keyboard : public AddonClass
55  {
56  public:
57 #ifndef SWIG
58  String strDefault;
59  String strHeading;
60  bool bHidden;
61  String strText;
62  bool bConfirmed = false;
63 #endif
64 
65  Keyboard(const String& line = emptyString, const String& heading = emptyString, bool hidden = false);
66  ~Keyboard() override;
67 
68 #ifdef DOXYGEN_SHOULD_USE_THIS
87  doModal(...);
88 #else
89  void doModal(int autoclose = 0);
90 #endif
91 
92 #ifdef DOXYGEN_SHOULD_USE_THIS
93  // setDefault() Method
112 #else
113  void setDefault(const String& line = emptyString);
114 #endif
115 
116 #ifdef DOXYGEN_SHOULD_USE_THIS
135 #else
136  void setHiddenInput(bool hidden = false);
137 #endif
138 
139  // setHeading() Method
140 #ifdef DOXYGEN_SHOULD_USE_THIS
159 #else
160  void setHeading(const String& heading);
161 #endif
162 
163  // getText() Method
164 #ifdef DOXYGEN_SHOULD_USE_THIS
186 #else
187  String getText();
188 #endif
189 
190  // isConfirmed() Method
191 #ifdef DOXYGEN_SHOULD_USE_THIS
209 #else
210  bool isConfirmed();
211 #endif
212  };
214  }
215 }
Definition: Keyboard.h:55
setDefault(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setHiddenInput(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
doModal(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getText()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
isConfirmed()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setHeading(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...