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
710138f6
Commit
710138f6
authored
May 11, 2014
by
Hugo Beauzée-Luyssen
Browse files
Add a MediaLibrary factory
parent
5b39a72c
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/IMediaLibrary.h
View file @
710138f6
...
...
@@ -9,10 +9,16 @@
class
IMediaLibrary
{
public:
virtual
~
IMediaLibrary
(){}
virtual
bool
initialize
(
const
std
::
string
&
dbPath
);
virtual
~
IMediaLibrary
()
{}
virtual
bool
initialize
(
const
std
::
string
&
dbPath
)
=
0
;
virtual
const
std
::
vector
<
IFile
*>&
files
()
=
0
;
};
class
MediaLibraryFactory
{
public:
static
IMediaLibrary
*
create
();
};
#endif // IMEDIALIBRARY_H
src/CMakeLists.txt
View file @
710138f6
...
...
@@ -25,6 +25,7 @@ list(APPEND SRC_LIST ${HEADERS_LIST}
Label.cpp
AlbumTrack.cpp
ShowEpisode.cpp
Factory.cpp
)
find_package
(
Sqlite3 REQUIRED
)
...
...
src/Factory.cpp
0 → 100644
View file @
710138f6
#include
"MediaLibrary.h"
IMediaLibrary
*
MediaLibraryFactory
::
create
()
{
return
new
MediaLibrary
();
}
Write
Preview
Supports
Markdown
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