00001 00005 #ifndef FBwConectH 00006 #define FBwConectH 00007 //--------------------------------------------------------------------------- 00008 namespace fbwrap 00009 { 00010 00011 // What are we using from standard libraries 00012 using std::string; 00013 00015 #define DEFAULT_CHARACTER_SET "ISO8859_1" 00016 00017 //--------------------------------------------------------------------------- 00023 struct FBwServerDsc 00024 { 00026 string UserName; 00028 string Password; 00030 string Server; 00032 string CharSet; 00034 enum ConectionProtocol { 00035 protocol_tcpip=1, 00036 protocol_netbeui, 00037 protocol_spx, 00038 protocol_local 00039 }; 00041 ConectionProtocol Protocol; 00043 FBwServerDsc(); 00045 00052 FBwServerDsc(string pServ, string pUser, string pPass, string pCharSet=DEFAULT_CHARACTER_SET ) 00053 { 00054 UserName = pUser; 00055 Password = pPass; 00056 if( pServ=="Local" ) 00057 Server=""; 00058 else 00059 Server = pServ; 00060 CharSet=pCharSet; 00061 } 00063 00067 FBwServerDsc( const FBwServerDsc &ad) 00068 { 00069 UserName = ad.UserName; 00070 Password = ad.Password; 00071 Server = ad.Server; 00072 CharSet = ad.CharSet; 00073 } 00075 FBwServerDsc & operator=(const FBwServerDsc &ad) 00076 { 00077 UserName = ad.UserName; 00078 Password = ad.Password; 00079 Server = ad.Server; 00080 CharSet = ad.CharSet; 00081 } 00082 }; 00083 00084 //------------------------------------------------------------------------- 00085 } 00086 #endif
1.2.17