* @brief Interface for password storage modules
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
: QSharedData()
, mModified(false)
, mName(name)
+ , mSuffix()
, mLength(0)
, mFlags(0)
{}
- Data(QString const & name, int l, uint f = 0)
+ Data(QString const & name, QString const & suffix, int l, uint f = 0)
: QSharedData()
, mModified(false)
, mName(name)
+ , mSuffix(suffix)
, mLength(l)
, mFlags(f)
{}
/// Name of the password
inline QString const & name() const { return mName; }
+ /// Optional suffix added to the name
+ inline QString const & suffix() const { return mSuffix; }
+ void setSuffix(QString const & suffix)
+ {
+ if (suffix != mSuffix) {
+ mSuffix = suffix;
+ mModified = true;
+ }
+ }
+
/// Length of the generated password
inline int length() const { return mLength; }
inline void setLength(int value)
bool mModified;
QString mName;
+ QString mSuffix;
int mLength;
uint mFlags;