All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidInputBox.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include <string>
6 #include "AndroidNativeState.h"
7 #include "InputBox.h"
8 #include "IInputBox.h"
9 
10 namespace Eegeo
11 {
12  namespace UI
13  {
14  namespace NativeInput
15  {
16  namespace Android
17  {
18  class AndroidInputBox : public IInputBox
19  {
20  AndroidNativeState* m_pState;
21  IInputBoxDismissedHandler& m_handler;
22  bool m_closed;
23  bool m_nativesRequireUnregistering;
24 
25  //sjm - we could store a jobject here if there is more than one inputbox, and implement via instance rather than
26  //static methods - would be easy, change should be made here if need to do that arises
27  jclass m_msgBoxClass;
28 
29  public:
31  AndroidNativeState* pState,
32  const std::string& title,
33  const std::string& message,
34  const std::string& button,
35  const std::string& initialContent,
36  bool initialContentIsPlaceholder,
37  IInputBoxDismissedHandler& handler);
38 
39  virtual ~AndroidInputBox();
40 
41  void DismissFromJavaCallback();
42 
43  virtual void Close();
44  };
45  }
46  }
47  }
48 }
49