broadcast_win.h
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:2k
- /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
- Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
- Software license is located in file "COPYING"
- */
- #ifndef _broadcast_win_h_
- #define _broadcast_win_h_
- #include "session.h"
- #include "channel_info.h"
- class BroadcastWindow : public Gtk_Window {
-
- /** session */
- Session &session;
- /** top menu */
- Gtk_MenuBar *menuBar;
- /** bottom status bar */
- Gtk_Statusbar *statusBar;
- /** list channels by title, let select the current channel */
- Gtk_CList *channelList;
- /** keep descriptions for all channels; the Gtk list of channels
- should keep the Id of channel as "key" to access this data */
- channel_infos_mapT channel_infos_map;
- /** in this case the text is updated on-the fly, when new data comes from
- UDP */
- Gtk_CList *movieText;
- /** channel is selected by selecting the row in channel list */
- int current_channel_id;
- /** indicate that yes, we acknowledge the interest to receive this channel */
- bool playing;
- static const int topWindowInitSizeX;
- static const int topWindowInitSizeY;
- static const int channelListColumns;
- public:
- BroadcastWindow( Session &s );
- void callback_play();
- void callback_stop();
- /** tell databse server that we should strt the recording of
- current_channel_id
- */
- void callback_record();
- void callback_stop_recording();
- void callback_channel_select_row( gint row, gint col, GdkEvent *button );
- void callback_update_channellist();
- };
- #endif // _broadcast_win_h_