Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
710138f6
Commit
710138f6
authored
May 11, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a MediaLibrary factory
parent
5b39a72c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
include/IMediaLibrary.h
include/IMediaLibrary.h
+8
-2
src/CMakeLists.txt
src/CMakeLists.txt
+1
-0
src/Factory.cpp
src/Factory.cpp
+6
-0
No files found.
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
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