2 * MP3/MPlayer plugin to VDR (C++)
4 * (C) 2001-2006 Stefan Huelswitt <s.huelswitt@gmx.de>
6 * This code is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This code is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
26 #if APIVERSNUM >= 10307
27 #include <vdr/osdbase.h>
32 // ----------------------------------------------------------------
34 void Status(const char *text);
35 void Error(const char *text);
36 void Info(const char *text);
38 // ----------------------------------------------------------------
45 // ----------------------------------------------------------------
47 class cMenuBrowse : public cOsdMenu {
49 eOSState Select(bool isred);
50 eOSState Parent(void);
51 bool LoadDir(const char *dir);
53 static cFileObj *lastselect;
57 bool dirselectable, withID3;
58 char *currentdir, *parent;
59 const char * const *excl;
61 bool NewDir(const char *dir);
62 void SetSource(cFileSource *Source);
63 cFileObj *CurrentItem(void);
64 virtual void SetButtons(void);
65 virtual eOSState ID3Info(void);
66 virtual eOSState ProcessStdKey(eKeys Key, eOSState state);
68 cMenuBrowse(cFileSource *Source, bool Dirselect, bool WithID3, const char *title, const char * const *Excl);
70 static cFileObj *GetSelected(void) { return lastselect; }
73 // ----------------------------------------------------------------
75 class cMenuSource : public cOsdMenu {
77 static cFileSource *selected;
81 eOSState Unmount(void);
83 eOSState Select(void);
84 bool DoMount(cFileSource *src);
85 bool CheckMount(void);
87 cMenuSource(cFileSources *Sources, const char *title);
88 virtual eOSState ProcessKey(eKeys Key);
89 static cFileSource *GetSelected(void) { return selected; }
92 // ----------------------------------------------------------------
94 class cProgressBar : public cBitmap {
96 cProgressBar(int Width, int Height, int Current, int Total);