neutrino.cpp: add adjustToChannelID();

add flags for accurate saving of things changed in channel list;
always add favorites bouquet to favorite bouquet list;
cleanup showChannelList()
This commit is contained in:
[CST] Focus
2014-10-10 15:18:33 +04:00
parent 722d226dbe
commit bdeb3b50de
3 changed files with 133 additions and 64 deletions

View File

@@ -98,12 +98,16 @@ private:
bool skipSleepTimer;
bool lockStandbyCall;
bool pbBlinkChange;
bool g_channel_list_changed;
bool channels_changed;
bool favorites_changed;
bool bouquets_changed;
bool channels_init;
bool timer_wakeup;
int tvsort[LIST_MODE_LAST];
int radiosort[LIST_MODE_LAST];
bool channellist_visible;
int first_mode_found;
void SDT_ReloadChannels();
void setupNetwork( bool force= false );
@@ -199,7 +203,10 @@ public:
return lastChannelMode;
};
void SetChannelMode(int mode);
void MarkChannelListChanged(void) { g_channel_list_changed = true; };
void MarkChannelsChanged(void) { channels_changed = true; };
void MarkFavoritesChanged(void) { favorites_changed = true; };
void MarkBouquetsChanged(void) { bouquets_changed = true; };
void MarkChannelsInit(void) { channels_init = true; };
void quickZap(int msg);
void numericZap(int msg);
void StopSubtitles();
@@ -220,6 +227,7 @@ public:
void standbyToStandby(void);
void lockPlayBack(bool blank = true);
void stopPlayBack(bool lock = false);
bool adjustToChannelID(const t_channel_id channel_id);
};
#endif