#include <PasswordCodecPrototype.h>
Inheritance diagram for PasswordCodecPrototype:
Public Methods | |
virtual | ~PasswordCodecPrototype () |
Destructor of the password encoding/decoding prototype. More... | |
virtual PasswordCodecPrototype * | clone (void) const=0 |
Create a new password encoding/decoding prototype that is a exact copy of the current one. More... | |
virtual bool | loadFile (string filename, string password)=0 |
Decrypts the password informations and add them in the list in order they can be retreived by the app. More... | |
virtual bool | saveFile (string password)=0 |
Encrypts and saves all the password informations present in the list in the file defined by loadFile() or newFile(). More... | |
virtual bool | loadDefaultFile (string password) |
Decrypts the password informations, stored in the default filename of the plugin, and add them in the list in order they can be retreived by the app. More... | |
virtual bool | saveFileAs (string filename, string password) |
Encrypts and saves all the password informations present in the list in another file. More... | |
virtual bool | newFile (string filename, string password) |
Prepares a new file for the backup of password informations. More... | |
virtual bool | hasDefaultFilename (void) |
Informs if the plugin has a default filename to use if no one setted by the user. More... | |
virtual string | getDefaultFilename (void) |
Returns the default filename to use if no one was setted by the user. More... | |
virtual string | getCurrentFilename (void) |
Returns the current filename setted by the user. More... | |
virtual bool | setFilenameToDefault (void) |
Set the current filename with the default filename value. More... | |
virtual PasswordInfos * | popPasswordInfos (void) |
Removes the first password structure from the list and then returns it. More... | |
virtual bool | pushPasswordInfos (PasswordInfos *password_infos) |
Inserts password_infos at the end of the list if the password informations are editable. More... | |
virtual bool | isEditable (void) |
Informs if the passwords informations are editable. More... | |
virtual bool | getEditability (void) |
Requests the right to edit the password informations. More... | |
virtual void | releaseEditability (void) |
Releases the right to edit the password informations. More... | |
virtual bool | isModified (void) const |
Informs if the passwords informations are modified. More... | |
virtual bool | hasFixedField (void) const=0 |
Defines if this encrypted format supports variable number of field to describe passwords. More... | |
virtual int | getNbField (void) const=0 |
Returns the number of fields that describe the password (password and description are not included). More... | |
virtual PasswordInfos | getFieldsName (void) const=0 |
Returns the fields name describing what represents each elements of the password informations. More... | |
virtual bool | setFieldsName (PasswordInfos fields_name_infos)=0 |
Defines the fields name describing what represents each elements of the password informations. More... | |
Protected Methods | |
PasswordCodecPrototype () | |
Constructor of the password encoding/decoding prototype. More... | |
PasswordCodecPrototype (const PasswordCodecPrototype &password_codec_prototype) | |
Copy constructor of the password encoding/decoding prototype. More... | |
Protected Attributes | |
list< PasswordInfos * > | _password_infos_list |
string | _filename |
bool | _is_modified |
bool | _is_editable |
bool | _is_edited |
string | _default_filename |
|
Destructor of the password encoding/decoding prototype.
|
|
Constructor of the password encoding/decoding prototype.
|
|
Copy constructor of the password encoding/decoding prototype.
|
|
Create a new password encoding/decoding prototype that is a exact copy of the current one.
|
|
Returns the current filename setted by the user.
|
|
Returns the default filename to use if no one was setted by the user.
|
|
Requests the right to edit the password informations.
|
|
Returns the fields name describing what represents each elements of the password informations.
|
|
Returns the number of fields that describe the password (password and description are not included).
|
|
Informs if the plugin has a default filename to use if no one setted by the user.
|
|
Defines if this encrypted format supports variable number of field to describe passwords.
|
|
Informs if the passwords informations are editable.
|
|
Informs if the passwords informations are modified.
|
|
Decrypts the password informations, stored in the default filename of the plugin, and add them in the list in order they can be retreived by the app.
|
|
Decrypts the password informations and add them in the list in order they can be retreived by the app.
|
|
Prepares a new file for the backup of password informations.
|
|
Removes the first password structure from the list and then returns it.
|
|
Inserts password_infos at the end of the list if the password informations are editable.
|
|
Releases the right to edit the password informations.
|
|
Encrypts and saves all the password informations present in the list in the file defined by loadFile() or newFile().
|
|
Encrypts and saves all the password informations present in the list in another file.
|
|
Defines the fields name describing what represents each elements of the password informations.
|
|
Set the current filename with the default filename value.
|