LicenseSpring C++ SDK  7.31.0
Easily add Software Licensing to your application
ProductDetails.h
Go to the documentation of this file.
1 #ifndef LS_C_PRODUCT_DETAILS_H
2 #define LS_C_PRODUCT_DETAILS_H
3 
4 #include "../APIDef.h"
5 #include "../PODTypes.h"
6 #include "InstallationFile.h"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12  LS_API typedef struct LSProductDetails
13  {
14  bool ( *isTrialAllowed )( struct LSProductDetails* self );
15 
16  bool ( *isVMAllowed )( struct LSProductDetails* self );
17 
18  unsigned long ( *trialPeriod )( struct LSProductDetails* self );
19 
20  unsigned long ( *floatingLicenseTimeout )( struct LSProductDetails* self );
21 
22  const char* ( *productName )( struct LSProductDetails* self );
23 
24  const char* ( *productCode )( struct LSProductDetails* self );
25 
27 
28  const char* ( *metadata )( struct LSProductDetails* self );
29 
30  const char* ( *latestVersion )( struct LSProductDetails* self );
31 
32  const LSInstallationFile* ( *installationFile )( struct LSProductDetails* self );
33 
34  void* inner;
35 
37 
39 
41 
42 #ifdef __cplusplus
43 } // end extern "C"
44 #endif
45 
46 #endif // LS_C_PRODUCT_DETAILS_H
LSProductDetails
Definition: ProductDetails.h:12
LSProductDetails::authorizationMethod
enum LSAuthMethod(* authorizationMethod)(struct LSProductDetails *self)
Definition: ProductDetails.h:26
LSProductDetails::isTrialAllowed
bool(* isTrialAllowed)(struct LSProductDetails *self)
Definition: ProductDetails.h:14
LSProductDetails
LS_API struct LSProductDetails LSProductDetails
LSProductDetails::trialPeriod
unsigned long(* trialPeriod)(struct LSProductDetails *self)
Definition: ProductDetails.h:18
FreeLSProductDetails
LS_API void FreeLSProductDetails(LSProductDetails *details)
LSAuthMethod
LSAuthMethod
Product authorization method.
Definition: PODTypes.h:9
LSProductDetails::isVMAllowed
bool(* isVMAllowed)(struct LSProductDetails *self)
Definition: ProductDetails.h:16
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
InstallationFile.h
LSProductDetails::inner
void * inner
Definition: ProductDetails.h:34
CreateLSProductDetails
LS_API LSProductDetails * CreateLSProductDetails()
LSProductDetails::floatingLicenseTimeout
unsigned long(* floatingLicenseTimeout)(struct LSProductDetails *self)
Definition: ProductDetails.h:20
LSInstallationFile
Definition: InstallationFile.h:10