2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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.
17 #ifndef NOTIFICATION_EX_ICON_ITEM_H_
18 #define NOTIFICATION_EX_ICON_ITEM_H_
24 #include "notification-ex/image_item.h"
27 * @brief The class for IconItem type notification.
28 * @details The class to make the notification with icon.
31 namespace notification {
34 class EXPORT_API IconItem : public ImageItem {
39 * @param[in] iconpath The icon path of IconItem
40 * @param[in] action The action for IconItem
42 IconItem(std::string iconPath,
43 std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
48 * @param[in] id The IconItem id
49 * @param[in] iconpath The icon path of IconItem
50 * @param[in] action The action for IconItem
52 IconItem(std::string id, std::string iconPath,
53 std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
62 * @brief Gets the type of IconItem.
64 * @return AbstractItem::Type::Icon
66 int GetType() const override;
70 std::unique_ptr<Impl> impl_;
74 } // namespace notification
75 #endif // NOTIFICATION_EX_ICON_ITEM_H_