Cipher base class.
More...
#include <wxsqlite3.h>
◆ Cipher() [1/3]
| wxSQLite3::Cipher::Cipher |
( |
| ) |
|
◆ ~Cipher()
| virtual wxSQLite3::Cipher::~Cipher |
( |
| ) |
|
|
virtual |
◆ Cipher() [2/3]
| wxSQLite3::Cipher::Cipher |
( |
CipherType | cipherType | ) |
|
|
protected |
Constructor.
- Parameters
-
| cipherType | the type of the cipher |
◆ Cipher() [3/3]
| wxSQLite3::Cipher::Cipher |
( |
const Cipher & | cipher | ) |
|
|
protected |
◆ Apply() [1/2]
| virtual bool wxSQLite3::Cipher::Apply |
( |
Database & | db | ) |
const |
|
virtual |
◆ Apply() [2/2]
| virtual bool wxSQLite3::Cipher::Apply |
( |
void * | dbHandle | ) |
const |
|
virtual |
◆ GetCipher()
Get the current cipher type of a database connection.
- Parameters
-
- Returns
- the enum representation of the cipher type
◆ GetCipherDefault()
Get the default cipher type of a database connection.
- Parameters
-
- Returns
- the enum representation of the cipher type
◆ GetCipherName()
| const wxString wxSQLite3::Cipher::GetCipherName |
( |
CipherType | cipherType | ) |
|
|
static |
Convert cipher type to string representation.
The given cipher type is converted to a string representation.
- Parameters
-
| cipherType | the type of a cipher |
- Returns
- string representation of the given cipher type
◆ GetCipherParameterMax()
| int wxSQLite3::Cipher::GetCipherParameterMax |
( |
const wxString & | cipherName, |
|
|
const wxString & | paramName ) |
|
static |
Get maximum allowed cipher parameter value.
- Parameters
-
| cipherName | the name of the cipher to be queried |
| paramName | the name of the parameter to be queried |
- Returns
- the maximum value for the given cipher parameter
◆ GetCipherParameterMin()
| int wxSQLite3::Cipher::GetCipherParameterMin |
( |
const wxString & | cipherName, |
|
|
const wxString & | paramName ) |
|
static |
Get minimum allowed cipher parameter value.
- Parameters
-
| cipherName | the name of the cipher to be queried |
| paramName | the name of the parameter to be queried |
- Returns
- the minimum value for the given cipher parameter
◆ GetCipherType() [1/2]
| CipherType wxSQLite3::Cipher::GetCipherType |
( |
| ) |
const |
Get the type of this cipher instance.
The type of the cipher instance is returned.
- Returns
- the cipher type
◆ GetCipherType() [2/2]
| CipherType wxSQLite3::Cipher::GetCipherType |
( |
const wxString & | cipherName | ) |
|
|
static |
Convert string representation to cipher type.
The given string representation of a cipher is converted to the corresponding cipher type.. The parameters of the cipher instance are applied to the given database connection. WXSQLITE_CIPHER_UNKNOWN will be returned if the string representation is invalid.
- Parameters
-
| cipherName | the string representation of a cipher type |
- Returns
- cipher type corresponding to the given string representation
◆ GetDatabaseHandle()
| void * wxSQLite3::Cipher::GetDatabaseHandle |
( |
Database & | db | ) |
|
|
staticprotected |
Get the SQLite3 database handle of a database instance.
- Parameters
-
- Returns
- SQLite3 database handle
◆ GetGlobalCipherDefault()
| CipherType wxSQLite3::Cipher::GetGlobalCipherDefault |
( |
| ) |
|
|
static |
Get the globally defined default cipher type.
- Returns
- the enum representation of the cipher type
◆ GetLegacyPageSize()
| int wxSQLite3::Cipher::GetLegacyPageSize |
( |
| ) |
const |
◆ InitializeFromCurrent()
| virtual bool wxSQLite3::Cipher::InitializeFromCurrent |
( |
Database & | db | ) |
|
|
virtual |
◆ InitializeFromCurrentDefault()
| virtual bool wxSQLite3::Cipher::InitializeFromCurrentDefault |
( |
Database & | db | ) |
|
|
virtual |
◆ InitializeFromGlobalDefault()
| virtual bool wxSQLite3::Cipher::InitializeFromGlobalDefault |
( |
| ) |
|
|
virtual |
◆ IsOk()
| bool wxSQLite3::Cipher::IsOk |
( |
| ) |
const |
Check whether the cipher instance is valid.
The method checks whether the cipher instance is initialized correctly.
- Returns
- true if the cipher instance is valid, false otherwise
◆ SetCipher()
Set the current cipher type for a database connection.
- Parameters
-
| db | database instance |
| cipherType | the cipher type to be set |
- Returns
- true if the cipher type could be set, false otherwise
◆ SetCipherDefault()
Set the default cipher type for a database connection.
- Parameters
-
| db | database instance |
| cipherType | the cipher type to be set |
- Returns
- true if the cipher type could be set, false otherwise
◆ SetCipherType()
| void wxSQLite3::Cipher::SetCipherType |
( |
CipherType | cipherType | ) |
|
|
protected |
Set type of the cipher instance.
- Parameters
-
| cipherType | the cipher type to be set |
◆ SetInitialized()
| void wxSQLite3::Cipher::SetInitialized |
( |
bool | initialized | ) |
|
|
protected |
Set initialization status of the cipher instance.
- Parameters
-
| initialized | the initialization status |
◆ SetLegacyPageSize()
| void wxSQLite3::Cipher::SetLegacyPageSize |
( |
int | pageSize | ) |
|
The documentation for this class was generated from the following file: