Merge branch 'tizen' into tizen_5.5
[platform/core/api/notification.git] / notification-ex / iitem_info.h
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 #ifndef NOTIFICATION_EX_IITEM_INFO_H_
18 #define NOTIFICATION_EX_IITEM_INFO_H_
19
20 #include <time.h>
21
22 namespace notification {
23 namespace item {
24
25 /**
26  * @brief The interface class for ItemInfo
27  * @since_tizen 5.5
28  */
29 class EXPORT_API IItemInfo {
30  public:
31   /**
32    * @brief Destructor
33    * @since_tizen 5.5
34    */
35   virtual ~IItemInfo() = default;
36
37   /**
38    * @brief Gets hide time of notification
39    * @since_tizen 5.5
40    * @return The hide time value
41    */
42   virtual int GetHideTime() const = 0;
43
44   /**
45    * @brief Sets hide time of notification
46    * @since_tizen 5.5
47    * @param[in] hide_time The hide time
48    */
49   virtual void SetHideTime(int hide_time) = 0;
50
51   /**
52    * @brief Gets delete time of notification
53    * @since_tizen 5.5
54    * @return The delete time value
55    */
56   virtual int GetDeleteTime() const = 0;
57
58   /**
59    * @brief Sets delete time of notification
60    * @since_tizen 5.5
61    * @param[in] delete_time The delete time
62    */
63   virtual void SetDeleteTime(int delete_time)  = 0;
64
65   /**
66    * @brief Gets time information
67    * @since_tizen 5.5
68    * @return The time information
69    */
70   virtual time_t GetTime() const = 0;
71 };
72
73 }  // namespace item
74 }  // namespace notification
75 #endif  // NOTIFICATION_EX_IITEM_INFO_H_