class Session: public Gtk_Main


Inheritance:


Public Methods

Session( int *pargc, char ***pargv )
void run()
overload
void cleanup()
if this function is not called when the program die - it may be very bad, sorry
void loadAllConfig()
void saveAllConfig()
void connect_to_dbserver()
connect or reconnect to the database server
void update_movie_list( const string &dbname )
copy data from dbConnection to mainWindow
const WordDb& get_word_db() const
const MovieItem& get_movie_by_id( int id ) const
void display_movie_text_window( int id, time_t timepos = 0 )
called by mainWindow
void display_movie_text_window_go_line( int id, unsigned linenum )
void edit_preferences()
called by mainWindow
const TextOfMovieT* get_movie_text( int id )
called by textWindow
bool is_movie_text_loaded( int id )
test
const WordOccurencesT& find_word( const string &w ) const
called by search window
void find_similar_words( const string &word, GList *similar ) const
void get_hint_words( const string &word, GList *&similar ) const
int close_text_window( GdkEventAny *ev )
void menu_close_text_window( int id )
void notify_text_win_die( int movieId )
void playVideo( TextWindow &tw, struct tm t, int id )
called by textWindow
void playBroadcast( const string &url )
Start broadcast, stop video playback
void stop()
stop playback or broadcast video
void start_recording( int channel_id )
tell database server that this movie should be recorded now
void stop_recording( int channel_id )
void select_text_line_by_time( int movieId, time_t t )
called by playback window
void fill_channellist( channel_infos_mapT &channel_infos_map )
called by broadcast window
void loadServerProperties( ServerConfigItemVec &props )
void saveServerProperties( ServerConfigItemVec &props )
void login_superuser( string passwd )
gint timeout()
called by timeout
void put_message( int debl, const string &msg )
display string on debug window
void put_message( int debl, const char *format, ... )

Private Fields

string gdbmMainConfigFile
gdbm
string argv0
name of program
bool superuser
setting this value to true does not make you superuser, you still have to login to server as superuser
MainWindow* mainWindow
keep this pointer to main window
textWindowsMapT textWindowsMap
map of text windows
PrefWindow* preferencesWindow
DbConnection* dbConnection
database
WordDb* wordDb
text container
SearchSystem* searchSystem
search system
SearchWindow* searchWindow
search window
SuLoginWindow* suLoginWindow
SuperuserPreferenciesWindow* suPrefWindow
PlaybackWindow* playbackWindow
playback window
BroadcastWindow* broadcastWindow
superuser may look what is broadcasted

Documentation

string gdbmMainConfigFile
gdbm

string argv0
name of program

bool superuser
setting this value to true does not make you superuser, you still have to login to server as superuser

MainWindow* mainWindow
keep this pointer to main window

textWindowsMapT textWindowsMap
map of text windows

PrefWindow* preferencesWindow

DbConnection* dbConnection
database

WordDb* wordDb
text container

SearchSystem* searchSystem
search system. This is not the same as the word database

SearchWindow* searchWindow
search window

SuLoginWindow* suLoginWindow

SuperuserPreferenciesWindow* suPrefWindow

PlaybackWindow* playbackWindow
playback window

BroadcastWindow* broadcastWindow
superuser may look what is broadcasted

Session( int *pargc, char ***pargv )

void run()
overload

void cleanup()
if this function is not called when the program die - it may be very bad, sorry

void loadAllConfig()

void saveAllConfig()

void connect_to_dbserver()
connect or reconnect to the database server

void update_movie_list( const string &dbname )
copy data from dbConnection to mainWindow

const WordDb& get_word_db() const

const MovieItem& get_movie_by_id( int id ) const

void display_movie_text_window( int id, time_t timepos = 0 )
called by mainWindow

void display_movie_text_window_go_line( int id, unsigned linenum )

void edit_preferences()
called by mainWindow

const TextOfMovieT* get_movie_text( int id )
called by textWindow

bool is_movie_text_loaded( int id )
test

const WordOccurencesT& find_word( const string &w ) const
called by search window

void find_similar_words( const string &word, GList *similar ) const

void get_hint_words( const string &word, GList *&similar ) const

int close_text_window( GdkEventAny *ev )

void menu_close_text_window( int id )

void notify_text_win_die( int movieId )

void playVideo( TextWindow &tw, struct tm t, int id )
called by textWindow. Stop broadcast at the same time. This call first load all data from the database server, then look at preference best1PushServID and select the best push server that can play this movie. If no best server - select the random one

void playBroadcast( const string &url )
Start broadcast, stop video playback. The channel number must be specified

void stop()
stop playback or broadcast video

void start_recording( int channel_id )
tell database server that this movie should be recorded now

void stop_recording( int channel_id )

void select_text_line_by_time( int movieId, time_t t )
called by playback window

void fill_channellist( channel_infos_mapT &channel_infos_map )
called by broadcast window

void loadServerProperties( ServerConfigItemVec &props )

void saveServerProperties( ServerConfigItemVec &props )

void login_superuser( string passwd )

gint timeout()
called by timeout

void put_message( int debl, const string &msg )
display string on debug window

void put_message( int debl, const char *format, ... )


This class has no child classes.

alphabetic index html hierarchy of classes or java



This page was generated with the help of DOC++.