git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1501 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
striper
2011-06-02 15:29:40 +00:00
parent 9871d76311
commit ec402d9518
24 changed files with 3815 additions and 12 deletions

View File

@@ -794,6 +794,7 @@ typedef enum
LOCALE_MISCSETTINGS_NOAVIAWATCHDOG,
LOCALE_MISCSETTINGS_NOENXWATCHDOG,
LOCALE_MISCSETTINGS_PMTUPDATE,
LOCALE_MISCSETTINGS_RADIOTEXT,
LOCALE_MISCSETTINGS_SHOW_INFOMENU,
LOCALE_MISCSETTINGS_SHUTDOWN_COUNT,
LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1,

View File

@@ -794,6 +794,7 @@ const char * locale_real_names[] =
"miscsettings.noaviawatchdog",
"miscsettings.noenxwatchdog",
"miscsettings.pmtupdate",
"miscsettings.radiotext",
"miscsettings.show_infomenu",
"miscsettings.shutdown_count",
"miscsettings.shutdown_count_hint1",

View File

@@ -399,6 +399,27 @@ bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t, void *)
return true;
}
bool CRadiotextNotifier::changeNotify(const neutrino_locale_t, void *)
{
if (g_settings.radiotext_enable)
{
if (g_Radiotext == NULL)
g_Radiotext = new CRadioText;
if (g_Radiotext && ((CNeutrinoApp::getInstance()->getMode()) == NeutrinoMessages::mode_radio))
g_Radiotext->setPid(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].pid);
}
else
{
// stop radiotext PES decoding
if (g_Radiotext)
g_Radiotext->radiotext_stop();
delete g_Radiotext;
g_Radiotext = NULL;
}
return true;
}
bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data)
{
if ((*(int *)data) != 0)

View File

@@ -314,4 +314,10 @@ public:
bool changeNotify(const neutrino_locale_t, void * data);
};
class CRadiotextNotifier : public CChangeObserver
{
public:
bool changeNotify(const neutrino_locale_t, void * Data);
};
#endif

View File

@@ -102,7 +102,8 @@ struct SNeutrinoSettings
int clockrec;
int rounded_corners;
int ci_standby_reset;
int radiotext_enable;
//vcr
int vcr_AutoSwitch;