class DbConnection

encapsulate all connections to database server

Public Fields

static const char _database_name_[]
static const char _debug_level_[]
static const char _list_movies_[]
static const char _list_captions_[]
static const char _list_mov_files_[]
static const char _superuser_[]
static const char _save_properties_[]
static const char _list_properties_[]
static const char _set_property_[]
static const char _list_channels_[]

Public Methods

DbConnection()
~DbConnection()
void connect( const string &server, unsigned int port )
bool login_superuser( const string &passwd, vector< string > &messages )
const map < int, MovieItem > & get_movies() const
const MovieItem& get_movie_by_id( int id )
void wait_input()
void skip_to_prompt( vector< string > &messages )
void set_debug( vector< string > &messages, int debugL )
string get_database_name( vector< string > &messages )
void load_new_database( vector< string > &messages, const string &dbname )
void load_movie_text( vector< string >&messages, int id, TextOfMovieT *tom)
void getMovieFileListByTime( int id, const struct tm &t, MovieFilesT &movieFiles, const Session &session, vector< string > &messages )
the db_connection class keeps the list of files for each movie
void loadMovieFileList( int id, MovieItem &mi, const Session &session, vector< string > &messages )
void loadServerProperties( vector< string > &messages, ServerConfigItemVec &props )
void saveServerProperties( vector< string > &messages, ServerConfigItemVec &props )
void fill_channellist( vector< string > &messages, channel_infos_mapT &channel_infos_map )
void start_recording( int channel_id, vector< string > &messages )
tell database server that this movie should be recorded now; this method will ask and pass the database name back to database server
void stop_recording( int channel_id, vector< string > &messages )

Private Fields

db_iostream* dbSockStream
holds i/o stream
map < int, MovieItem > movies
tree of movies

Documentation

encapsulate all connections to database server
db_iostream* dbSockStream
holds i/o stream

map < int, MovieItem > movies
tree of movies

static const char _database_name_[]

static const char _debug_level_[]

static const char _list_movies_[]

static const char _list_captions_[]

static const char _list_mov_files_[]

static const char _superuser_[]

static const char _save_properties_[]

static const char _list_properties_[]

static const char _set_property_[]

static const char _list_channels_[]

DbConnection()

~DbConnection()

void connect( const string &server, unsigned int port )

bool login_superuser( const string &passwd, vector< string > &messages )

const map < int, MovieItem > & get_movies() const

const MovieItem& get_movie_by_id( int id )

void wait_input()

void skip_to_prompt( vector< string > &messages )

void set_debug( vector< string > &messages, int debugL )

string get_database_name( vector< string > &messages )

void load_new_database( vector< string > &messages, const string &dbname )

void load_movie_text( vector< string >&messages, int id, TextOfMovieT *tom)

void getMovieFileListByTime( int id, const struct tm &t, MovieFilesT &movieFiles, const Session &session, vector< string > &messages )
the db_connection class keeps the list of files for each movie. This call only select files by time and fill back the empty list movieFiles. const session it passed to let access the preferences

void loadMovieFileList( int id, MovieItem &mi, const Session &session, vector< string > &messages )

void loadServerProperties( vector< string > &messages, ServerConfigItemVec &props )

void saveServerProperties( vector< string > &messages, ServerConfigItemVec &props )

void fill_channellist( vector< string > &messages, channel_infos_mapT &channel_infos_map )

void start_recording( int channel_id, vector< string > &messages )
tell database server that this movie should be recorded now; this method will ask and pass the database name back to database server. This is a little redundant, but it's a good idea to tell the database name into the startrecording command to avoid any possible confusion.

void stop_recording( int channel_id, vector< string > &messages )


This class has no child classes.

alphabetic index html hierarchy of classes or java



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