1 #ifndef __DALI_PHYSICAL_KEYBOARD_H__
2 #define __DALI_PHYSICAL_KEYBOARD_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/object/base-handle.h>
23 #include <dali/public-api/signals/dali-signal-v2.h>
25 namespace Dali DALI_IMPORT_API
28 namespace Internal DALI_INTERNAL
32 class PhysicalKeyboard;
37 * This is a handle to a physical keyboard connected to the device.
39 class PhysicalKeyboard : public BaseHandle
43 typedef SignalV2< void (PhysicalKeyboard) > Signal;
48 * Create an uninitialized PhysicalKeyboard handle; this can be initialized with GetKeyboard()
49 * Calling member functions with an uninitialized Dali::Object is not allowed.
56 virtual ~PhysicalKeyboard();
59 * Gets a handle to the physical keyboard.
60 * @return A handle to the physical keyboard.
62 static PhysicalKeyboard Get();
65 * Queries whether a physical keyboard is attached or not.
66 * @return true if a physical keyboard is attached, false otherwise.
68 bool IsAttached() const;
73 * Emitted when the status of the physical keyboard changes.
74 * A callback of the following type may be connected:
76 * void YourCallbackName(PhysicalKeyboard keyboard);
78 * @pre The PhysicalKeyboard has been initialized.
79 * @return The status changed signal.
81 Signal& StatusChangedSignal();
83 // Not intended for application developers
86 * Creates a new handle from the implementation.
87 * @param[in] impl A pointer to the object.
89 explicit DALI_INTERNAL PhysicalKeyboard( Internal::Adaptor::PhysicalKeyboard* impl );
94 #endif // __DALI_PHYSICAL_KEYBOARD_H__