Add internal api to support C#
[platform/core/api/notification.git] / notification-ex / chat_message_item_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_CHAT_MESSAGE_ITEM_IMPLEMENTATION_H_
18 #define NOTIFICATION_EX_CHAT_MESSAGE_ITEM_IMPLEMENTATION_H_
19
20 #include <time.h>
21
22 #include <string>
23 #include <memory>
24 #include <list>
25
26 #include "notification-ex/chat_message_item.h"
27
28 namespace notification {
29 namespace item {
30
31 class ChatMessageItem::Impl {
32  public:
33   virtual ~Impl();
34
35  private:
36   friend class ChatMessageItem;
37   Impl(ChatMessageItem* parent, std::shared_ptr<TextItem> name,
38     std::shared_ptr<TextItem> text, std::shared_ptr<ImageItem> image,
39     std::shared_ptr<TimeItem> time, Type type);
40
41  private:
42   ChatMessageItem* parent_;
43   std::shared_ptr<TextItem> name_;
44   std::shared_ptr<TextItem> text_;
45   std::shared_ptr<ImageItem> image_;
46   std::shared_ptr<TimeItem> time_;
47   Type type_;
48 };
49
50 }  // namespace item
51 }  // namespace notification
52 #endif  // NOTIFICATION_EX_CHAT_MESSAGE_ITEM_IMPLEMENTATION_H_