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-2015 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 =================================================================================*/ 00020 00021 #ifndef SO_LICENSE_PROPERTY_H 00022 #define SO_LICENSE_PROPERTY_H 00023 00024 #include <Inventor/misc/SoRefCounter.h> 00025 #include <Inventor/SbPImpl.h> 00026 00027 class CLicensesTools; 00028 00029 SO_PIMPL_PUBLIC_DECLARATION(SoLicensedProduct) 00030 00031 SO_PIMPL_BASE_PUBLIC_DECLARATION(SoLicenseProperty) 00032 00042 class SoLicenseProperty : public SoRefCounter 00043 { 00044 SO_PIMPL_BASE_PUBLIC_HEADER(SoLicenseProperty) 00045 00046 public: 00047 SoLicenseProperty(); 00048 virtual ~SoLicenseProperty(); 00049 00053 enum SbLicenseType 00054 { 00056 SDK, 00058 RT 00059 }; 00060 00064 const SbString& getProductName() const; 00065 00069 const SbString& getProductVersion() const; 00070 00074 const SbString& getExpirationDate() const; 00075 00079 const SbString& getNumUsers() const; 00080 00084 const SbString& getCheckSum() const; 00085 00089 const SbString& getInfo() const; 00090 00094 const SbString& getHostID() const; 00095 00099 SbLicenseType getLicenseType() const; 00100 00104 bool isExpired() const; 00105 00112 int getDaysToExpire() const; 00113 00117 bool isMasterPassword() const; 00118 00119 #ifndef HIDDEN_FROM_DOC 00120 // Only CLicensesTools and SoLicensedProductImpl are allowed to modify SbLicenseProperty impl members. 00121 friend class CLicensesTools; 00122 friend class inventor::impl::SoLicensedProductImpl; 00123 #endif /* HIDDEN_FROM_DOC */ 00124 }; 00125 00126 #endif /* SO_LICENSE_PROPERTY_H */ 00127