FlowEngine 7.517
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
LicenseManager.h
Go to the documentation of this file.
1/*
2 *
3 * C@@o ____ _____ __ _
4 * oC8@@@@@@@o |___ \| __ \ / _| |
5 * o@@@@@@@@@@@@O __) | | | | |_| | _____ __
6 * O@O 8@@@@@@@@@O |__ <| | | | _| |/ _ \ \ /\ / /
7 * o@@@@@@@O OOOOOCo ___) | |__| | | | | (_) \ V V /
8 * C@@@@@@@@@@@@Oo |____/|_____/|_| |_|\___/ \_/\_/
9 * o8@@@@@@@@@@@@@@@@8OOCCCC
10 * oO@@@@@@@@@@@@@@@@@@@o 3Dflow s.r.l. - www.3dflow.net
11 * oO8@@@@@@@@@@@@o Copyright 2022
12 * oO88@@@@@@@@8OCo All Rights Reserved
13 * O@@@@@@@@@@@@@@@@@@@@@@@@@8OCCoooooooCCo
14 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O
15 * @@@Oo oO8@@@@@@@@@@@@@@@@8
16 *
17 */
18
19#ifndef FLOWENGINELICENSEMANAGERINTERFACE_H
20#define FLOWENGINELICENSEMANAGERINTERFACE_H
21
22#include "CommonDef.h"
23
24namespace FlowEngine
25{
26 enum class LicenseResult : std::uint64_t
27 {
28 Success = 0x00000000L,
29 GenericError = 0x00000001L,
30 InvalidProductKey = 0x00000002L,
31 ProductNotActivated = 0x00000003L,
32 ConnectionFailed = 0x00000004L,
33 LicenseInUse = 0x00000005L,
34 LicenseRevoked = 0x00000006L,
35 TrialAlreadyUsed = 0x0000000CL,
36 LicenseExpired = 0x0000000DL,
37 Permissions = 0x0000000FL,
38 NoMoreDeactivations = 0x00000018L,
39 AlreadyActivated = 0x0000001AL,
40 TrialExpired = 0x0000001EL,
41 InvalidArgument = 0x00001000L,
42 InternalError = 0x00001001L,
43 Unsupported = 0x00001002L,
44 };
45
46 class LicenseInfoInterface;
47
50 {
51 public:
52
54 static FLE_DLL bool isActivated();
55
60
64 static FLE_DLL LicenseResult activateOffline( ConstStringBuffer inKey, ConstStringBuffer inFilePath );
65
67 static FLE_DLL LicenseResult deactivateOnline();
68
74
79
81 static FLE_DLL Size getFloatingLicenseServerSize();
82
91 static FLE_DLL LicenseResult getFloatingLicenseServer( StringBuffer outHostAddress, unsigned short &outPort );
92
97 static FLE_DLL LicenseResult saveFloatingLicenseServer( ConstStringBuffer inHostAddress, unsigned short inPort );
98
101
105 static FLE_DLL Result getLastDetailedErrorMessage( StringBuffer outString );
106
109 static FLE_DLL Size getLastDetailedErrorMessageSize();
110
114 static FLE_DLL Size getProductKeyLength();
115
129 static FLE_DLL Result getProductKey( StringBuffer outKey );
130
133 static FLE_DLL Result getLicenseInformation( LicenseInfoInterface &inOutInfo );
134 };
135}
136
137#endif
Holds information about the currently active license and its leases.
Definition: LicenseInfoInterface.h:30
Handles licensing.
Definition: LicenseManager.h:50
static FLE_DLL Size getFloatingLicenseServerSize()
Returns the stored TurboFloat server location address size (in dotted string notation).
Definition: LicenseManager.cpp:344
static FLE_DLL Result getProductKey(StringBuffer outKey)
Definition: LicenseManager.cpp:536
static FLE_DLL Size getProductKeyLength()
Definition: LicenseManager.cpp:508
static FLE_DLL Result getLastDetailedErrorMessage(StringBuffer outString)
Definition: LicenseManager.cpp:448
static FLE_DLL LicenseResult activateOnline(ConstStringBuffer inKey, ConstStringBuffer inUserData=ConstStringBuffer())
Definition: LicenseManager.cpp:112
static FLE_DLL Size getLastDetailedErrorMessageSize()
Definition: LicenseManager.cpp:463
static FLE_DLL bool isActivated()
Definition: LicenseManager.cpp:70
static FLE_DLL LicenseResult createOfflineDeactivationRequest(ConstStringBuffer inFilePath)
Definition: LicenseManager.cpp:310
static FLE_DLL LicenseResult deactivateOnline()
Tries to deactivate the product online.
Definition: LicenseManager.cpp:223
static FLE_DLL LicenseResult activateOffline(ConstStringBuffer inKey, ConstStringBuffer inFilePath)
Definition: LicenseManager.cpp:175
static FLE_DLL LicenseResult createOfflineActivationRequest(ConstStringBuffer inKey, ConstStringBuffer inFilePath, ConstStringBuffer inUserData=ConstStringBuffer())
Definition: LicenseManager.cpp:257
static FLE_DLL LicenseResult clearFloatingLicenseServer()
Clear the information relative to the Floating License server.
Definition: LicenseManager.cpp:436
static FLE_DLL LicenseResult saveFloatingLicenseServer(ConstStringBuffer inHostAddress, unsigned short inPort)
Definition: LicenseManager.cpp:402
static FLE_DLL LicenseResult getFloatingLicenseServer(StringBuffer outHostAddress, unsigned short &outPort)
Definition: LicenseManager.cpp:358
static FLE_DLL Result getLicenseInformation(LicenseInfoInterface &inOutInfo)
Definition: LicenseManager.cpp:468
Definition: BoundingBoxInterface.cpp:26
LicenseResult
Definition: LicenseManager.h:27
std::size_t Size
Size type.
Definition: CommonDef.h:103
ConstBuffer< char > ConstStringBuffer
ConstBuffer of chars to store strings.
Definition: CommonDef.h:343
Result
Enumerates possible results generated by FlowEngine.
Definition: CommonDef.h:45
@ InvalidArgument
One or more supplied arguments are invalid.
@ Success
Everything went ok.
@ GenericError
Something went wrong. Usually the log contains more detailed information.
Specialization for a Buffer of characters.
Definition: CommonDef.h:255
Specialization for a const buffer characters.
Definition: CommonDef.h:296