diff options
| author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-09-07 17:40:47 +0000 |
|---|---|---|
| committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-09-07 17:40:47 +0000 |
| commit | 653ca204d10b3481670a80769baa3d768bb5f64a (patch) | |
| tree | 97845708a0991d68ac10ec36618fe5fbd6eb584b /mg_content_interface.h | |
| parent | 22cedb0c0bb5345d92b67216f792810e75c75241 (diff) | |
| download | vdr-plugin-muggle-653ca204d10b3481670a80769baa3d768bb5f64a.tar.gz vdr-plugin-muggle-653ca204d10b3481670a80769baa3d768bb5f64a.tar.bz2 | |
Merged ogg vorbis player to trunk
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@148 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'mg_content_interface.h')
| -rwxr-xr-x | mg_content_interface.h | 75 |
1 files changed, 55 insertions, 20 deletions
diff --git a/mg_content_interface.h b/mg_content_interface.h index bb99999..44658e8 100755 --- a/mg_content_interface.h +++ b/mg_content_interface.h @@ -1,13 +1,10 @@ -/*******************************************************************/ /*! \file mg_content_interface.h * \brief data Objects for content (e.g. mp3 files, movies) for the vdr muggle plugin * - ******************************************************************** - * * \version $Revision: 1.4 $ - * \date $Date: 2004/05/28 15:29:18 $ + * \date $Date$ * \author Ralf Klueber, Lars von Wedel, Andreas Kellner - * \author file owner: $Author: lvw $ + * \author file owner: $Author$ * * Declares generic classes of for content items and interfaces to SQL databases * @@ -16,9 +13,7 @@ * - mgContentItem * - mgTracklist * - mgSelectionTreeNode - * */ -/*******************************************************************/ /* makes sure we dont parse the same declarations twice */ #ifndef _CONTENT_INTERFACE_H @@ -115,14 +110,15 @@ class mgContentItem return mgMediaPlayer(); } - /*! \brief get the "file" (or URL) that is passed to the player + //@{ + + /*! \brief return a specific label */ - virtual std::string getSourceFile() + virtual std::string getLabel(int col = 0) { return ""; } - // ============ data access ================= /*! \brief return the title */ virtual std::string getTitle() @@ -130,9 +126,9 @@ class mgContentItem return ""; } - /*! \brief return a specific label + /*! \brief get the "file" (or URL) that is passed to the player */ - virtual std::string getLabel(int col = 0) + virtual std::string getSourceFile() { return ""; } @@ -144,26 +140,62 @@ class mgContentItem return ""; } - virtual std::vector<mgFilter*> *getTrackInfo() + /*! \brief obtain the genre to which the track belongs + */ + virtual std::string getGenre() { - return NULL; + return ""; } - virtual bool updateTrackInfo(std::vector<mgFilter*>*) + /*! \brief obtain the rating of the title + */ + virtual int getRating() { - return false; + return 0; } - virtual std::string getGenre() + /*! \brief obtain the samplerate of the track + */ + virtual int getSampleRate() { - return ""; + return 0; } - virtual int getRating() + /*! \brief obtain the length of the track (in seconds) + */ + virtual int getLength() { return 0; } + /*! \brief obtain the number of audio channels of the track + */ + virtual int getChannels() + { + return 0; + } + + /*! \brief obtain the bitrate of the track + */ + virtual std::string getBitrate() + { + return ""; + } + + /*! \brief obtain track information in aggregated form + */ + virtual std::vector<mgFilter*> *getTrackInfo() + { + return NULL; + } + + //@} + + virtual bool updateTrackInfo(std::vector<mgFilter*>*) + { + return false; + } + virtual bool operator == (mgContentItem o) { return m_uniqID == o.m_uniqID; @@ -206,7 +238,10 @@ class mgTracklist virtual bool remove(unsigned int position); // remove item at position }; - +/*! + * \brief represent a node in a tree of selections + * \ingroup muggle + */ class mgSelectionTreeNode { |
