Launch KeePassXC password generator popup from the extension

* Closes #6473
This commit is contained in:
varjolintu
2021-10-17 09:53:25 +03:00
committed by Jonathan White
parent 2a9d92faeb
commit dd41f093e6
8 changed files with 66 additions and 341 deletions

View File

@@ -21,6 +21,7 @@
#define BROWSERSERVICE_H
#include "core/Entry.h"
#include "gui/PasswordGeneratorWidget.h"
typedef QPair<QString, QString> StringPair;
typedef QList<StringPair> StringPairList;
@@ -55,6 +56,8 @@ public:
QJsonObject getDatabaseGroups();
QJsonObject createNewGroup(const QString& groupName);
QString getCurrentTotp(const QString& uuid);
void showPasswordGenerator(const QJsonObject& errorMessage, const QString& nonce);
void sendPassword(const QJsonObject& message);
void addEntry(const QString& dbid,
const QString& login,
@@ -93,6 +96,7 @@ public:
signals:
void requestUnlock();
void passwordGenerated(const QString& password, const QString& nonce);
public slots:
void databaseLocked(DatabaseWidget* dbWidget);
@@ -145,9 +149,9 @@ private:
QString getDatabaseRecycleBinUuid();
bool checkLegacySettings(QSharedPointer<Database> db);
QStringList getEntryURLs(const Entry* entry);
void hideWindow() const;
void raiseWindow(const bool force = false);
void updateWindowState();
static bool moveSettingsToCustomData(Entry* entry, const QString& name);
@@ -162,6 +166,7 @@ private:
QUuid m_keepassBrowserUUID;
QPointer<DatabaseWidget> m_currentDatabaseWidget;
QScopedPointer<PasswordGeneratorWidget> m_passwordGenerator;
Q_DISABLE_COPY(BrowserService);