SourceForge Logo
Main Page   Compound List   File List   Compound Members   File Members  

GPasmanRC2CodecPrototype Class Reference

Password encoding/decoding prototype for Gpasman RC2 encrypted file. More...

#include <GPasmanRC2CodecPrototype.h>

List of all members.

Public Methods

 GPasmanRC2CodecPrototype ()
 Constructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file. More...

 GPasmanRC2CodecPrototype (const GPasmanRC2CodecPrototype &password_codec_prototype)
 Copy constructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file. More...

virtual ~GPasmanRC2CodecPrototype ()
 Destructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file. More...

virtual PasswordCodecPrototype * clone (void) const
 Create a new password encoding/decoding prototype that is a exact copy of the current one. More...

virtual bool loadFile (string filename, string password)
 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)
 Encrypts and saves all the password informations present in the list in the file defined by loadFile() or newFile(). 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 hasFixedField (void) const
 Defines if this encrypted format supports variable number of field to describe passwords. More...

virtual int getNbField (void) const
 Returns the number of fields that describe the password (password and description are not included). More...

virtual PasswordInfos getFieldsName (void) const
 Returns the fields name describing what represents each elements of the password informations. More...

virtual bool setFieldsName (PasswordInfos fields_name_infos)
 Defines the fields name describing what represents each elements of the password informations. More...


Detailed Description

Password encoding/decoding prototype for Gpasman RC2 encrypted file.


Constructor & Destructor Documentation

GPasmanRC2CodecPrototype::GPasmanRC2CodecPrototype  
 

Constructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file.

Returns:
none

GPasmanRC2CodecPrototype::GPasmanRC2CodecPrototype const GPasmanRC2CodecPrototype &    password_codec_prototype
 

Copy constructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file.

Parameters:
password_codec_prototype  the password encoding/decoding prototype to copy
Returns:
none

GPasmanRC2CodecPrototype::~GPasmanRC2CodecPrototype   [virtual]
 

Destructor of the password encoding/decoding prototype for Gpasman RC2 encrypted file.

Returns:
none


Member Function Documentation

PasswordCodecPrototype * GPasmanRC2CodecPrototype::clone void    const [virtual]
 

Create a new password encoding/decoding prototype that is a exact copy of the current one.

Returns:
the new password encoding/decoding prototype clone

PasswordInfos GPasmanRC2CodecPrototype::getFieldsName void    const [virtual]
 

Returns the fields name describing what represents each elements of the password informations.

Returns:
a PasswordInfos structure in which each element holds the name of fields

int GPasmanRC2CodecPrototype::getNbField void    const [virtual]
 

Returns the number of fields that describe the password (password and description are not included).

Returns:
the number of fields

bool GPasmanRC2CodecPrototype::hasFixedField void    const [virtual]
 

Defines if this encrypted format supports variable number of field to describe passwords.

Returns:
true if the number is fixed / false if it is variable

bool GPasmanRC2CodecPrototype::loadFile string    filename,
string    password
[virtual]
 

Decrypts the password informations and add them in the list in order they can be retreived by the app.

Parameters:
filename  the filename where encrypted passwords are.
password  the password to decrypt the file
Returns:
true if the decryption is ok / false otherwise

bool GPasmanRC2CodecPrototype::pushPasswordInfos PasswordInfos *    password_infos [virtual]
 

Inserts password_infos at the end of the list if the password informations are editable.

Parameters:
password_infos  the password structure to insert
Returns:
true if the element has been inserted successfully / false otherwise.

bool GPasmanRC2CodecPrototype::saveFile string    password [virtual]
 

Encrypts and saves all the password informations present in the list in the file defined by loadFile() or newFile().

Parameters:
password  the password to encrypt the data
Returns:
true if the save succeeds / false otherwise

bool GPasmanRC2CodecPrototype::setFieldsName PasswordInfos    fields_name_infos [virtual]
 

Defines the fields name describing what represents each elements of the password informations.

Parameters:
fields_name_infos  a PasswordInfos structure in which each element holds the name of fields
Returns:
true if formats of PasswordInfos structures are compatible / false otherwise.


The documentation for this class was generated from the following files:
Generated on Sun Mar 9 11:13:54 2003 for GPasmanRC2Plugin by doxygen1.2.15