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

IShow: Add dummy nbSeasons/nbEpisodes member functions

parent 9bc488b0
......@@ -39,6 +39,8 @@ class IShow
virtual const std::string& artworkMrl() const = 0;
virtual const std::string& tvdbId() = 0;
virtual Query<IShowEpisode> episodes() = 0;
virtual uint32_t nbSeasons() const = 0;
virtual uint32_t nbEpisodes() const = 0;
};
}
......
......@@ -144,6 +144,16 @@ Query<IShowEpisode> Show::episodes()
return make_query<ShowEpisode, IShowEpisode>( m_ml, "*", req, m_id );
}
uint32_t Show::nbSeasons() const
{
return 0;
}
uint32_t Show::nbEpisodes() const
{
return 0;
}
void Show::createTable( sqlite::Connection* dbConnection )
{
const std::string req = "CREATE TABLE IF NOT EXISTS " + policy::ShowTable::Name + "("
......
......@@ -64,6 +64,8 @@ class Show : public IShow, public DatabaseHelpers<Show, policy::ShowTable>
bool setTvdbId( const std::string& summary );
std::shared_ptr<ShowEpisode> addEpisode( Media& media, const std::string& title, unsigned int episodeNumber );
virtual Query<IShowEpisode> episodes() override;
virtual uint32_t nbSeasons() const override;
virtual uint32_t nbEpisodes() const override;
static void createTable( sqlite::Connection* dbConnection );
static std::shared_ptr<Show> create( MediaLibraryPtr ml, const std::string& name );
......
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