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_IITEM_INFO_H_
18 #define NOTIFICATION_EX_IITEM_INFO_H_
22 namespace notification {
26 * @brief The interface class for ItemInfo
29 class EXPORT_API IItemInfo {
35 virtual ~IItemInfo() = default;
38 * @brief Gets hide time of notification
40 * @return The hide time value
42 virtual int GetHideTime() const = 0;
45 * @brief Sets hide time of notification
47 * @param[in] hide_time The hide time
49 virtual void SetHideTime(int hide_time) = 0;
52 * @brief Gets delete time of notification
54 * @return The delete time value
56 virtual int GetDeleteTime() const = 0;
59 * @brief Sets delete time of notification
61 * @param[in] delete_time The delete time
63 virtual void SetDeleteTime(int delete_time) = 0;
66 * @brief Gets time information
68 * @return The time information
70 virtual time_t GetTime() const = 0;
74 } // namespace notification
75 #endif // NOTIFICATION_EX_IITEM_INFO_H_