Improve coverage and add notification unittest
[platform/core/api/notification.git] / notification-ex / iitem_info_internal.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_INTERNAL_H_
18 #define NOTIFICATION_EX_IITEM_INFO_INTERNAL_H_
19
20 #include <string>
21 #include <list>
22
23 #include "notification-ex/iitem_info.h"
24
25 #ifndef EXPORT_API
26 #define EXPORT_API __attribute__((visibility("default")))
27 #endif
28
29 namespace notification {
30 namespace item {
31
32 /* LCOV_EXCL_START */
33 class EXPORT_API IItemInfoInternal : public IItemInfo {
34  public:
35   virtual ~IItemInfoInternal() = default;
36   virtual uid_t GetUid() const = 0;
37   virtual void SetUid(uid_t uid) = 0;
38   virtual int64_t GetPrivateId() const = 0;
39   virtual void SetPrivateId(int64_t private_id) = 0;
40   virtual int GetVersion() const = 0;
41   virtual void SetVersion(int ver) = 0;
42   virtual void AddHideViewer(std::string appid) = 0;
43   virtual std::list<std::string> GetHideViewerList() const = 0;
44   virtual void SetTime(time_t time) = 0;
45   virtual bool CanReceive(std::string receiver_group) const = 0;
46 };
47 /* LCOV_EXCL_STOP */
48
49 }  // namespace item
50 }  // namespace notification
51 #endif  // NOTIFICATION_EX_IITEM_INFO_INTERNAL_H_