search/mag_sel search/close
License.h
1 // Copyright 2001-2021 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/object_ext.h>
12 #include <system/enum.h>
13 
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace System { namespace IO { class Stream; } }
17 
18 namespace Aspose {
19 
20 namespace Words {
21 
23 enum class LicenseState
24 {
25  Evaluation,
26  Licensed
27 };
28 
50 class ASPOSE_WORDS_SHARED_CLASS License : public System::Object
51 {
52  typedef License ThisType;
53  typedef System::Object BaseType;
54 
55  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
57 
58 public:
59 
81  ASPOSE_WORDS_SHARED_API License();
82 
115  ASPOSE_WORDS_SHARED_API void SetLicense(System::String licenseName);
116 
134  ASPOSE_WORDS_SHARED_API void SetLicense(System::SharedPtr<System::IO::Stream> stream);
135 
136 };
137 
138 }
139 }
140 
141 template<>
142 struct EnumMetaInfo<Aspose::Words::LicenseState>
143 {
144  static const ASPOSE_WORDS_SHARED_API std::array<std::pair<Aspose::Words::LicenseState, const char_t*>, 2>& values();
145 };