00001
00002
00003
00004
00005 #ifndef xmog_remote_client_options_inc
00006 #define xmog_remote_client_options_inc
00007
00008
00009 #include "xmog.h"
00010
00011
00012 #if (XMOG_IMPLEMENTS_REMOTE_CLIENT==1)
00013
00014
00059 class XMOG_DECLSPEC xmog_remote_client_options
00060 {
00061 protected:
00062
00063 xmog_remote_client_options( bool bEnvOverrides = true );
00064
00065 xmog_remote_client_options( const char * filename, bool bEnvOverrides = true );
00066
00067 xmog_remote_client_options( const char * filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
00068
00069 xmog_remote_client_options( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
00070
00071 xmog_remote_client_options( int argc, char * argv[], bool bEnvOverrides = true );
00072
00073 virtual ~xmog_remote_client_options();
00074
00075 public:
00076
00077 virtual int readClientOptions( const char * file, XMOGVERSION vers = NULL, XMOGCONFIG conf = NULL, XMOGVERSION reserved0 = NULL );
00078
00091 virtual void setJniFallback( bool jnifb );
00092
00106 virtual void setJniFallback( const char * jnifb );
00107
00112 virtual bool getJniFallback() const;
00113
00125 virtual void setMainClass( const char * mainClass );
00126
00134 virtual char * getMainClass() const;
00135
00143 virtual void setAuthenticationString( const char * auth );
00144
00150 virtual char * getAuthenticationString() const;
00151
00159 virtual void setConnectionString( const char * conn );
00160
00166 virtual char * getConnectionString() const;
00167
00175 virtual void setEncryptionString( const char * enc );
00176
00182 virtual char * getEncryptionString() const;
00183
00184 protected:
00185
00186 void init();
00187
00188 void env_override();
00189
00190 void reset();
00191
00192 private:
00193
00194 int readClientOptionsFromRegistry( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
00195
00196 int readClientOptionsInJunction20Format( const char * fileName, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
00197
00198 int readClientOptionsInXmlFormat( const char * fileName );
00199
00200 char * mainClass;
00201
00202 char * auth;
00203
00204 char * conn;
00205
00206 char * enc;
00207
00208 bool bJniFallback;
00209
00210 bool envOverrides;
00211 };
00212
00213
00214 #endif
00215
00216 #endif