CFx SDK Documentation
2020SP3
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
};
36
37
class
FXLICENSINGAPI_API
CFxLicensingAPI
38
{
39
public
:
40
typedef
enum
41
{
42
Undefined
,
43
Unregistered
,
44
FullVersion
,
45
TrialVersion
,
46
} ProductType;
47
48
public
:
49
CFxLicensingAPI
();
50
~CFxLicensingAPI
();
51
52
virtual
bool
registerPlugin
(
const
CFxPluginInfo
& pluginInfo ) = 0;
53
virtual
ProductType
activate
(
bool
bSilentCheck,
int
iPluginId ) = 0;
54
};
55
56
FXLICENSINGAPI_API
CFxLicensingAPI
*
GetFxLicensingAPI
();
FXLICENSINGAPI_API
#define FXLICENSINGAPI_API
Definition:
FxLicensing.h:4
CFxLicensingAPI::Undefined
@ Undefined
Definition:
FxLicensingAPI.h:42
CFxPluginInfo::CFxPluginInfo
CFxPluginInfo()
CFxPluginInfo
Definition:
FxLicensingAPI.h:24
CFxPluginInfo::_iLicenseID
int _iLicenseID
Definition:
FxLicensingAPI.h:30
FxString.h
CFxLicensingAPI::~CFxLicensingAPI
~CFxLicensingAPI()
CFxLicensingAPI::Unregistered
@ Unregistered
Definition:
FxLicensingAPI.h:43
CFxLicensingAPI::CFxLicensingAPI
CFxLicensingAPI()
CFxPluginInfo::_sPluginVersion
CFxString _sPluginVersion
Definition:
FxLicensingAPI.h:32
CFxLicensingAPI::activate
virtual ProductType activate(bool bSilentCheck, int iPluginId)=0
CFxString
Definition:
FxString.h:48
CFxLicensingAPI::FullVersion
@ FullVersion
Definition:
FxLicensingAPI.h:44
CFxLicensingAPI::registerPlugin
virtual bool registerPlugin(const CFxPluginInfo &pluginInfo)=0
CFxPluginInfo::_bFreePlugin
bool _bFreePlugin
Definition:
FxLicensingAPI.h:34
FxLicensing.h
GetFxLicensingAPI
FXLICENSINGAPI_API CFxLicensingAPI * GetFxLicensingAPI()
CFxLicensingAPI::ProductType
ProductType
Definition:
FxLicensingAPI.h:41
CFxPluginInfo::_sPluginName
CFxString _sPluginName
Definition:
FxLicensingAPI.h:29
CFxLicensingAPI::TrialVersion
@ TrialVersion
Definition:
FxLicensingAPI.h:45
CFxPluginInfo::~CFxPluginInfo
~CFxPluginInfo()
CFxPluginInfo::_iLicenseVersion
int _iLicenseVersion
Definition:
FxLicensingAPI.h:31
CFxLicensingAPI
Definition:
FxLicensingAPI.h:38
Generated on Mon Oct 12 2020 11:49:32