eVaf
eVaf::PswGen::iStorage Struct Referenceabstract

Password storage interface. More...

#include </var/tmp/work/evaf/src/apps/PswGen/Storage/istorage.h>

Public Member Functions

virtual QAbstractItemModel * autoCompletionModel ()=0
 Returns an item model with the names of all the stored passwords. More...
 
virtual QExplicitlySharedDataPointer< Storage::Dataquery (QString const &name) const =0
 Returns a data record by the name. More...
 
virtual bool save (QString const &name, QExplicitlySharedDataPointer< Storage::Data > data)=0
 Saves the data record. More...
 

Detailed Description

Password storage interface.

This interface is used to store options that were used to generate strong passwords.

Definition at line 117 of file istorage.h.

Member Function Documentation

virtual QAbstractItemModel* eVaf::PswGen::iStorage::autoCompletionModel ( )
pure virtual

Returns an item model with the names of all the stored passwords.

This function returns an item model with the names of all the stored passwords. Use the item model for auto completion.

virtual QExplicitlySharedDataPointer<Storage::Data> eVaf::PswGen::iStorage::query ( QString const &  name) const
pure virtual

Returns a data record by the name.

Parameters
nameName of the password
Returns
Shared data pointer of the stored data record or invalid if not found
virtual bool eVaf::PswGen::iStorage::save ( QString const &  name,
QExplicitlySharedDataPointer< Storage::Data data 
)
pure virtual

Saves the data record.

Parameters
nameName of the password
dataData for the password
Returns
True if ok; false if failed

The documentation for this struct was generated from the following file: