Change-Id: I93370dc1622f1d797abb31f8adab0c4949ebba3b
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
if(!newVideoFilePath.empty())
{
- long long fileSize = FileUtils::getFileSize(thumbFilePath);
+ long long fileSize = FileUtils::getFileSize(newVideoFilePath);
// FIXME: if getVideoFrame returns false ?
MediaUtils::getVideoFrame(videoFilePath, thumbFilePath);
m_Body.addVideo(*this, newVideoFilePath, fileSize, thumbFilePath);
virtual ~VideoPageViewItem();
virtual Type getType() const;
+ virtual std::string getFileName() const;
};
}
*/
#include "VideoPageViewItem.h"
+#include "FileUtils.h"
using namespace Msg;
{
}
+std::string VideoPageViewItem::getFileName() const
+{
+ return FileUtils::getFileName(getResourcePath());
+}
+
VideoPageViewItem::Type VideoPageViewItem::getType() const
{
return VideoType;