Redesign RSS base classes.

This commit is contained in:
Vladimir Golovnev (Glassez)
2015-10-17 18:59:04 +03:00
committed by Vladimir Golovnev (qlassez)
parent 6f7ae728eb
commit 28ed981082
16 changed files with 232 additions and 266 deletions

View File

@@ -36,11 +36,16 @@ using namespace Rss;
File::~File() {}
Folder *File::parentFolder() const
{
return m_parent;
}
QStringList File::pathHierarchy() const
{
QStringList path;
if (parent())
path << parent()->pathHierarchy();
if (m_parent)
path << m_parent->pathHierarchy();
path << id();
return path;
}