PDFix SDK  7.2.0
Loading...
Searching...
No Matches
PsStandardAuthorization Struct Referenceabstract

PsStandardAuthorization class. More...

#include <pdfix.h>

Inheritance diagram for PsStandardAuthorization:
PsAuthorization

Public Member Functions

virtual bool Activate (const wchar_t *serial_number)=0
 Activates the library using the activation license key. The method requires internet access. More...
 
virtual bool Deactivate ()=0
 Deactivates the library. The method requires internet access. More...
 
virtual bool Update (bool local)=0
 Updates the autorization state. The method requires internet access . More...
 
virtual bool Reset ()=0
 Reset the autorization and delete all local data. More...
 
- Public Member Functions inherited from PsAuthorization
virtual bool SaveToStream (PsStream *stream, PsDataFormat format)=0
 Save the current autorization state into a data file. . More...
 
virtual bool IsAuthorized ()=0
 Returns authorization state. More...
 
virtual bool IsAuthorizedPlatform (PdfAuthPlatform platform)=0
 Returns authorization state of the platform. More...
 
virtual bool IsAuthorizedOption (PdfAuthOption option)=0
 Returns authorization state of the version. More...
 
virtual PdfAuthorizationType GetType () const =0
 Returns authorization type. More...
 

Detailed Description

PsStandardAuthorization class.

PsStandardAuthorization controls the authorization of the library using an activation code.

Member Function Documentation

◆ Activate()

virtual bool PsStandardAuthorization::Activate ( const wchar_t *  serial_number)
pure virtual

Activates the library using the activation license key. The method requires internet access.

Parameters
serial_numberThe license key.
Returns
true if the library was activated successfuly, false otherwise.

◆ Deactivate()

virtual bool PsStandardAuthorization::Deactivate ( )
pure virtual

Deactivates the library. The method requires internet access.

Returns
true if the library was deactivated successfuly, false otherwise.

◆ Reset()

virtual bool PsStandardAuthorization::Reset ( )
pure virtual

Reset the autorization and delete all local data.

Returns
true if the authorization local data was removed successfuly, false otherwise.

◆ Update()

virtual bool PsStandardAuthorization::Update ( bool  local)
pure virtual

Updates the autorization state. The method requires internet access .

Parameters
localUpdate the license from a local file if true, over the internet if false
Returns
true if the authorization state was updated successfuly, false otherwise.