20 #ifndef __PSWGEN_STORAGE_ISTORAGE_H    21 #  define __PSWGEN_STORAGE_ISTORAGE_H    25 #include <QSharedData>    26 #include <QExplicitlySharedDataPointer>    28 class QAbstractItemModel;
    61     inline QString 
const & 
name()
 const { 
return mName; }
    64     inline QString 
const & 
suffix()
 const { 
return mSuffix; }
    67         if (suffix != mSuffix) {
    74     inline int length()
 const { 
return mLength; }
    77         if (mLength != value) {
    84     inline uint 
flags()
 const { 
return mFlags; }
    87         if (mFlags != value) {
    97     void reset() { mModified = 
false; }
   126     virtual bool save(QString 
const & 
name, QExplicitlySharedDataPointer<Storage::Data> data) = 0;
   133     virtual QExplicitlySharedDataPointer<Storage::Data> query(QString 
const & name) 
const = 0;
   141     virtual QAbstractItemModel * autoCompletionModel() = 0;
 uint flags() const 
Optional flags for the password generator. 
 
void setFlags(uint value)
 
QString const & name() const 
Name of the password. 
 
void reset()
Resets the modified flag. 
 
void setSuffix(QString const &suffix)
 
Data(QString const &name, QString const &suffix, int l, uint f=0)
 
void setLength(int value)
 
Data(QString const &name)
 
int length() const 
Length of the generated password. 
 
bool modified() const 
Flag indicating that some fields are modified. 
 
Password storage interface. 
 
Data stored for every password. 
 
QString const & suffix() const 
Optional suffix added to the name.