mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
- rework multimedia-menu code; cleanup from many unused code
This commit is contained in:
@@ -38,22 +38,12 @@
|
||||
class CMediaPlayerMenu : public CMenuTarget
|
||||
{
|
||||
private:
|
||||
int width, usage_mode;
|
||||
neutrino_locale_t menu_title;
|
||||
int width;
|
||||
|
||||
CAudioPlayerGui *audioPlayer;
|
||||
CAudioPlayerGui *inetPlayer;
|
||||
|
||||
void showMoviePlayer(CMenuWidget *menu_movieplayer, CPersonalizeGui *p);
|
||||
|
||||
public:
|
||||
enum MM_MENU_MODES
|
||||
{
|
||||
MODE_DEFAULT,
|
||||
MODE_AUDIO,
|
||||
MODE_VIDEO
|
||||
};
|
||||
|
||||
CMediaPlayerMenu();
|
||||
~CMediaPlayerMenu();
|
||||
static CMediaPlayerMenu* getInstance();
|
||||
@@ -61,8 +51,6 @@ class CMediaPlayerMenu : public CMenuTarget
|
||||
int initMenuMedia(CMenuWidget *m = NULL, CPersonalizeGui *p = NULL);
|
||||
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
void setMenuTitel(const neutrino_locale_t title = LOCALE_MAINMENU_MEDIA){menu_title = title;};
|
||||
void setUsageMode(const int& mm_mode = MODE_DEFAULT){usage_mode = mm_mode;};
|
||||
CAudioPlayerGui *getPlayerInstance() { if (audioPlayer != NULL) return audioPlayer; else if (inetPlayer != NULL) return inetPlayer; else return NULL; }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user