Migrates flm handlers and objects to plain member access
This commit is contained in:
1 parent
e156fbb5e4
commit
3c058facd7
9 files changed
+217
-217
No files matched your search
@@ -29,20 +29,20 @@ public:
|
||||
Core::FunctionReplyObject updateObject(const Folder &data);
|
||||
Core::FunctionReplyObject removeObject();
|
||||
|
||||
qint32 getId() const { return m_data.id(); }
|
||||
qint32 getId() const { return m_data.id; }
|
||||
Folder getData() const { return m_data; }
|
||||
QString getName() const { return QString::fromStdString(m_data.name()); }
|
||||
QString getName() const { return QString::fromStdString(m_data.name); }
|
||||
std::vector<int32_t> getPath() const
|
||||
{
|
||||
return m_data.path();
|
||||
return m_data.path;
|
||||
}
|
||||
qint32 getParentId() const
|
||||
{
|
||||
return m_data.path().size() > 1 ? m_data.path().at(m_data.path().size() - 2) : 0;
|
||||
return m_data.path.size() > 1 ? m_data.path.at(m_data.path.size() - 2) : 0;
|
||||
}
|
||||
bool pathContains(const int32_t &val) const
|
||||
{
|
||||
for (auto i : m_data.path())
|
||||
for (auto i : m_data.path)
|
||||
if (i == val) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user