- rework multimedia-menu code; cleanup from many unused code

This commit is contained in:
vanhofen
2017-09-13 15:36:34 +02:00
committed by Jacek Jendrzej
parent a7813a885d
commit d23323758c
7 changed files with 61 additions and 165 deletions

View File

@@ -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; }
};