To not to GetSharedPath if there is no image item in chat-message item
[platform/core/api/notification.git] / notification-ex / event_info_implementation.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_EVENT_INFO_IMPLEMENTATION_H_
18 #define NOTIFICATION_EX_EVENT_INFO_IMPLEMENTATION_H_
19
20 #include <string>
21 #include <memory>
22 #include <list>
23
24 #include <sys/types.h>
25
26 #include "notification-ex/dbus_sender.h"
27 #include "notification-ex/ievent_info.h"
28 #include "notification-ex/common.h"
29
30 namespace notification {
31
32 class EventInfo::Impl {
33  public:
34   virtual ~Impl();
35
36  private:
37   friend class EventInfo;
38   Impl(EventInfo* parent, int type, std::string owner, std::string channel,
39     std::string item_id);
40
41  private:
42   int type_;
43   std::string owner_;
44   std::string validated_owner_;
45   std::string channel_;
46   std::string item_id_;
47   uid_t uid_;
48   uid_t validated_uid_;
49   int request_id_;
50   NotificationError error_;
51   EventInfo* parent_;
52 };
53
54 }  // namespace notification
55 #endif  // NOTIFICATION_EX_EVENT_INFO_IMPLEMENTATION_H_