00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Modified by : VSG (NOV 2013) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_LICENSE_REQUEST_STATUS_ 00025 #define _SO_LICENSE_REQUEST_STATUS_ 00026 00027 #include <Inventor/SbString.h> 00028 00029 class SoLicenseRequestStatus 00030 { 00031 public: 00032 bool status; 00033 00034 // flexlm initialization status 00035 // -2 : not yet initialized 00036 // -1 : did not found the initialization routine 00037 // 0 : initialization OK 00038 // 1xxx : lc_flexinit_property_handle_create() 00039 // 2xxx : lc_flexinit_property_handle_set() 00040 // xxx : lc_flexinit() 00041 // 1 : IvDLLmF.dll missing 00042 int flexlm_init_status; 00043 00044 // These fields remind what was the license request 00045 SbString req_product; 00046 SbString req_version; 00047 int req_tokens; 00048 00049 // Status of the license request 00050 int req_found_status; 00051 SbString req_found_product; 00052 SbString req_found_version; 00053 SbString req_found_expdate; 00054 SbString req_found_info; 00055 00056 // Status of the inherited license found 00057 // These fields are set to the previous ones when the license requested is found 00058 int inh_found_status; 00059 SbString inh_found_product; 00060 SbString inh_found_version; 00061 SbString inh_found_expdate; 00062 SbString inh_found_info; 00063 00064 // values for both req_found_status and inh_found_status 00065 // 0 : found 00066 // -1 : password.dat is not found 00067 // -2 : license file corrupted (empty) 00068 // -4 : [on server] requested product exists but no enough tokens 00069 // -5 : [locally] requested product does not exist at all 00070 // -9 : [both] requested product exists but the hostid is not for this computer 00071 // -10 : [locally] requested product exists but the license is expired 00072 // -15 : server unreachable 00073 // -18 : [on server] requested product does not exist at all 00074 // -21 : [locally] requested product exists but the version is lower 00075 // -25 : [on server] requested product exists but the version is lower 00076 // -xx : something wrong anyway 00077 00078 SoLicenseRequestStatus(); 00079 virtual ~SoLicenseRequestStatus(); 00080 00081 void setRequest(const SbString &product, const SbString &version, int tokens); 00082 void setRequestStatus(int status, const SbString &product, const SbString &version, const SbString &expDate, const SbString &info); 00083 }; 00084 00085 #endif /* _SO_LICENSE_REQUEST_STATUS_ */ 00086