Login Register Free Account
Trackerbird SDK v3 for Mac OS (C++)
TBLicenseResult.h
1 // ======================================
2 // *** TRACKERBIRD SOFTWARE ANALYTICS ***
3 // ******** www.trackerbird.com ********
4 // ======================================
5 // © 2013 Trackerbird. All rights reserved.
6 //
7 // SDK Version: MacOS SDK ver 3.4.1 (C++)
8 // Release date: 11 Sep 2014
9 //
10 // You may get the latest version from: http://docs.trackerbird.com
11 // For customer support please visit: http://helpdesk.trackerbird.com
12 // ======================================
13 //
14 
15 #ifndef __TrackerbirdSDK__TBLicenseResult__
16 #define __TrackerbirdSDK__TBLicenseResult__
17 
18 #include <iostream>
19 
26 using namespace std;
27 
28 namespace TrackerbirdSDK
29 {
30  typedef enum
31  {
32  TBLicenseStatusNA = -1,
33  TBLicenseStatusFalse = 0,
34  TBLicenseStatusTrue = 1
35  }
36  TBLicenseStatus;
37 
38  typedef enum
39  {
40  TBKeyTypeEvaluation = 0,
41  TBKeyTypePurchased,
42  TBKeyTypeFreeware,
43  TBKeyTypeUnknown,
44  TBKeyTypeNFR,
45  TBKeyTypeCustom1,
46  TBKeyTypeCustom2,
47  TBKeyTypeCustom3
48  }
49  TBKeyType;
50 
86  {
87 
88  private:
89 
90  TBLicenseStatus _whitelistedStatus;
91  TBLicenseStatus _expiredStatus;
92  TBLicenseStatus _blacklistedStatus;
93  TBLicenseStatus _activatedStatus;
94  TBKeyType _keyType;
95 
96  public:
97 
111  TBLicenseResult(TBLicenseStatus whitelistedStatus, TBLicenseStatus expiredStatus, TBLicenseStatus blacklistedStatus, TBLicenseStatus activatedStatus, TBKeyType keyType);
112 
114  TBLicenseStatus getWhitelistedStatus() const;
115 
117  TBLicenseStatus getExpiredStatus() const;
118 
120  TBLicenseStatus getBlacklistedStatus() const;
121 
123  TBLicenseStatus getActivatedStatus() const;
124 
126  TBKeyType getKeyType() const;
127  };
128 }
129 
130 #endif /* defined(__TrackerbirdSDK__TBLicenseResult__) */
Definition: TBApp.h:26
Definition: TBLicenseResult.h:85