Commit 31878917 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Folder: Expose banned state publicly

parent 5be920ac
......@@ -42,6 +42,11 @@ public:
*/
virtual const std::string& mrl() const = 0;
virtual bool isPresent() const = 0;
/**
* @brief isBanned Will return true if the folder was explicitely banned
* from being discovered.
*/
virtual bool isBanned() const = 0;
};
}
......@@ -314,6 +314,11 @@ bool Folder::isPresent() const
return m_device.get()->isPresent();
}
bool Folder::isBanned() const
{
return m_isBlacklisted;
}
bool Folder::isRootFolder() const
{
return m_parent == 0;
......
......@@ -76,6 +76,7 @@ public:
std::shared_ptr<Folder> parent();
int64_t deviceId() const;
virtual bool isPresent() const override;
virtual bool isBanned() const override;
bool isRootFolder() const;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment