X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fapps%2FPswGen%2FStorage%2Fistorage.h;h=48226d0ec7a6d66b18c2d1ab7171e991b01c7968;hb=d50faf159f17a66fb89ea3e7878b6f56e34b9e72;hp=8af8ba53dc0bd25d2e74fc5265eeef90a7d03153;hpb=77caaebac175110f337767d4b7422bdaa6b7ac1f;p=evaf
diff --git a/src/apps/PswGen/Storage/istorage.h b/src/apps/PswGen/Storage/istorage.h
index 8af8ba5..48226d0 100644
--- a/src/apps/PswGen/Storage/istorage.h
+++ b/src/apps/PswGen/Storage/istorage.h
@@ -39,20 +39,25 @@ class Data : public QSharedData
{
public:
- Data()
+ Data(QString const & name)
: QSharedData()
, mModified(false)
+ , mName(name)
, mLength(0)
, mFlags(0)
{}
- Data(int l, uint f = 0)
+ Data(QString const & name, int l, uint f = 0)
: QSharedData()
, mModified(false)
+ , mName(name)
, mLength(l)
, mFlags(f)
{}
+ /// Name of the password
+ inline QString const & name() const { return mName; }
+
/// Length of the generated password
inline int length() const { return mLength; }
inline void setLength(int value)
@@ -83,6 +88,7 @@ public:
private:
bool mModified;
+ QString mName;
int mLength;
uint mFlags;