ZDK
IActivation.h
1 #ifndef __IActivation__
2 #define __IActivation__
3 
4 #include "Types/SharedPointerTypes.h"
5 #include "IZHandle.h"
6 
7 namespace ZDK
8 {
9 
10 //# @abi(all) documentation
13 class IActivation : public virtual ZDK::IZHandle
14 {
15 public:
16  //# @abi(all) documentation
60  //# @abi(all) @param(moduleName) nullable
61  virtual ZDK::Shared::Result Start(ZDK::Shared::String certCacheFile, ZDK::Shared::String moduleName, int opFlags,
62  ZDK::Shared::String username, ZDK::Shared::String password,
63  ZDK::Shared::String version, ZDK::Shared::String certPem) = 0;
64 
65  //# @abi(all) documentation
99  virtual ZDK::Shared::Result StartSDK(ZDK::Shared::String certCacheFile, ZDK::Shared::String username,
100  ZDK::Shared::String password) = 0;
101 
102  //# @abi(all) documentation
111  virtual ZDK::Shared::Result Stop() = 0;
112 
113  //# @abi(all) documentation
120  //# @abi(all) property
121  virtual bool Activated() const = 0;
122 
123  //# @abi(all) documentation
134  virtual bool CheckPermission(ZDK::PermissionType value) const = 0;
135 
136  //# @abi(all) documentation
147  virtual bool CheckCodecPermission(ZDK::AudioVideoCodecs value) const = 0;
148 
149  //# @abi(all) documentation
158  virtual bool CheckHostname(const ZDK::Shared::String value) const = 0;
159 
160  //# @abi(all) documentation
171  //# @abi(all) ignore
172  virtual ZDK::Shared::Result SetDeviceId(const ZDK::Shared::String value) = 0;
173 
174  //# @abi(all) documentation
185  //# @abi(all) ignore
186  virtual ZDK::Shared::Result SetPackageName(const ZDK::Shared::String value) = 0;
187 
188  //# @abi(all) documentation
215  virtual ZDK::Shared::Result CreateOfflineActivationFile(ZDK::Shared::String activationFile,
216  ZDK::Shared::String username,
217  ZDK::Shared::String password,
218  ZDK::Shared::String hddSerial,
219  ZDK::Shared::String version,
220  ZDK::Shared::String pcUser,
221  ZDK::Shared::String pcName) = 0;
222 
223  //# @abi(all) documentation
246  virtual ZDK::Shared::Result CreateOfflineActivationFileSDK(ZDK::Shared::String activationFile,
247  ZDK::Shared::String username,
248  ZDK::Shared::String password) = 0;
249 
250 
251 };
252 
253 } //namespace ZDK
254 
255 #endif //__IActivation__
virtual bool CheckCodecPermission(ZDK::AudioVideoCodecs value) const =0
Gets whether a given media (audio/video) codec is enabled and can be used.
Definition: IZHandle.h:12
virtual ZDK::Shared::Result Stop()=0
Stops the activation process.
virtual ZDK::Shared::Result StartSDK(ZDK::Shared::String certCacheFile, ZDK::Shared::String username, ZDK::Shared::String password)=0
Starts activation for an SDK product.
Handles the Activation process of the ZDK.
Definition: IActivation.h:13
virtual bool CheckHostname(const ZDK::Shared::String value) const =0
Gets whether a given hostname (domain) is allowed to be used.
virtual ZDK::Shared::Result Start(ZDK::Shared::String certCacheFile, ZDK::Shared::String moduleName, int opFlags, ZDK::Shared::String username, ZDK::Shared::String password, ZDK::Shared::String version, ZDK::Shared::String certPem)=0
Starts activation process.
virtual bool CheckPermission(ZDK::PermissionType value) const =0
Gets whether a given ZDK functionality is enabled and can be used.
virtual ZDK::Shared::Result CreateOfflineActivationFileSDK(ZDK::Shared::String activationFile, ZDK::Shared::String username, ZDK::Shared::String password)=0
Creates a file required for offline activation.
Definition: IAccountConfig.h:10
virtual ZDK::Shared::Result CreateOfflineActivationFile(ZDK::Shared::String activationFile, ZDK::Shared::String username, ZDK::Shared::String password, ZDK::Shared::String hddSerial, ZDK::Shared::String version, ZDK::Shared::String pcUser, ZDK::Shared::String pcName)=0
Creates a file required for offline activation.
virtual ZDK::Shared::Result SetPackageName(const ZDK::Shared::String value)=0
Sets the current package name.
virtual bool Activated() const =0
Gets the activation status.
virtual ZDK::Shared::Result SetDeviceId(const ZDK::Shared::String value)=0
Sets the current device ID.