Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
d7ae87cc
Commit
d7ae87cc
authored
Jul 03, 2018
by
Hugo Beauzée-Luyssen
Browse files
IMovie: Remove media() getter
parent
bd9c2bc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/medialibrary/IMovie.h
View file @
d7ae87cc
...
...
@@ -35,7 +35,6 @@ class IMovie
virtual
int64_t
id
()
const
=
0
;
virtual
const
std
::
string
&
shortSummary
()
const
=
0
;
virtual
const
std
::
string
&
imdbId
()
const
=
0
;
virtual
Query
<
IMedia
>
media
()
=
0
;
};
}
...
...
src/Movie.cpp
View file @
d7ae87cc
...
...
@@ -87,13 +87,6 @@ bool Movie::setImdbId( const std::string& imdbId )
return
true
;
}
Query
<
IMedia
>
Movie
::
media
()
{
static
const
std
::
string
req
=
"FROM "
+
policy
::
MediaTable
::
Name
+
" WHERE movie_id = ?"
;
return
make_query
<
Media
,
IMedia
>
(
m_ml
,
"*"
,
req
,
m_id
);
}
void
Movie
::
createTable
(
sqlite
::
Connection
*
dbConnection
)
{
const
std
::
string
req
=
"CREATE TABLE IF NOT EXISTS "
+
policy
::
MovieTable
::
Name
...
...
src/Movie.h
View file @
d7ae87cc
...
...
@@ -53,7 +53,6 @@ class Movie : public IMovie, public DatabaseHelpers<Movie, policy::MovieTable>
bool
setShortSummary
(
const
std
::
string
&
summary
);
virtual
const
std
::
string
&
imdbId
()
const
override
;
bool
setImdbId
(
const
std
::
string
&
imdbId
);
virtual
Query
<
IMedia
>
media
()
override
;
static
void
createTable
(
sqlite
::
Connection
*
dbConnection
);
static
std
::
shared_ptr
<
Movie
>
create
(
MediaLibraryPtr
ml
,
int64_t
mediaId
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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