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

PasswordTree Class Reference

The password tree manager. More...

#include <PasswordTree.h>

Inheritance diagram for PasswordTree:

PassguardErrorManager List of all members.

Public Methods

 PasswordTree (PasswordTreeElementFactory *factory)
 Constructor of the password tree manager. More...

 ~PasswordTree ()
 Destructor of the password tree manager. More...

void create (PasswordCodecPrototype *codec)
 Create the password tree with the specified codec. More...

bool save (PasswordCodecPrototype *codec, string password)
 Run trough all the tree and save all the passwords with the given codec object. More...

bool saveAs (PasswordCodecPrototype *codec, string password, string filename)
 Run trough all the tree and save all the passwords with the given codec object but in a new file instead of the one presently setted. More...

PasswordRootElementgetRoot (void)
 Returns the root of the password tree. More...


Detailed Description

The password tree manager.


Constructor & Destructor Documentation

PasswordTree::PasswordTree PasswordTreeElementFactory   factory
 

Constructor of the password tree manager.

Parameters:
factory  the factory to use to create the tree elements
Returns:
none

PasswordTree::~PasswordTree  
 

Destructor of the password tree manager.

Returns:
none


Member Function Documentation

void PasswordTree::create PasswordCodecPrototype   codec
 

Create the password tree with the specified codec.

Parameters:
codec  the codec to use to decypher the password file
Returns:
none

PasswordRootElement * PasswordTree::getRoot void   
 

Returns the root of the password tree.

Returns:
A PasswordGroupElement* that is a pointer to the root of the tree or NULL if the tree is not created yet.

bool PasswordTree::save PasswordCodecPrototype   codec,
string    password
 

Run trough all the tree and save all the passwords with the given codec object.

Parameters:
codec  a valid codec to use to save all the passwords
password  the password to use to encrypt the password file
Returns:
true if all password have been successfully saved, false otherwise

bool PasswordTree::saveAs PasswordCodecPrototype   codec,
string    password,
string    filename
 

Run trough all the tree and save all the passwords with the given codec object but in a new file instead of the one presently setted.

Parameters:
codec  a valid codec to use to save all the passwords
password  the password to use to encrypt the password file
filename  the new password file
Returns:
true if all password have been successfully saved, false otherwise


The documentation for this class was generated from the following files:
Generated on Sun Mar 9 15:36:52 2003 for PassGuardFramework by doxygen1.2.15