00001 #ifndef ECONF_FRONT_H 00002 #define ECONF_FRONT_H 00003 00004 #include <vector> 00005 #include <string> 00006 #include "sdp/PayloadTypes.h" 00007 00008 using std::string; 00009 00014 class EConfKomssys; 00015 class EConfSystem; 00016 00019 class EConfFront 00020 { 00021 bool _in_conf; 00022 EConfKomssys* _conf; 00023 EConfSystem* _chosen; 00024 00025 public: 00026 EConfFront( ); 00027 ~EConfFront( ); 00028 00029 void enter( ); 00030 void leave( ); 00031 bool in( ) const; 00032 00033 EConfKomssys* conf( ) const; 00034 00035 ostream& dump( ostream& ostr ); 00036 00037 void parseFile( istream& istr ); 00038 00039 void chooseConf( std::vector<char*> hostnames, const char* type ); 00040 bool print_info( const char* filename ); 00041 bool print_warn( const char* filename ); 00042 bool print_error( const char* filename ); 00043 00044 const char* get_rtsp_eol( ); 00045 const char* get_sdp_eol( ); 00046 bool get_gui_autostart( ); 00047 bool get_gui_qt( ); 00048 bool get_gui_decoder( ); 00049 bool get_gui_mplayer( ); 00050 bool get_gui_gstreamermpeg( ); 00051 bool get_reflection( ); 00052 bool get_caching( ); 00053 const char* get_cachedir( ); 00054 int get_cachesize( ); 00055 const char* get_cachestrategy( ); 00056 bool get_patching( ); 00057 const char* get_rootdir( ); 00058 int get_rtsp_server_port( ); 00059 bool get_rtsp_use_proxy( ); 00060 int get_rtsp_proxy_port( ); 00061 int get_client_bw( ); 00062 bool get_client_destination( ); 00063 const char* get_rtsp_proxy_name( ); 00064 const char* get_rtp_mcast_if( ); 00065 const char* get_vs_type( ); 00066 bool get_vs_sendblock( ); 00067 const char* get_ce_pattern( ); 00068 int get_ce_delay( ); 00069 int get_se_movies( ); 00070 const char* get_se_popularity( ); 00071 // bool get_vs_layered( ); 00072 // bool get_vs_dummy( ); 00073 bool get_tfrc_reply( ); 00074 bool get_rtp_tcp( ); 00075 00076 //transcoder extension added by Jens Zechlin 00077 bool getUseTranscoding(const string clientName=""); 00078 int getScreenWidth(const string clientName); 00079 int getScreenHeight(const string clientName); 00080 string getTransLib(const string clientName, const SDP::PayloadTypes payloadType); 00081 00082 bool getUseDynReflection(); 00083 const char* getDynReflectionRepositioningMode(); 00084 int getTimeThreshold(); 00085 00086 00087 private: 00088 EConfFront( const EConfFront& ); 00089 EConfFront& operator=( const EConfFront& ); 00090 }; 00091 00093 00094 #endif /* ECONF_FRONT_H */