Merge "Update some items" into tizen
[platform/core/api/notification.git] / notification-ex / icon_item.cc
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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 #include <dlog.h>
18
19 #include "notification-ex/icon_item.h"
20 #include "notification-ex/icon_item_implementation.h"
21 #include "notification-ex/abstract_item.h"
22
23 #ifdef LOG_TAG
24 #undef LOG_TAG
25 #endif
26
27 #define LOG_TAG "NOTIFICATION_EX"
28
29 namespace notification {
30 namespace item {
31
32 IconItem::IconItem(std::string iconPath, std::shared_ptr<AbstractAction> action)
33   : ImageItem(iconPath, action) , impl_(new Impl(this, iconPath)) {
34 }
35
36 IconItem::IconItem(std::string id, std::string iconPath,
37   std::shared_ptr<AbstractAction> action)
38   : ImageItem(id, iconPath, action), impl_(new Impl(this, iconPath)) {
39 }
40
41 IconItem::Impl::Impl(IconItem* parent, std::string iconPath)
42   : parent_(parent), iconPath_(iconPath) {
43   LOGI("IconItem impl created");
44 }
45
46 IconItem::~IconItem() = default;
47 IconItem::Impl::~Impl() = default;
48
49 }  // namespace item
50 }  // namespace notification_ex
51