X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fapps%2FPswGen%2FStorage%2Fistorage.h;h=48226d0ec7a6d66b18c2d1ab7171e991b01c7968;hb=8d44aa97324c1fb3e5d36d03d5d6b7386cbb589e;hp=8af8ba53dc0bd25d2e74fc5265eeef90a7d03153;hpb=14d19e80570564c2cdbe9ca6feba246fa994a250;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;