1.1 --- a/core/MenuStyle_Radio.h Sun Nov 11 20:59:20 2007 +0000
1.2 +++ b/core/MenuStyle_Radio.h Fri Nov 23 05:10:33 2007 +0000
1.3 @@ -47,6 +47,21 @@
1.4 class CRadioDisplay;
1.5 class CRadioMenu;
1.6
1.7 +class CRadioMenuPlayer : public CBaseMenuPlayer
1.8 +{
1.9 +public:
1.10 + void Radio_Init(int keys, const char *title, const char *buffer);
1.11 + bool Radio_NeedsRefresh();
1.12 + void Radio_Refresh();
1.13 + void Radio_SetIndex(unsigned int index);
1.14 +private:
1.15 + unsigned int m_index;
1.16 + size_t display_len;
1.17 + char display_pkt[512];
1.18 + int display_keys;
1.19 + float display_last_refresh;
1.20 +};
1.21 +
1.22 class CRadioStyle :
1.23 public BaseMenuStyle,
1.24 public SMGlobalClass,
1.25 @@ -61,6 +76,7 @@
1.26 public: //BaseMenuStyle
1.27 CBaseMenuPlayer *GetMenuPlayer(int client);
1.28 void SendDisplay(int client, IMenuPanel *display);
1.29 + void ProcessWatchList();
1.30 public: //IMenuStyle
1.31 const char *GetStyleName();
1.32 IMenuPanel *CreatePanel();
1.33 @@ -75,8 +91,10 @@
1.34 public:
1.35 CRadioDisplay *MakeRadioDisplay(CRadioMenu *menu=NULL);
1.36 void FreeRadioDisplay(CRadioDisplay *display);
1.37 + CRadioMenuPlayer *GetRadioMenuPlayer(int client);
1.38 + IMenuPanel *MakeRadioDisplay(const char *str, int keys);
1.39 private:
1.40 - CBaseMenuPlayer *m_players;
1.41 + CRadioMenuPlayer *m_players;
1.42 CStack<CRadioDisplay *> m_FreeDisplays;
1.43 };
1.44
1.45 @@ -101,6 +119,8 @@
1.46 unsigned int GetCurrentKey();
1.47 bool SetCurrentKey(unsigned int key);
1.48 int GetAmountRemaining();
1.49 +public:
1.50 + void DirectSet(const char *str, int keymap);
1.51 private:
1.52 String m_BufferText;
1.53 String m_Title;