LicenseSpring C++ SDK
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
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
9extern "C"
10{
11#endif
12
13 LS_API typedef struct LSProductDetails
14 {
15 bool (*isTrialAllowed)(struct LSProductDetails *self);
16
17 bool (*isVMAllowed)(struct LSProductDetails *self);
18
19 unsigned long (*trialPeriod)(struct LSProductDetails *self);
20
21 unsigned long (*floatingLicenseTimeout)(struct LSProductDetails *self);
22
23 const char *(*productName)(struct LSProductDetails *self);
24
25 const char *(*productCode)(struct LSProductDetails *self);
26
28
29 const char *(*metadata)(struct LSProductDetails *self);
30
31 const char *(*latestVersion)(struct LSProductDetails *self);
32
33 const LSInstallationFile *(*installationFile)(struct LSProductDetails *self);
34
35 int (*customFields)(struct LSProductDetails *self, struct LSCustomField *fields);
36
37 void *inner;
38
40
42
44
45#ifdef __cplusplus
46} // end extern "C"
47#endif
48
49#endif // LS_C_PRODUCT_DETAILS_H
#define LS_API
Definition APIDef.h:23
LS_API void FreeLSProductDetails(LSProductDetails *details)
LS_API LSProductDetails * CreateLSProductDetails()
LSAuthMethod
Product authorization method.
Definition PODTypes.h:10
int(* customFields)(struct LSProductDetails *self, struct LSCustomField *fields)
enum LSAuthMethod(* authorizationMethod)(struct LSProductDetails *self)
bool(* isVMAllowed)(struct LSProductDetails *self)
unsigned long(* floatingLicenseTimeout)(struct LSProductDetails *self)
unsigned long(* trialPeriod)(struct LSProductDetails *self)
bool(* isTrialAllowed)(struct LSProductDetails *self)