mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 22:12:59 -04:00
Launch KeePassXC password generator popup from the extension
* Closes #6473
This commit is contained in:
parent
2a9d92faeb
commit
dd41f093e6
8 changed files with 66 additions and 341 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (C) 2013 Francois Ferrand
|
||||
* Copyright (C) 2017 Sami Vänttinen <sami.vanttinen@protonmail.com>
|
||||
* Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
|
||||
* Copyright (C) 2021 KeePassXC Team <team@keepassxc.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -21,8 +21,6 @@
|
|||
#define BROWSERSETTINGS_H
|
||||
|
||||
#include "NativeMessageInstaller.h"
|
||||
#include "core/PassphraseGenerator.h"
|
||||
#include "core/PasswordGenerator.h"
|
||||
|
||||
class BrowserSettings
|
||||
{
|
||||
|
@ -76,49 +74,6 @@ public:
|
|||
void setCustomBrowserType(int type);
|
||||
QString customBrowserLocation();
|
||||
void setCustomBrowserLocation(const QString& location);
|
||||
bool passwordUseNumbers();
|
||||
void setPasswordUseNumbers(bool useNumbers);
|
||||
bool passwordUseLowercase();
|
||||
void setPasswordUseLowercase(bool useLowercase);
|
||||
bool passwordUseUppercase();
|
||||
void setPasswordUseUppercase(bool useUppercase);
|
||||
bool passwordUseSpecial();
|
||||
void setPasswordUseSpecial(bool useSpecial);
|
||||
bool passwordUseBraces();
|
||||
void setPasswordUseBraces(bool useBraces);
|
||||
bool passwordUsePunctuation();
|
||||
void setPasswordUsePunctuation(bool usePunctuation);
|
||||
bool passwordUseQuotes();
|
||||
void setPasswordUseQuotes(bool useQuotes);
|
||||
bool passwordUseDashes();
|
||||
void setPasswordUseDashes(bool useDashes);
|
||||
bool passwordUseMath();
|
||||
void setPasswordUseMath(bool useMath);
|
||||
bool passwordUseLogograms();
|
||||
void setPasswordUseLogograms(bool useLogograms);
|
||||
bool passwordUseEASCII();
|
||||
void setPasswordUseEASCII(bool useEASCII);
|
||||
bool advancedMode();
|
||||
void setAdvancedMode(bool advancedMode);
|
||||
QString passwordAdditionalChars();
|
||||
void setPasswordAdditionalChars(const QString& chars);
|
||||
QString passwordExcludedChars();
|
||||
void setPasswordExcludedChars(const QString& chars);
|
||||
int passPhraseWordCount();
|
||||
void setPassPhraseWordCount(int wordCount);
|
||||
QString passPhraseWordSeparator();
|
||||
void setPassPhraseWordSeparator(const QString& separator);
|
||||
int generatorType();
|
||||
void setGeneratorType(int type);
|
||||
bool passwordEveryGroup();
|
||||
void setPasswordEveryGroup(bool everyGroup);
|
||||
bool passwordExcludeAlike();
|
||||
void setPasswordExcludeAlike(bool excludeAlike);
|
||||
int passwordLength();
|
||||
void setPasswordLength(int length);
|
||||
PasswordGenerator::CharClasses passwordCharClasses();
|
||||
PasswordGenerator::GeneratorFlags passwordGeneratorFlags();
|
||||
QJsonObject generatePassword();
|
||||
void updateBinaryPaths();
|
||||
QString replaceHomePath(QString location);
|
||||
QString replaceTildeHomePath(QString location);
|
||||
|
@ -126,8 +81,6 @@ public:
|
|||
private:
|
||||
static BrowserSettings* m_instance;
|
||||
|
||||
PasswordGenerator m_passwordGenerator;
|
||||
PassphraseGenerator m_passPhraseGenerator;
|
||||
NativeMessageInstaller m_nativeMessageInstaller;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue