CFx SDK Documentation
2022 SP0
SDK
CFx
inc
FxLicensingAPI.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2020 by Graebert GmbH.
3
//
4
// Permission to use, copy, modify, and distribute this software in
5
// object code form for any purpose and without fee is hereby granted,
6
// provided that the above copyright notice appears in all copies and
7
// that both that copyright notice and the limited warranty and
8
// restricted rights notice below appear in all supporting
9
// documentation.
10
//
11
// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12
// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15
// UNINTERRUPTED OR ERROR FREE.
16
17
#pragma once
18
19
#include "
FxLicensing.h
"
20
21
#include "
FxString.h
"
22
23
struct
FXLICENSINGAPI_API
CFxPluginInfo
24
{
25
public
:
26
CFxPluginInfo
();
27
~CFxPluginInfo
();
28
29
CFxString
_sPluginName
;
30
int
_iLicenseID
;
31
int
_iLicenseVersion
;
32
CFxString
_sPluginVersion
;
33
34
bool
_bFreePlugin
;
35
bool
_bUnloadAvailable
;
36
};
37
38
class
FXLICENSINGAPI_API
CFxLicensingAPI
39
{
40
public
:
41
typedef
enum
42
{
43
Undefined
,
44
Unregistered
,
45
FullVersion
,
46
TrialVersion
,
47
} ProductType;
48
49
public
:
50
CFxLicensingAPI
();
51
~CFxLicensingAPI
();
52
53
virtual
bool
registerPlugin
(
const
CFxPluginInfo
& pluginInfo ) = 0;
54
virtual
ProductType
activate
(
bool
bSilentCheck,
int
iPluginId ) = 0;
55
};
56
57
FXLICENSINGAPI_API
CFxLicensingAPI
*
GetFxLicensingAPI
();
FxLicensing.h
FXLICENSINGAPI_API
#define FXLICENSINGAPI_API
Definition:
FxLicensing.h:4
GetFxLicensingAPI
FXLICENSINGAPI_API CFxLicensingAPI * GetFxLicensingAPI()
FxString.h
CFxLicensingAPI
Definition:
FxLicensingAPI.h:39
CFxLicensingAPI::~CFxLicensingAPI
~CFxLicensingAPI()
CFxLicensingAPI::ProductType
ProductType
Definition:
FxLicensingAPI.h:42
CFxLicensingAPI::FullVersion
@ FullVersion
Definition:
FxLicensingAPI.h:45
CFxLicensingAPI::TrialVersion
@ TrialVersion
Definition:
FxLicensingAPI.h:46
CFxLicensingAPI::Unregistered
@ Unregistered
Definition:
FxLicensingAPI.h:44
CFxLicensingAPI::Undefined
@ Undefined
Definition:
FxLicensingAPI.h:43
CFxLicensingAPI::CFxLicensingAPI
CFxLicensingAPI()
CFxLicensingAPI::registerPlugin
virtual bool registerPlugin(const CFxPluginInfo &pluginInfo)=0
CFxLicensingAPI::activate
virtual ProductType activate(bool bSilentCheck, int iPluginId)=0
CFxString
Definition:
FxString.h:48
CFxPluginInfo
Definition:
FxLicensingAPI.h:24
CFxPluginInfo::_iLicenseID
int _iLicenseID
Definition:
FxLicensingAPI.h:30
CFxPluginInfo::_sPluginName
CFxString _sPluginName
Definition:
FxLicensingAPI.h:29
CFxPluginInfo::_bFreePlugin
bool _bFreePlugin
Definition:
FxLicensingAPI.h:34
CFxPluginInfo::_bUnloadAvailable
bool _bUnloadAvailable
Definition:
FxLicensingAPI.h:35
CFxPluginInfo::~CFxPluginInfo
~CFxPluginInfo()
CFxPluginInfo::_iLicenseVersion
int _iLicenseVersion
Definition:
FxLicensingAPI.h:31
CFxPluginInfo::CFxPluginInfo
CFxPluginInfo()
CFxPluginInfo::_sPluginVersion
CFxString _sPluginVersion
Definition:
FxLicensingAPI.h:32
Generated on Fri Jan 22 2021 18:01:34