Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2018-05-14 00:21:43 +0300
committerJanek Bevendorff <janek@jbev.net>2018-09-25 22:12:47 +0300
commite443cde45280512c39b918d60d98a933b9804751 (patch)
treebca157f0775765a4256578ae6d0c74468327254d /src/keys/FileKey.h
parente4ded388b480bdd3b2f02bee39298053eb400acf (diff)
Add a new database settings wizard
This patch implements a new database wizard to guide users through the process of setting up a new database and choosing sane encryption settings. It also reimplements the master key settings to be more user-friendly. Users can now add, change, or remove individual composite key components instead of having to set all components at once. This avoids confusion about a password being reset if the user only wants to add a key file. With these changes comes a major refactor of how database composite keys and key components are handled. Copying of keys is prohibited and each key exists only once in memory and is referenced via shared pointers. GUI components for changing individual keys are encapsulated into separate classes to be more reusable. The password edit and generator widgets have also been refactored to be more reusable.
Diffstat (limited to 'src/keys/FileKey.h')
-rw-r--r--src/keys/FileKey.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keys/FileKey.h b/src/keys/FileKey.h
index 3f04edede..295fe5565 100644
--- a/src/keys/FileKey.h
+++ b/src/keys/FileKey.h
@@ -28,6 +28,8 @@ class QIODevice;
class FileKey : public Key
{
public:
+ static QUuid UUID;
+
enum Type
{
None,
@@ -37,10 +39,10 @@ public:
FixedBinaryHex
};
+ FileKey();
bool load(QIODevice* device);
bool load(const QString& fileName, QString* errorMsg = nullptr);
QByteArray rawKey() const override;
- FileKey* clone() const override;
Type type() const;
static void create(QIODevice* device, int size = 128);
static bool create(const QString& fileName, QString* errorMsg = nullptr, int size = 128);