summaryrefslogtreecommitdiff
path: root/muggle-plugin/gd_content_interface.h
diff options
context:
space:
mode:
authorMountainMan <MountainMan@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-09 19:27:52 +0000
committerMountainMan <MountainMan@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-09 19:27:52 +0000
commitd62ff70e806d5992436b1abc04fd479e5623a1fa (patch)
tree2c2788a6a6012005042c96e98a5bb83fb9c80478 /muggle-plugin/gd_content_interface.h
parenta6cd0e97d915a7e5fcb3db6fd25eaac624b03d57 (diff)
downloadvdr-plugin-muggle-d62ff70e806d5992436b1abc04fd479e5623a1fa.tar.gz
vdr-plugin-muggle-d62ff70e806d5992436b1abc04fd479e5623a1fa.tar.bz2
filter set implemented
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@31 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/gd_content_interface.h')
-rw-r--r--muggle-plugin/gd_content_interface.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/muggle-plugin/gd_content_interface.h b/muggle-plugin/gd_content_interface.h
index 476dc5d..fecca7c 100644
--- a/muggle-plugin/gd_content_interface.h
+++ b/muggle-plugin/gd_content_interface.h
@@ -3,8 +3,8 @@
* \brief Data Objects for content (e.g. mp3 files, movies)
* for the vdr muggle plugindatabase
********************************************************************
- * \version $Revision: 1.3 $
- * \date $Date: 2004/02/02 22:48:04 $
+ * \version $Revision: 1.4 $
+ * \date $Date: 2004/02/09 19:27:52 $
* \author Ralf Klueber, Lars von Wedel, Andreas Kellner
* \author file owner: $Author: MountainMan $
*
@@ -35,17 +35,24 @@ int GdInitDatabase(MYSQL *db);
std::vector<std::string> *GdGetStoredPlaylists(MYSQL db);
-class gdTrackFilters: public mgTrackFilters
+class gdFilterSets : public mgFilterSets
{
+
public:
- gdTrackFilters();
- ~gdTrackFilters();
+ gdFilterSets();
+ // constructor, constracts a number >=1 of filter sets
+ // the first set (index 0 ) is active by default
+
+ virtual ~gdFilterSets();
+ // destructor
+
+ virtual std::string computeRestriction(int *viewPrt);
+ // computes the (e.g. sql-) restrictions specified by the active filter set
+ // and returns the index of the appropriate defualt view in viewPrt
- virtual std::string CreateSQL();
- virtual void clear();
-
};
+
/*!
*******************************************************************
* \class mgGdTrack
@@ -99,7 +106,10 @@ private:
virtual std::string getSourceFile();
virtual std::string getTitle();
virtual std::string getLabel(int col);
- virtual std::string getDescription();
+
+ virtual std::vector<mgFilter*> *getTrackInfo();
+ virtual bool setTrackInfo(std::vector<mgFilter*>*);
+
virtual std::string getGenre();
virtual int getRating();
@@ -209,6 +219,9 @@ public:
/* -------------------- begin CVS log ---------------------------------
* $Log: gd_content_interface.h,v $
+ * Revision 1.4 2004/02/09 19:27:52 MountainMan
+ * filter set implemented
+ *
* Revision 1.3 2004/02/02 22:48:04 MountainMan
* added CVS $Log
*