Patch level :10.0 CD
Files correlati : Ricompilazione Demo : [ ] Commento :altre modifiche per la gestione multiproducer; git-svn-id: svn://10.65.10.50/trunk@18031 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									6053c3785c
								
							
						
					
					
						commit
						2e5ec93d24
					
				| @ -533,7 +533,7 @@ void TApplication::run( | ||||
|   cfg.about_box_ID   = 0; | ||||
|   cfg.base_appl_name = base.name(); | ||||
|   cfg.appl_name      = title; | ||||
|   cfg.taskwin_title  = "CAMPO"; | ||||
|   cfg.taskwin_title  = dongle().product(); | ||||
| 
 | ||||
|   set_xvt_hooks(); | ||||
| 
 | ||||
| @ -543,7 +543,7 @@ void TApplication::run( | ||||
| 
 | ||||
| bool TApplication::get_version_info(int& year, int& release, int& tag, int& patch) | ||||
| {                              | ||||
|   const char* const VERSIONANDPATCH = "Don't cry for me Argentina.2082.10.00.0118.2210"; | ||||
|   const char* const VERSIONANDPATCH = "Don't cry for me Argentina.2091.10.00.0212.2313"; | ||||
| 
 | ||||
|   TToken_string vep(VERSIONANDPATCH, '.'); | ||||
|   year         = vep.get_int(1); | ||||
| @ -552,7 +552,7 @@ bool TApplication::get_version_info(int& year, int& release, int& tag, int& patc | ||||
|   patch        = vep.get_int(); | ||||
|   int checksum = vep.get_int(); | ||||
| 
 | ||||
|   bool valid = year >= 2082 && release > 0 && tag >= 0 && patch >= 0 &&  | ||||
|   bool valid = year >= 2091 && release > 0 && tag >= 0 && patch >= 0 &&  | ||||
|                checksum == (year + release + tag + patch); | ||||
|   return valid;              | ||||
| } | ||||
|  | ||||
| @ -684,8 +684,9 @@ const TString& TDongle::reseller() const | ||||
| { | ||||
|   if (_reseller.blank()) | ||||
|   { | ||||
|     TString& firm = (TString&) _reseller;  // Sorry
 | ||||
|     TString& firm = (TString&) _reseller; | ||||
|     TString& campo = (TString&) _product; | ||||
|     TString& breve = (TString&) _shortname; | ||||
| 
 | ||||
|     //nuovo metodo di rilevamento producer (dalla 10.0 in avanti); il producer sta nel file oem.ini sotto la cartella
 | ||||
|     //setup, sia nel CD che soprattutto nel programma installato
 | ||||
| @ -698,20 +699,22 @@ const TString& TDongle::reseller() const | ||||
|       { | ||||
|         TString8 para; para << "OEM_" << oem; | ||||
|         campo = ini.get("Product", para); | ||||
|         firm = ini.get("Name", para); | ||||
|         firm = ini.get("Reseller", para); | ||||
|         breve = ini.get("Name", para); | ||||
|       } | ||||
|     } | ||||
|     if (firm.blank())    //vecchio metodo di rilevamento del producer: sta in install.ini
 | ||||
|     {    | ||||
|       TConfig ini("install.ini", "Main"); | ||||
|       firm = ini.get("Producer"); | ||||
|       campo = " "; | ||||
|       campo = breve = " "; | ||||
|     } | ||||
|     //nuovo metodo: cerca produttore (Name) e prodotto (Product)
 | ||||
|     if (firm.full()) | ||||
|     { | ||||
|       firm = decode(firm); | ||||
|       campo = decode(campo); | ||||
|       breve = decode(breve); | ||||
|     } | ||||
|     if (firm.blank()) | ||||
|     { | ||||
| @ -725,6 +728,8 @@ const TString& TDongle::reseller() const | ||||
|       campo = "Campo Enterprise"; | ||||
|     if (firm.blank()) | ||||
|       firm = "AGA informatica s.r.l."; | ||||
|     if (breve.blank()) | ||||
|       breve = "Campo"; | ||||
|   } | ||||
|    | ||||
|   return _reseller; | ||||
| @ -737,6 +742,13 @@ const TString& TDongle::product() const | ||||
|   return _product; | ||||
| } | ||||
| 
 | ||||
| const TString& TDongle::shortname() const | ||||
| { | ||||
|   if (_shortname.empty()) | ||||
|     reseller(); | ||||
|   return _shortname; | ||||
| } | ||||
| 
 | ||||
| bool TDongle::active(word module) const  | ||||
| {  | ||||
|   bool yes = false; | ||||
|  | ||||
| @ -18,7 +18,7 @@ class TDongle : public TObject | ||||
|   TDongleHardware _hardware; | ||||
|   TDongleType _type; | ||||
| 
 | ||||
|   TString _admin, _admpwd, _reseller, _product; | ||||
|   TString _admin, _admpwd, _reseller, _product, _shortname; | ||||
|    | ||||
|   word _serno, _max_users, _year_assist; | ||||
|   word _eprom[64]; | ||||
| @ -89,6 +89,7 @@ public: | ||||
|   const TString& administrator(TString* pwd = NULL) const; | ||||
|   const TString& reseller() const; | ||||
|   const TString& product() const; | ||||
|   const TString& shortname() const; | ||||
| 
 | ||||
|   word module_name2code(const char* module) const;    // Converte un nome di due lettere in numero
 | ||||
|   const TString& module_code2name(word module) const; // ... e viceversa
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user