X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=base%2Fdali-toolkit%2Fpublic-api%2Ffocus-manager%2Fkeyinput-focus-manager.h;h=85fa87c79e0935b20215ea70a75aa588fae85012;hb=47602d95266454026fab0b4fb9c745a1c342c5c3;hp=da67b2fc356061359970ccb2bcead941992cc462;hpb=e58fa784d19a558e35f458ecf6d262a2344beb4f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/public-api/focus-manager/keyinput-focus-manager.h b/base/dali-toolkit/public-api/focus-manager/keyinput-focus-manager.h index da67b2f..85fa87c 100644 --- a/base/dali-toolkit/public-api/focus-manager/keyinput-focus-manager.h +++ b/base/dali-toolkit/public-api/focus-manager/keyinput-focus-manager.h @@ -1,27 +1,27 @@ #ifndef __DALI_TOOLKIT_KEYINPUT_FOCUS_MANAGER_H__ #define __DALI_TOOLKIT_KEYINPUT_FOCUS_MANAGER_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // INTERNAL INCLUDES -#include #include -namespace Dali DALI_IMPORT_API +namespace Dali { namespace Toolkit @@ -40,21 +40,20 @@ class KeyInputFocusManager; * the next control in the stack. If none of the controls in the stack consume the key event then * UnhandledKeyEventSignal() is emitted. */ - - class KeyInputFocusManager : public BaseHandle - { - public: - //Signal Names +class DALI_IMPORT_API KeyInputFocusManager : public BaseHandle +{ +public: + // Signal Names static const char* const SIGNAL_KEY_INPUT_FOCUS_CHANGED; static const char* const SIGNAL_UNHANDLED_KEY_EVENT; // KeyInputFocusChanged - typedef SignalV2< void (Control, Control) > KeyInputFocusChangedSignalV2; + typedef Signal< void (Control, Control) > KeyInputFocusChangedSignalType; // Unhandled Key Event - typedef SignalV2< void (const KeyEvent&) > UnhandledKeyEventSignalV2; + typedef Signal< void (const KeyEvent&) > UnhandledKeyEventSignalType; - public: +public: /** * Create a KeyInputFocusManager handle; this can be initialised with KeyInputFocusManager::Get() @@ -63,9 +62,11 @@ class KeyInputFocusManager; KeyInputFocusManager(); /** - * Virtual destructor. + * @brief Destructor + * + * This is non-virtual since derived Handle types must not contain data or virtual methods. */ - virtual ~KeyInputFocusManager(); + ~KeyInputFocusManager(); /** * Get the singleton of KeyInputFocusManager object. @@ -106,7 +107,7 @@ class KeyInputFocusManager; */ bool IsKeyboardListener(Control control); - public: // Signals +public: // Signals /** * This signal is emitted when the key input focus control changes. @@ -118,7 +119,7 @@ class KeyInputFocusManager; * @endcode * @return The signal to connect to. */ - KeyInputFocusChangedSignalV2& KeyInputFocusChangedSignal(); + KeyInputFocusChangedSignalType& KeyInputFocusChangedSignal(); /** * This signal is emitted when a key event was received, and none of the focused controls on the stage have consumed it. @@ -128,11 +129,11 @@ class KeyInputFocusManager; * @endcode * @return The signal to connect to. */ - UnhandledKeyEventSignalV2& UnhandledKeyEventSignal(); + UnhandledKeyEventSignalType& UnhandledKeyEventSignal(); private: - KeyInputFocusManager(Internal::KeyInputFocusManager *impl); + explicit DALI_INTERNAL KeyInputFocusManager(Internal::KeyInputFocusManager *impl); }; // class KeyInputFocusManager