--- /dev/null
+/*
+ * Copyright 2016 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BubbleUnknownFileEntity_h_
+#define BubbleUnknownFileEntity_h_
+
+#include "BubbleEntity.h"
+#include "BubbleIconTextLayoutItem.h"
+
+namespace Msg {
+ class BubbleUnknownFileEntity
+ : public BubbleEntity {
+ public:
+ BubbleUnknownFileEntity(const std::string &filePath, const std::string fileName, Message::Direction direction);
+ virtual ~BubbleUnknownFileEntity();
+
+ BubbleIconTextLayoutItem *createView(Evas_Object *parent) override;
+
+ private:
+ std::string m_FileName;
+ };
+ inline BubbleUnknownFileEntity::BubbleUnknownFileEntity(const std::string &filePath, const std::string fileName, Message::Direction direction)
+ : BubbleEntity(UnknownFileItem, direction, filePath)
+ , m_FileName(std::move(fileName))
+ {
+ }
+
+ inline BubbleUnknownFileEntity::~BubbleUnknownFileEntity()
+ {
+ }
+
+ inline BubbleIconTextLayoutItem *BubbleUnknownFileEntity::createView(Evas_Object *parent)
+ {
+ auto *item = new BubbleIconTextLayoutItem(parent, *this);
+ item->setIcon(item->createIcon(ATTACH_UNKNOWN_ICON));
+ item->setMainText(m_FileName);
+ return item;
+ }
+}
+
+#endif /* BubbleUnknownFileEntity_h_ */