Merge "fix: use EINA_* booleans instread of TRUE/FALSE" into tizen
[platform/framework/web/wrt.git] / src / view / webkit / view_logic_web_notification_data.h
1 /*
2  * Copyright (c) 2013 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    view_logic_web_notification_data.h
19  * @author  Jihoon Chung (jihoon.chung@samsung.com)
20  *
21  */
22
23 #ifndef VIEW_LOGIC_WEB_NOTIFICATION_DATA_H_
24 #define VIEW_LOGIC_WEB_NOTIFICATION_DATA_H_
25
26 #include <stdint.h>
27 #include <EWebKit2.h>
28 #include <memory>
29
30 namespace ViewModule {
31 class WebNotificationData
32 {
33   public:
34     WebNotificationData(Ewk_Notification* ewkNotification);
35     virtual ~WebNotificationData();
36
37     int getNotiId(void);
38     void setNotiId(const int notiId);
39     uint64_t getEwkNotiId(void);
40     const char* getIconUrl(void);
41     const char* getTitle(void);
42     const char* getBody(void);
43     Ewk_Notification* getData(void);
44
45   private:
46     int m_notificaionId;
47     Ewk_Notification* m_data;
48 };
49 typedef std::shared_ptr<WebNotificationData> WebNotificationDataPtr;
50 } // namespace ViewModule
51 #endif // VIEW_LOGIC_WEB_NOTIFICATION_DATA_H_