Added stubs for the *Providers interfaces, and a fake implementation for the WhatsAft...
authorspenap <bulfaiter@gmail.com>
Fri, 23 Oct 2009 22:13:45 +0000 (22:13 +0000)
committerspenap <bulfaiter@gmail.com>
Fri, 23 Oct 2009 22:13:45 +0000 (22:13 +0000)
git-svn-id: file:///svnroot/maevies/trunk@2 a96798e0-47ce-444a-94a4-1d14e63744fc

src/IMovieInfoProvider.h [new file with mode: 0644]
src/IMovieLocationProvider.h [new file with mode: 0644]
src/IMovieStingerProvider.h [new file with mode: 0644]
src/WATCProvider.cpp [new file with mode: 0644]
src/WATCProvider.h [new file with mode: 0644]

diff --git a/src/IMovieInfoProvider.h b/src/IMovieInfoProvider.h
new file mode 100644 (file)
index 0000000..4e1acee
--- /dev/null
@@ -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 (file)
index 0000000..996871b
--- /dev/null
@@ -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 (file)
index 0000000..c553fdc
--- /dev/null
@@ -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 (file)
index 0000000..52a2903
--- /dev/null
@@ -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 (file)
index 0000000..bcc2c4a
--- /dev/null
@@ -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