#include <PasswordTreeElement.h>
Inheritance diagram for PasswordTreeElement:
Public Methods | |
virtual | ~PasswordTreeElement () |
Destructor of the PasswordTreeElement class. More... | |
bool | isSavable (void) const |
Informs if the composite's element can be saved. More... | |
virtual void | setSavable (bool savable) |
Defines if the composite's element can be saved. More... | |
string | getName (void) const |
Informs of the name of the composite's element. More... | |
void | setName (string name) |
Defines the name of the composite's element. More... | |
int | getDeepness (void) const |
Informs of the level of the element in the composite's structure. More... | |
void | setDeepness (int deepness) |
Defines of the level in the composite's structure. More... | |
virtual bool | addElement (PasswordTreeElement *element) |
Add a child to the element of the composite. More... | |
virtual bool | delElement (PasswordTreeElement *element) |
Delete a child of the composite's element. More... | |
virtual int | getNbChild (void) |
Returns the number of child that the element have. More... | |
virtual bool | allow (PasswordTreeElementAbstractVisitor &visitor)=0 |
Defines the visitor interface to deal with data processing accross the composite. More... | |
Protected Methods | |
PasswordTreeElement (string name, int deepness) | |
Constructor of the PasswordTreeElement class. More... | |
Protected Attributes | |
string | _name |
int | _deepness |
bool | _savable |
|
Destructor of the PasswordTreeElement class.
Nothing is done by default, but must be overloaded by subclasses if necessary.
|
|
Constructor of the PasswordTreeElement class.
|
|
Add a child to the element of the composite.
Reimplemented in PasswordGroupElement. |
|
Defines the visitor interface to deal with data processing accross the composite.
Implemented in PasswordGroupElement, PasswordManagerElement, and PasswordRootElement. |
|
Delete a child of the composite's element.
Reimplemented in PasswordGroupElement. |
|
Informs of the level of the element in the composite's structure.
|
|
Informs of the name of the composite's element.
|
|
Returns the number of child that the element have.
Reimplemented in PasswordGroupElement. |
|
Informs if the composite's element can be saved.
Typically, branches must always answer false here and leaves must answer true only if there are real password entries and not special command leaves.
|
|
Defines of the level in the composite's structure.
|
|
Defines the name of the composite's element.
|
|
Defines if the composite's element can be saved.
Reimplemented in PasswordManagerElement. |