Dali 3D User Interface Engine
toolkit-physical-keyboard.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
19 
23 
24 namespace Dali
25 {
26 
27 /********************************************************************************
28  * Stub for Dali::Internal::Adaptor::PhysicalKeyboard
29  ********************************************************************************/
30 namespace Internal
31 {
32 namespace Adaptor
33 {
34 class PhysicalKeyboard : public BaseObject
35 {
36 public: // Creation & Destruction
37 
40  static Dali::PhysicalKeyboard Get();
41 
42 public:
43  bool IsAttached() const;
44 
45 public: // Signals
47 
48 private:
52 };
53 
55 
57 : mIsAttached(true)
58 {
59 }
60 
62 {
63 }
64 
66 {
67  if( ! mPhysicalKeyboard )
68  {
70  }
71  return mPhysicalKeyboard;
72 }
73 
75 {
76  return mIsAttached;
77 }
78 
80 {
81  return mStatusChangedSignal;
82 }
83 
84 } // namespace Adaptor
85 } // namespace Internal
86 
87 
88 /********************************************************************************
89  * Stub for Dali::PhysicalKeyboard
90  ********************************************************************************/
91 
94 
96 {
97  // Get the physical keyboard handle
99  return handle;
100 }
101 
103 {
104  const BaseObject& object = GetBaseObject();
105  const Internal::Adaptor::PhysicalKeyboard& pyke = static_cast< const Internal::Adaptor::PhysicalKeyboard& >( object );
106  return pyke.IsAttached();
107 }
108 
110 {
111  BaseObject& object = GetBaseObject();
113  return pyke.StatusChangedSignal();
114 }
115 
117 : BaseHandle(impl)
118 {
119 }
120 
121 
122 
123 } // namespace Dali
Dali Docs Home
Read more about Dali