![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Aids in user registration by reading/writing and de/encrypting the JSON data in a given file. More...
#include <hdicoreRegistration.h>
Public Member Functions | |
| Registration () | |
| Constructs an empty Registration object. | |
| Registration (const Registration ®_) | |
| Constructs a new Registration object from an existing Registration object (copy constructor) | |
| virtual | ~Registration () |
| Destructs a Registration object. | |
| virtual Registration & | operator= (const Registration &rhs_) |
| Assigns one Registration object to another. | |
| virtual bool | isEmpty () const |
| Gets whether the target Registration object is empty (constructed with the default ctor) | |
| virtual bool | save (const std::string &path_, const crypt::aes::Key &key_, const crypt::aes::InitVector &iv_) const |
| Writes (encrypted) JSON registration data to a file. | |
| virtual bool | reload (const std::string &path_, const crypt::aes::Key &key_, const crypt::aes::InitVector &iv_) |
| Reloads the registration data from disk (as it is kept in memory at runtime, this might be necessary if another process or plugin manipulates the file) | |
| virtual std::string | appSerial () const |
| Gets the value of the parent application serial number element. | |
| virtual bool | setAppSerial (const std::string &serial_) |
| Sets the value of the parent application serial number element. | |
| virtual std::string | name () const |
| Gets the value of the user name element. | |
| virtual bool | setName (const std::string &name_) |
| Sets the value of the user name element. | |
| virtual std::string | company () const |
| Gets the value of the company name element. | |
| virtual bool | setCompany (const std::string &company_) |
| Sets the value of the company name element. | |
| virtual std::string | pluginSerial () const |
| Gets the value of the product (plugin) serial. | |
| virtual bool | setPluginSerial (const std::string &serial_) |
| Sets the value of the product (plugin) serial number. | |
| virtual std::string | pluginUpgradeSerial () const |
| Gets the value of the product (plugin) upgrade serial. | |
| virtual bool | setPluginUpgradeSerial (const std::string &serial_) |
| Sets the value of the product (plugin) upgrade serial. | |
| virtual bool | demoMode () const |
| Gets whether the product (plugin) is in demo mode. | |
| virtual void | setDemoMode (const bool isDemo_) |
| Sets whether the product (plugin) is in demo mode. | |
| virtual bool | demoModePersistent () const |
| Gets whether the product (plugin) is in demo mode (persistently!) | |
| virtual void | setDemoModePersistent (const bool isDemo_) |
| Sets whether the product (plugin) is in demo mode (persistently!) | |
| virtual int32_t | versionNumber () const |
| Gets the number version for the registration data. | |
| virtual bool | setVersionNumber (const int32_t version_) |
| Sets the number version for the registration data. | |
| virtual std::string | versionString () const |
| Gets the version string for the registration data. | |
| virtual bool | setVersionString (const std::string &version_) |
| Sets the version string for the registration data. | |
| virtual std::unique_ptr< DictionaryPref > | userData () const |
| Gets the dictionary for storing user data. | |
Static Public Member Functions | |
| static bool | load (const std::string &path_, const crypt::aes::Key &key_, const crypt::aes::InitVector &iv_, const bool create_, Registration ®__) |
| Convenience method to create a Registration object from (encrypted) JSON data in a file. | |
Aids in user registration by reading/writing and de/encrypting the JSON data in a given file.
| hdi::core::Registration::Registration | ( | ) |
Constructs an empty Registration object.
| hdi::core::Registration::Registration | ( | const Registration & | reg_ | ) |
Constructs a new Registration object from an existing Registration object (copy constructor)
| reg_ | Existing Registration object |
|
virtual |
Destructs a Registration object.
|
virtual |
Gets the value of the parent application serial number element.
|
virtual |
Gets the value of the company name element.
|
virtual |
Gets whether the product (plugin) is in demo mode.
|
virtual |
Gets whether the product (plugin) is in demo mode (persistently!)
|
virtual |
Gets whether the target Registration object is empty (constructed with the default ctor)
|
static |
Convenience method to create a Registration object from (encrypted) JSON data in a file.
| path_ | Path to the registration file, as UTF-8 |
| key_ | AES crypt key for the file |
| iv_ | AES initialization vector for the file |
| reg__ | Return-by-reference for the Registration object for the file located at path_ and encrypted with key_ (and iv_) |
| create_ | Whether to create the file if it cannot be decrypted (or doesn't exist yet) |
|
virtual |
Gets the value of the user name element.
|
virtual |
Assigns one Registration object to another.
| rhs_ | Existing Registration object to copy values from |
|
virtual |
Gets the value of the product (plugin) serial.
|
virtual |
Gets the value of the product (plugin) upgrade serial.
|
virtual |
Reloads the registration data from disk (as it is kept in memory at runtime, this might be necessary if another process or plugin manipulates the file)
| path_ | Path to the registration file, as UTF-8 |
| key_ | AES crypt key for the file |
| iv_ | AES initialization vector for the file |
|
virtual |
Writes (encrypted) JSON registration data to a file.
| path_ | Path to the registration file, as UTF-8 |
| key_ | AES crypt key for the file |
| iv_ | AES initialization vector for the file |
|
virtual |
Sets the value of the parent application serial number element.
| serial_ | Serial number to set |
|
virtual |
Sets the value of the company name element.
| company_ | Company name to set, as UTF-8 |
|
virtual |
Sets whether the product (plugin) is in demo mode.
| isDemo_ | true for demo, false otherwise |
|
virtual |
Sets whether the product (plugin) is in demo mode (persistently!)
| isDemo_ | true for demo, false otherwise |
|
virtual |
Sets the value of the user name element.
| name_ | User name to set, as UTF-8 |
|
virtual |
Sets the value of the product (plugin) serial number.
| serial_ | Serial number to set |
|
virtual |
Sets the value of the product (plugin) upgrade serial.
| serial_ | Serial number to set |
|
virtual |
Sets the number version for the registration data.
| version_ | New number version value |
|
virtual |
Sets the version string for the registration data.
| version_ | New string version value |
|
virtual |
Gets the dictionary for storing user data.
|
virtual |
Gets the number version for the registration data.
|
virtual |
Gets the version string for the registration data.