PdfLicense.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 // RK: When EMBEDDED is defined, the licensing code is not included in the component.
4 // This results in a built that can be embedded in another Aspose component.
5 // When a component is embedded in another Aspose component, they must be
6 // obfuscated into a single assembly so the embedded component is not publicly accessible.
7 
8 // C# preprocessor directive: #if !EMBEDDED
9 
10 //27/10/2004 by Roman Korchagin
11 //This file contains all client side licensing for the new Aspose licensing system released in 2004.
12 //Just include this file in your component and follow instructions and examples how to use it.
13 // NOTE The code in this file was manually tuned so some crucial functions fail
14 // to decompile in Reflector as of 5/11/05.
15 // Latest anti-hack changed by Aspose.Cells team have been merged as of 20/02/17
16 //Aspose.Words specific?
17 //using Aspose.Collections.Generic;
18 //using Aspose.JavaAttributes;
19 // To compile licensing for your product, make sure your product is mentioned here and add a conditional
20 // compilation constant to your project properties (both to Debug and Release configurations).
21 
22 // C# preprocessor directive: #if ASPOSE_WORDS
23 
24 // C# INACTIVE CODE:
25 // namespace Aspose.Words
26 
27 // C# preprocessor directive: #elif ASPOSE_WORDS_REPORTING_SERVICES
28 
29 // C# INACTIVE CODE:
30 // namespace Aspose.Words.ReportingServices
31 
32 // C# preprocessor directive: #elif ASPOSE_WORDS_SHAREPOINT
33 
34 // C# INACTIVE CODE:
35 // namespace Aspose.Words.SharePoint
36 
37 // C# preprocessor directive: #elif ASPOSE_CELLS
38 
39 // C# INACTIVE CODE:
40 // namespace Aspose.Cells
41 
42 // C# preprocessor directive: #elif ASPOSE_SLIDES
43 
44 // C# INACTIVE CODE:
45 // namespace Aspose.Slides
46 
47 // C# preprocessor directive: #elif ASPOSE_TASKS
48 
49 // C# INACTIVE CODE:
50 // namespace Aspose.Tasks
51 
52 // C# preprocessor directive: #elif ASPOSE_PDF_FORM
53 
54 // C# INACTIVE CODE:
55 // namespace Aspose.Pdf.Form
56 
57 // C# preprocessor directive: #elif ASPOSE_PDF_KIT
58 
59 // C# INACTIVE CODE:
60 // namespace Aspose.Pdf.Kit
61 
62 // C# preprocessor directive: #elif ASPOSE_PDF_FO
63 
64 // C# INACTIVE CODE:
65 // namespace Aspose.Pdf.Fo
66 
67 // C# preprocessor directive: #elif ASPOSE_CHART
68 
69 // C# INACTIVE CODE:
70 // namespace Aspose.Chart
71 
72 // C# preprocessor directive: #elif ASPOSE_SPELL
73 
74 // C# INACTIVE CODE:
75 // namespace Aspose.Spell
76 
77 // C# preprocessor directive: #elif ASPOSE_EMAIL
78 
79 // C# INACTIVE CODE:
80 // namespace Aspose.Email
81 
82 // C# preprocessor directive: #elif ASPOSE_MIME
83 
84 // C# INACTIVE CODE:
85 // namespace Aspose.Mime
86 
87 // C# preprocessor directive: #elif ASPOSE_ADHOC
88 
89 // C# INACTIVE CODE:
90 // namespace Aspose.AdHoc
91 
92 // C# preprocessor directive: #elif ASPOSE_ASPXPAND
93 
94 // C# INACTIVE CODE:
95 // namespace Aspose.ASPXPand
96 
97 // C# preprocessor directive: #elif ASPOSE_GRID
98 
99 // C# INACTIVE CODE:
100 // namespace Aspose.Grid
101 
102 // C# preprocessor directive: #elif ASPOSE_BARCODE
103 
104 // C# INACTIVE CODE:
105 // namespace Aspose.BarCode
106 
107 // C# preprocessor directive: #elif ASPOSE_RECURRENCE
108 
109 // C# INACTIVE CODE:
110 // namespace Aspose.Recurrence
111 
112 // C# preprocessor directive: #elif ASPOSE_ICALENDAR
113 
114 // C# INACTIVE CODE:
115 // namespace Aspose.iCalendar
116 
117 // C# preprocessor directive: #elif ASPOSE_RECOGNITION
118 
119 // C# INACTIVE CODE:
120 // namespace Aspose.Recognition
121 
122 // C# preprocessor directive: #else
123 
124 
125 #include <system/object.h>
126 
127 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
128 
129 namespace System
130 {
131 namespace IO
132 {
133 class Stream;
134 } // namespace IO
135 class String;
136 } // namespace System
137 
138 namespace Aspose {
139 
140 namespace Pdf {
141 
145 enum class EditionType
146 {
147  Professional,
148  Enterprise
149 };
150 
154 enum class ProductType
155 {
156  Aspose,
157  Conholdate,
158  Market
159 };
160 
164 enum class LicenseState
165 {
169  Evaluation,
173  Licensed
174 };
175 
176 
177 // C# preprocessor directive: #endif
178 
179 
180 // C# preprocessor directive: #if !XAMARIN || NETSTANDARD
181 
182 
183 // C# preprocessor directive: #endif
184 
185 
186 // C# preprocessor directive: #if ASPOSE_WORDS_SHAREPOINT
187 
188 
189 // C# preprocessor directive: #else
190 
191 
192 // C# preprocessor directive: #endif
193 
197 //[JavaManual("This was manually ported some time ago. Keep as is for now.")]//If 24.6 release ok - remove the line and remove the attribute from external
198 class ASPOSE_PDF_SHARED_CLASS License : public System::Object
199 {
200  typedef License ThisType;
201  typedef System::Object BaseType;
202 
203  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
204  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
205 
206 public:
207 
212  ASPOSE_PDF_SHARED_API bool get_Embedded() const;
217  ASPOSE_PDF_SHARED_API void set_Embedded(bool value);
218 
222  ASPOSE_PDF_SHARED_API License();
223 
245  ASPOSE_PDF_SHARED_API void SetLicense(System::String licenseName);
255  ASPOSE_PDF_SHARED_API void SetLicense(System::SharedPtr<System::IO::Stream> stream);
256 
257 private:
258 
259  bool mEmbedded;
260 
261 };
262 
263 } // namespace Pdf
264 } // namespace Aspose
265 
266 // C# preprocessor directive: #endif
267 
268 
269 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:71
EditionType
Specifies the edition type of the license.
Definition: PdfLicense.h:145
ProductType
Which product of the license or black list : Aspose, Conholdate, Market.
Definition: PdfLicense.h:154
The license is a proper valid license.
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
The license is Evaluation
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: SideBySidePdfComparer.h:24
Definition: AFRelationship.h:4
LicenseState
Represents possible license states.
Definition: PdfLicense.h:164
Provides methods to license the component.
Definition: PdfLicense.h:198
Whole PDF file will be submitted.