Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / integration-api / events / key-event-integ.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // CLASS HEADER
18 #include <dali/integration-api/events/key-event-integ.h>
19
20 namespace Dali
21 {
22
23 namespace Integration
24 {
25
26 KeyEvent::KeyEvent()
27 : Event(Key),
28   keyName(),
29   keyString(),
30   keyCode(-1),
31   keyModifier(0),
32   time(0),
33   state(KeyEvent::Down)
34 {
35 }
36
37 KeyEvent::KeyEvent(const std::string& keyName, const std::string& keyString, int keyCode, int keyModifier, unsigned long timeStamp, const State& keyState)
38 : Event(Key),
39   keyName(keyName),
40   keyString(keyString),
41   keyCode(keyCode),
42   keyModifier(keyModifier),
43   time(timeStamp),
44   state(keyState)
45 {
46 }
47
48 KeyEvent::~KeyEvent()
49 {
50 }
51
52 } // namespace Integration
53
54 } // namespace Dali