Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / modules / API / SoftKeyboardChangeEvent / SoftKeyboardChangeEvent.h
1 /*
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
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  *
18  * @file        SoftKeyboardChangeEvent.h
19  * @author      Yunchan Cho (yunchan.cho@samsung.com)
20  * @version     0.1
21  * @brief       softkeyboardchange event class
22  */
23
24 #ifndef WRT_PLUGIN_SOFTKEYBOARD_CHANGE_EVENT_CLASS_H
25 #define WRT_PLUGIN_SOFTKEYBOARD_CHANGE_EVENT_CLASS_H
26
27 #include <string>
28 #include "ISoftKeyboardChangeEvent.h"
29
30 namespace WrtDeviceApis {
31 namespace SoftKeyboardChangeEvent {
32 namespace Api {
33 class SoftKeyboardChangeEvent : public ISoftKeyboardChangeEvent
34 {
35   public:
36     explicit SoftKeyboardChangeEvent(
37         std::string state,
38         int width,
39         int height);
40     ~SoftKeyboardChangeEvent();
41
42     std::string getState() const;
43     int getWidth() const;
44     int getHeight() const;
45
46   private:
47     std::string m_state;
48     int m_width;
49     int m_height;
50 };
51 } // Api
52 } // SoftKeyboardChangeEvent
53 } // WrtDeviceApis
54
55 #endif // WRT_PLUGIN_SOFTKEYBOARD_CHANGE_EVENT_CLASS_H