From db3d886b0eb87216e0c2f2667bc8e356b933a5d6 Mon Sep 17 00:00:00 2001 From: spenap Date: Fri, 23 Oct 2009 22:13:45 +0000 Subject: [PATCH] Added stubs for the *Providers interfaces, and a fake implementation for the WhatsAfterTheCredits provider git-svn-id: file:///svnroot/maevies/trunk@2 a96798e0-47ce-444a-94a4-1d14e63744fc --- src/IMovieInfoProvider.h | 23 +++++++++++++++++++++++ src/IMovieLocationProvider.h | 23 +++++++++++++++++++++++ src/IMovieStingerProvider.h | 25 +++++++++++++++++++++++++ src/WATCProvider.cpp | 21 +++++++++++++++++++++ src/WATCProvider.h | 27 +++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 src/IMovieInfoProvider.h create mode 100644 src/IMovieLocationProvider.h create mode 100644 src/IMovieStingerProvider.h create mode 100644 src/WATCProvider.cpp create mode 100644 src/WATCProvider.h diff --git a/src/IMovieInfoProvider.h b/src/IMovieInfoProvider.h new file mode 100644 index 0000000..4e1acee --- /dev/null +++ b/src/IMovieInfoProvider.h @@ -0,0 +1,23 @@ +/* + * This file is part of Maevies + * Copyright (C) 2009 Simón Pena + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ +#ifndef IMOVIEINFOPROVIDER_H +#define IMOVIEINFOPROVIDER_H + +class IMovieInfoProvider +{ +}; + +#endif diff --git a/src/IMovieLocationProvider.h b/src/IMovieLocationProvider.h new file mode 100644 index 0000000..996871b --- /dev/null +++ b/src/IMovieLocationProvider.h @@ -0,0 +1,23 @@ +/* + * This file is part of Maevies + * Copyright (C) 2009 Simón Pena + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ +#ifndef IMOVIELOCATIONPROVIDER_H +#define IMOVIELOCATIONPROVIDER_H + +class IMovieLocationProvider +{ +}; + +#endif diff --git a/src/IMovieStingerProvider.h b/src/IMovieStingerProvider.h new file mode 100644 index 0000000..c553fdc --- /dev/null +++ b/src/IMovieStingerProvider.h @@ -0,0 +1,25 @@ +/* + * This file is part of Maevies + * Copyright (C) 2009 Simón Pena + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ +#ifndef IMOVIESTINGERPROVIDER_H +#define IMOVIESTINGERPROVIDER_H + +class IMovieStingerProvider +{ + public: + virtual int stingersCount()=0; +}; + +#endif diff --git a/src/WATCProvider.cpp b/src/WATCProvider.cpp new file mode 100644 index 0000000..52a2903 --- /dev/null +++ b/src/WATCProvider.cpp @@ -0,0 +1,21 @@ +/* + * This file is part of Maevies + * Copyright (C) 2009 Simón Pena + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ +#include "WATCProvider.h" + +int WATCProvider::stingersCount() +{ + return 0; +} diff --git a/src/WATCProvider.h b/src/WATCProvider.h new file mode 100644 index 0000000..bcc2c4a --- /dev/null +++ b/src/WATCProvider.h @@ -0,0 +1,27 @@ +/* + * This file is part of Maevies + * Copyright (C) 2009 Simón Pena + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ +#ifndef WATCPROVIDER_H +#define WATCPROVIDER_H + +#include "IMovieStingerProvider.h" + +class WATCProvider : IMovieStingerProvider +{ + public: + int stingersCount(); +}; + +#endif -- 1.7.9.5