]> vaikene.ee Git - evaf/blobdiff - src/apps/PswGen/Storage/istorage.h
Added the name attribute to the eVaf::PswGen::Storage::Data class.
[evaf] / src / apps / PswGen / Storage / istorage.h
index 8af8ba53dc0bd25d2e74fc5265eeef90a7d03153..48226d0ec7a6d66b18c2d1ab7171e991b01c7968 100644 (file)
@@ -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;