2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file view_logic_web_notification_data.cpp
19 * @author Jihoon Chung (jihoon.chung@samsung.com)
23 #include "view_logic_web_notification_data.h"
28 namespace ViewModule {
29 WebNotificationData::WebNotificationData(Ewk_Notification* ewkNotification) :
31 m_data(ewkNotification)
34 WebNotificationData::~WebNotificationData()
37 int WebNotificationData::getNotiId()
39 return m_notificaionId;
42 void WebNotificationData::setNotiId(const int notiId)
44 m_notificaionId = notiId;
47 uint64_t WebNotificationData::getEwkNotiId()
49 return ewk_notification_id_get(m_data);
52 const char* WebNotificationData::getIconUrl()
54 return ewk_notification_icon_url_get(m_data);
57 const char* WebNotificationData::getTitle()
59 return ewk_notification_title_get(m_data);
62 const char* WebNotificationData::getBody()
64 return ewk_notification_body_get(m_data);
67 Ewk_Notification* WebNotificationData::getData()
71 } //namespace ViewModule