Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
31878917
Commit
31878917
authored
Feb 02, 2018
by
Hugo Beauzée-Luyssen
Browse files
Folder: Expose banned state publicly
parent
5be920ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/medialibrary/IFolder.h
View file @
31878917
...
...
@@ -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
;
};
}
src/Folder.cpp
View file @
31878917
...
...
@@ -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
;
...
...
src/Folder.h
View file @
31878917
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment