mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-17 19:54:33 -05:00
Optimize includes across code base
This commit is contained in:
parent
f770edb6d3
commit
6b14b5dc27
@ -19,18 +19,15 @@
|
|||||||
#include "AutoType.h"
|
#include "AutoType.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
#include <QDebug>
|
||||||
#include <QPluginLoader>
|
#include <QPluginLoader>
|
||||||
#include <QWindow>
|
#include <QUrl>
|
||||||
|
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
#include "autotype/AutoTypePlatformPlugin.h"
|
#include "autotype/AutoTypePlatformPlugin.h"
|
||||||
#include "autotype/AutoTypeSelectDialog.h"
|
#include "autotype/AutoTypeSelectDialog.h"
|
||||||
#include "autotype/PickcharsDialog.h"
|
#include "autotype/PickcharsDialog.h"
|
||||||
#include "core/Config.h"
|
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
|
||||||
#include "core/Resources.h"
|
#include "core/Resources.h"
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
#include "gui/MainWindow.h"
|
#include "gui/MainWindow.h"
|
||||||
|
@ -21,11 +21,8 @@
|
|||||||
|
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QStringList>
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include "autotype/AutoTypeMatch.h"
|
|
||||||
|
|
||||||
class AutoTypeAction;
|
class AutoTypeAction;
|
||||||
class AutoTypeExecutor;
|
class AutoTypeExecutor;
|
||||||
class AutoTypePlatformInterface;
|
class AutoTypePlatformInterface;
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#ifndef KEEPASSX_AUTOTYPEACTION_H
|
#ifndef KEEPASSX_AUTOTYPEACTION_H
|
||||||
#define KEEPASSX_AUTOTYPEACTION_H
|
#define KEEPASSX_AUTOTYPEACTION_H
|
||||||
|
|
||||||
#include <QChar>
|
|
||||||
|
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
class AutoTypeExecutor;
|
class AutoTypeExecutor;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
class Entry;
|
class Entry;
|
||||||
typedef QPair<QPointer<Entry>, QString> AutoTypeMatch;
|
typedef QPair<QPointer<Entry>, QString> AutoTypeMatch;
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
|
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
|
||||||
#include "core/DatabaseIcons.h"
|
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Global.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
|
@ -17,12 +17,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "AutoTypeMatchView.h"
|
#include "AutoTypeMatchView.h"
|
||||||
|
#include "AutoTypeMatchModel.h"
|
||||||
|
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "gui/Clipboard.h"
|
|
||||||
#include "gui/Icons.h"
|
|
||||||
|
|
||||||
#include <QAction>
|
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QSortFilterProxyModel>
|
#include <QSortFilterProxyModel>
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
#include <QTableView>
|
#include <QTableView>
|
||||||
|
|
||||||
#include "autotype/AutoTypeMatch.h"
|
#include "autotype/AutoTypeMatch.h"
|
||||||
#include "autotype/AutoTypeMatchModel.h"
|
|
||||||
|
class AutoTypeMatchModel;
|
||||||
|
|
||||||
class QSortFilterProxyModel;
|
class QSortFilterProxyModel;
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include "PickcharsDialog.h"
|
#include "PickcharsDialog.h"
|
||||||
#include "ui_PickcharsDialog.h"
|
#include "ui_PickcharsDialog.h"
|
||||||
|
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "gui/Icons.h"
|
#include "gui/Icons.h"
|
||||||
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#define KEEPASSXC_PICKCHARSDIALOG_H
|
#define KEEPASSXC_PICKCHARSDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QPointer>
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
|
|
||||||
#include "autotype/AutoTypeAction.h"
|
|
||||||
#include "autotype/AutoTypePlatformPlugin.h"
|
#include "autotype/AutoTypePlatformPlugin.h"
|
||||||
#include "autotype/test/AutoTypeTestInterface.h"
|
#include "autotype/test/AutoTypeTestInterface.h"
|
||||||
|
|
||||||
|
@ -18,6 +18,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "AutoTypeXCB.h"
|
#include "AutoTypeXCB.h"
|
||||||
|
#include "core/Tools.h"
|
||||||
|
#include "gui/osutils/nixutils/X11Funcs.h"
|
||||||
|
|
||||||
|
#include <QX11Info>
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
#include <X11/extensions/XTest.h>
|
||||||
|
|
||||||
AutoTypePlatformX11::AutoTypePlatformX11()
|
AutoTypePlatformX11::AutoTypePlatformX11()
|
||||||
{
|
{
|
||||||
|
@ -23,19 +23,11 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QX11Info>
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
|
|
||||||
#include "autotype/AutoTypeAction.h"
|
|
||||||
#include "autotype/AutoTypePlatformPlugin.h"
|
#include "autotype/AutoTypePlatformPlugin.h"
|
||||||
#include "core/Tools.h"
|
|
||||||
#include "gui/osutils/OSUtils.h"
|
|
||||||
#include "gui/osutils/nixutils/X11Funcs.h"
|
|
||||||
|
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
#include <X11/Xutil.h>
|
|
||||||
#include <X11/extensions/XTest.h>
|
|
||||||
#include <xcb/xcb.h>
|
|
||||||
|
|
||||||
#define N_MOD_INDICES (Mod5MapIndex + 1)
|
#define N_MOD_INDICES (Mod5MapIndex + 1)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "BrowserAccessControlDialog.h"
|
#include "BrowserAccessControlDialog.h"
|
||||||
#include "ui_BrowserAccessControlDialog.h"
|
#include "ui_BrowserAccessControlDialog.h"
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
|
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
#define BROWSERACCESSCONTROLDIALOG_H
|
#define BROWSERACCESSCONTROLDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QScopedPointer>
|
#include <QTableWidget>
|
||||||
#include <QTableWidgetItem>
|
|
||||||
|
|
||||||
class Entry;
|
class Entry;
|
||||||
|
|
||||||
|
@ -16,14 +16,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BrowserAction.h"
|
#include "BrowserAction.h"
|
||||||
|
|
||||||
#include "BrowserService.h"
|
#include "BrowserService.h"
|
||||||
#include "BrowserSettings.h"
|
#include "BrowserSettings.h"
|
||||||
#include "BrowserShared.h"
|
#include "BrowserShared.h"
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
|
#include <QJsonArray>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QJsonParseError>
|
#include <QJsonObject>
|
||||||
|
|
||||||
#include <botan/sodium.h>
|
#include <botan/sodium.h>
|
||||||
|
|
||||||
using namespace Botan::Sodium;
|
using namespace Botan::Sodium;
|
||||||
|
@ -18,9 +18,10 @@
|
|||||||
#ifndef BROWSERACTION_H
|
#ifndef BROWSERACTION_H
|
||||||
#define BROWSERACTION_H
|
#define BROWSERACTION_H
|
||||||
|
|
||||||
#include <QJsonObject>
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
class QJsonObject;
|
||||||
|
|
||||||
class BrowserAction
|
class BrowserAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -17,9 +17,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BrowserEntryConfig.h"
|
#include "BrowserEntryConfig.h"
|
||||||
|
|
||||||
|
#include "browser/Variant.h"
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
#include "core/EntryAttributes.h"
|
|
||||||
#include <QtCore>
|
#include <QJsonDocument>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
static const char KEEPASSXCBROWSER_NAME[] = "KeePassXC-Browser Settings";
|
static const char KEEPASSXCBROWSER_NAME[] = "KeePassXC-Browser Settings";
|
||||||
|
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
#ifndef BROWSERENTRYCONFIG_H
|
#ifndef BROWSERENTRYCONFIG_H
|
||||||
#define BROWSERENTRYCONFIG_H
|
#define BROWSERENTRYCONFIG_H
|
||||||
|
|
||||||
#include "Variant.h"
|
#include <QObject>
|
||||||
#include <QtCore/QObject>
|
#include <QSet>
|
||||||
#include <QtCore/QSet>
|
#include <QString>
|
||||||
#include <QtCore/QString>
|
|
||||||
#include <QtCore/QStringList>
|
|
||||||
|
|
||||||
class Entry;
|
class Entry;
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include "BrowserEntrySaveDialog.h"
|
#include "BrowserEntrySaveDialog.h"
|
||||||
#include "ui_BrowserEntrySaveDialog.h"
|
#include "ui_BrowserEntrySaveDialog.h"
|
||||||
|
|
||||||
#include "core/Database.h"
|
|
||||||
#include "gui/DatabaseWidget.h"
|
#include "gui/DatabaseWidget.h"
|
||||||
|
|
||||||
BrowserEntrySaveDialog::BrowserEntrySaveDialog(QWidget* parent)
|
BrowserEntrySaveDialog::BrowserEntrySaveDialog(QWidget* parent)
|
||||||
|
@ -21,9 +21,7 @@
|
|||||||
|
|
||||||
#include "gui/DatabaseTabWidget.h"
|
#include "gui/DatabaseTabWidget.h"
|
||||||
|
|
||||||
#include <QDialog>
|
class QListWidgetItem;
|
||||||
#include <QListWidgetItem>
|
|
||||||
#include <QScopedPointer>
|
|
||||||
|
|
||||||
class Entry;
|
class Entry;
|
||||||
|
|
||||||
|
@ -16,16 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BrowserHost.h"
|
#include "BrowserHost.h"
|
||||||
#include "BrowserSettings.h"
|
|
||||||
#include "BrowserShared.h"
|
#include "BrowserShared.h"
|
||||||
|
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QLocalServer>
|
#include <QLocalServer>
|
||||||
#include <QLocalSocket>
|
#include <QLocalSocket>
|
||||||
#include <QMutexLocker>
|
|
||||||
#include <QtNetwork>
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@ -34,7 +29,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BrowserHost::BrowserHost(QObject* parent)
|
BrowserHost::BrowserHost(QObject* parent)
|
||||||
|
@ -17,26 +17,14 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include "BrowserService.h"
|
||||||
#include <QHostAddress>
|
|
||||||
#include <QInputDialog>
|
|
||||||
#include <QJsonArray>
|
|
||||||
#include <QMessageBox>
|
|
||||||
#include <QProgressDialog>
|
|
||||||
#include <QUuid>
|
|
||||||
|
|
||||||
#include "BrowserAccessControlDialog.h"
|
#include "BrowserAccessControlDialog.h"
|
||||||
#include "BrowserAction.h"
|
#include "BrowserAction.h"
|
||||||
#include "BrowserEntryConfig.h"
|
#include "BrowserEntryConfig.h"
|
||||||
#include "BrowserEntrySaveDialog.h"
|
#include "BrowserEntrySaveDialog.h"
|
||||||
#include "BrowserHost.h"
|
#include "BrowserHost.h"
|
||||||
#include "BrowserService.h"
|
|
||||||
#include "BrowserSettings.h"
|
#include "BrowserSettings.h"
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/EntrySearcher.h"
|
|
||||||
#include "core/Group.h"
|
|
||||||
#include "core/Metadata.h"
|
|
||||||
#include "core/PasswordGenerator.h"
|
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
#include "gui/MainWindow.h"
|
#include "gui/MainWindow.h"
|
||||||
#include "gui/MessageBox.h"
|
#include "gui/MessageBox.h"
|
||||||
@ -44,6 +32,16 @@
|
|||||||
#include "gui/osutils/macutils/MacUtils.h"
|
#include "gui/osutils/macutils/MacUtils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QCryptographicHash>
|
||||||
|
#include <QHostAddress>
|
||||||
|
#include <QInputDialog>
|
||||||
|
#include <QJsonArray>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QListWidget>
|
||||||
|
#include <QProgressDialog>
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
const QString BrowserService::KEEPASSXCBROWSER_NAME = QStringLiteral("KeePassXC-Browser Settings");
|
const QString BrowserService::KEEPASSXCBROWSER_NAME = QStringLiteral("KeePassXC-Browser Settings");
|
||||||
const QString BrowserService::KEEPASSXCBROWSER_OLD_NAME = QStringLiteral("keepassxc-browser Settings");
|
const QString BrowserService::KEEPASSXCBROWSER_OLD_NAME = QStringLiteral("keepassxc-browser Settings");
|
||||||
static const QString KEEPASSXCBROWSER_GROUP_NAME = QStringLiteral("KeePassXC-Browser Passwords");
|
static const QString KEEPASSXCBROWSER_GROUP_NAME = QStringLiteral("KeePassXC-Browser Passwords");
|
||||||
|
@ -21,10 +21,6 @@
|
|||||||
#define BROWSERSERVICE_H
|
#define BROWSERSERVICE_H
|
||||||
|
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
#include <QObject>
|
|
||||||
#include <QPointer>
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include <QtCore>
|
|
||||||
|
|
||||||
typedef QPair<QString, QString> StringPair;
|
typedef QPair<QString, QString> StringPair;
|
||||||
typedef QList<StringPair> StringPairList;
|
typedef QList<StringPair> StringPairList;
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
#include "core/PasswordHealth.h"
|
#include "core/PasswordHealth.h"
|
||||||
|
|
||||||
|
#include <QJsonObject>
|
||||||
|
|
||||||
BrowserSettings* BrowserSettings::m_instance(nullptr);
|
BrowserSettings* BrowserSettings::m_instance(nullptr);
|
||||||
|
|
||||||
BrowserSettings* BrowserSettings::instance()
|
BrowserSettings* BrowserSettings::instance()
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#ifndef BROWSERSETTINGS_H
|
#ifndef BROWSERSETTINGS_H
|
||||||
#define BROWSERSETTINGS_H
|
#define BROWSERSETTINGS_H
|
||||||
|
|
||||||
#include "BrowserShared.h"
|
|
||||||
#include "NativeMessageInstaller.h"
|
#include "NativeMessageInstaller.h"
|
||||||
#include "core/PassphraseGenerator.h"
|
#include "core/PassphraseGenerator.h"
|
||||||
#include "core/PasswordGenerator.h"
|
#include "core/PasswordGenerator.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "BrowserSettings.h"
|
#include "BrowserSettings.h"
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include "core/Resources.h"
|
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#define BROWSERSETTINGSWIDGET_H
|
#define BROWSERSETTINGSWIDGET_H
|
||||||
|
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QScopedPointer>
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
|
@ -16,12 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BrowserShared.h"
|
#include "BrowserShared.h"
|
||||||
|
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QProcessEnvironment>
|
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
#include <QVariant>
|
|
||||||
|
|
||||||
namespace BrowserShared
|
namespace BrowserShared
|
||||||
{
|
{
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
|
#include <QJsonObject>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QProcessEnvironment>
|
#include <QProcessEnvironment>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
@ -20,7 +20,9 @@
|
|||||||
#define NATIVEMESSAGEINSTALLER_H
|
#define NATIVEMESSAGEINSTALLER_H
|
||||||
|
|
||||||
#include "BrowserShared.h"
|
#include "BrowserShared.h"
|
||||||
#include <QJsonObject>
|
#include <QtGlobal>
|
||||||
|
|
||||||
|
class QJsonObject;
|
||||||
|
|
||||||
class NativeMessageInstaller
|
class NativeMessageInstaller
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Variant.h"
|
#include <QJsonObject>
|
||||||
|
#include <QMetaProperty>
|
||||||
|
|
||||||
QVariantMap qo2qv(const QObject* object, const QStringList& ignoredProperties)
|
QVariantMap qo2qv(const QObject* object, const QStringList& ignoredProperties)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#ifndef VARIANT_H
|
#ifndef VARIANT_H
|
||||||
#define VARIANT_H
|
#define VARIANT_H
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QVariantMap>
|
||||||
|
|
||||||
QVariantMap qo2qv(const QObject* object,
|
QVariantMap qo2qv(const QObject* object,
|
||||||
const QStringList& ignoredProperties = QStringList(QString(QLatin1String("objectName"))));
|
const QStringList& ignoredProperties = QStringList(QString(QLatin1String("objectName"))));
|
||||||
|
@ -19,8 +19,10 @@
|
|||||||
|
|
||||||
#include "Generate.h"
|
#include "Generate.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
#include "core/PasswordGenerator.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Add::UsernameOption = QCommandLineOption(QStringList() << "u"
|
const QCommandLineOption Add::UsernameOption = QCommandLineOption(QStringList() << "u"
|
||||||
<< "username",
|
<< "username",
|
||||||
|
@ -18,9 +18,10 @@
|
|||||||
#include "AddGroup.h"
|
#include "AddGroup.h"
|
||||||
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
AddGroup::AddGroup()
|
AddGroup::AddGroup()
|
||||||
{
|
{
|
||||||
name = QString("mkdir");
|
name = QString("mkdir");
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/HibpOffline.h"
|
#include "core/HibpOffline.h"
|
||||||
#include "core/Tools.h"
|
|
||||||
|
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
@ -18,10 +18,11 @@
|
|||||||
#include "Clip.h"
|
#include "Clip.h"
|
||||||
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
#define CLI_DEFAULT_CLIP_TIMEOUT 10
|
#define CLI_DEFAULT_CLIP_TIMEOUT 10
|
||||||
|
|
||||||
const QCommandLineOption Clip::AttributeOption = QCommandLineOption(
|
const QCommandLineOption Clip::AttributeOption = QCommandLineOption(
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
#ifndef KEEPASSXC_CLOSE_H
|
#ifndef KEEPASSXC_CLOSE_H
|
||||||
#define KEEPASSXC_CLOSE_H
|
#define KEEPASSXC_CLOSE_H
|
||||||
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
|
|
||||||
class Close : public Command
|
class Close : public Command
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Command.h"
|
|
||||||
|
|
||||||
#include "Add.h"
|
#include "Add.h"
|
||||||
#include "AddGroup.h"
|
#include "AddGroup.h"
|
||||||
#include "Analyze.h"
|
#include "Analyze.h"
|
||||||
@ -42,6 +40,7 @@
|
|||||||
#include "Show.h"
|
#include "Show.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
|
@ -19,13 +19,11 @@
|
|||||||
#define KEEPASSXC_COMMAND_H
|
#define KEEPASSXC_COMMAND_H
|
||||||
|
|
||||||
#include <QCommandLineOption>
|
#include <QCommandLineOption>
|
||||||
#include <QCommandLineParser>
|
|
||||||
#include <QList>
|
|
||||||
#include <QString>
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
|
|
||||||
|
class QCommandLineParser;
|
||||||
|
|
||||||
// At the moment, there's no QT class for the positional arguments
|
// At the moment, there's no QT class for the positional arguments
|
||||||
// like there is for the options (QCommandLineOption).
|
// like there is for the options (QCommandLineOption).
|
||||||
struct CommandLineArgument
|
struct CommandLineArgument
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "keys/FileKey.h"
|
#include "keys/FileKey.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
||||||
const QCommandLineOption Create::DecryptionTimeOption =
|
const QCommandLineOption Create::DecryptionTimeOption =
|
||||||
|
@ -16,7 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "DatabaseCommand.h"
|
#include "DatabaseCommand.h"
|
||||||
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
DatabaseCommand::DatabaseCommand()
|
DatabaseCommand::DatabaseCommand()
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/PassphraseGenerator.h"
|
#include "core/PassphraseGenerator.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Diceware::WordCountOption =
|
const QCommandLineOption Diceware::WordCountOption =
|
||||||
QCommandLineOption(QStringList() << "W"
|
QCommandLineOption(QStringList() << "W"
|
||||||
<< "words",
|
<< "words",
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
#include "Add.h"
|
#include "Add.h"
|
||||||
#include "Generate.h"
|
#include "Generate.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
#include "core/PasswordGenerator.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Edit::TitleOption = QCommandLineOption(QStringList() << "t"
|
const QCommandLineOption Edit::TitleOption = QCommandLineOption(QStringList() << "t"
|
||||||
<< "title",
|
<< "title",
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/PasswordHealth.h"
|
#include "core/PasswordHealth.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
#include <zxcvbn.h>
|
#include <zxcvbn.h>
|
||||||
|
|
||||||
const QCommandLineOption Estimate::AdvancedOption =
|
const QCommandLineOption Estimate::AdvancedOption =
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
#ifndef KEEPASSXC_EXIT_H
|
#ifndef KEEPASSXC_EXIT_H
|
||||||
#define KEEPASSXC_EXIT_H
|
#define KEEPASSXC_EXIT_H
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
|
|
||||||
class Exit : public Command
|
class Exit : public Command
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "format/CsvExporter.h"
|
#include "format/CsvExporter.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Export::FormatOption = QCommandLineOption(
|
const QCommandLineOption Export::FormatOption = QCommandLineOption(
|
||||||
QStringList() << "f"
|
QStringList() << "f"
|
||||||
<< "format",
|
<< "format",
|
||||||
|
@ -17,8 +17,10 @@
|
|||||||
|
|
||||||
#include "Generate.h"
|
#include "Generate.h"
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
#include "core/PasswordGenerator.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Generate::PasswordLengthOption =
|
const QCommandLineOption Generate::PasswordLengthOption =
|
||||||
QCommandLineOption(QStringList() << "L"
|
QCommandLineOption(QStringList() << "L"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
|
|
||||||
#include "core/PasswordGenerator.h"
|
class PasswordGenerator;
|
||||||
|
|
||||||
class Generate : public Command
|
class Generate : public Command
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "Create.h"
|
#include "Create.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
Info::Info()
|
Info::Info()
|
||||||
{
|
{
|
||||||
name = QString("db-info");
|
name = QString("db-info");
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption List::RecursiveOption =
|
const QCommandLineOption List::RecursiveOption =
|
||||||
QCommandLineOption(QStringList() << "R"
|
QCommandLineOption(QStringList() << "R"
|
||||||
<< "recursive",
|
<< "recursive",
|
||||||
|
@ -17,9 +17,8 @@
|
|||||||
|
|
||||||
#include "Locate.h"
|
#include "Locate.h"
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
@ -17,10 +17,11 @@
|
|||||||
|
|
||||||
#include "Merge.h"
|
#include "Merge.h"
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Merger.h"
|
#include "core/Merger.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Merge::SameCredentialsOption =
|
const QCommandLineOption Merge::SameCredentialsOption =
|
||||||
QCommandLineOption(QStringList() << "s"
|
QCommandLineOption(QStringList() << "s"
|
||||||
<< "same-credentials",
|
<< "same-credentials",
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
#include "Move.h"
|
#include "Move.h"
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
Move::Move()
|
Move::Move()
|
||||||
{
|
{
|
||||||
name = QString("mv");
|
name = QString("mv");
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
#include "Open.h"
|
#include "Open.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
Open::Open()
|
Open::Open()
|
||||||
{
|
{
|
||||||
name = QString("open");
|
name = QString("open");
|
||||||
|
@ -17,11 +17,12 @@
|
|||||||
|
|
||||||
#include "Remove.h"
|
#include "Remove.h"
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
Remove::Remove()
|
Remove::Remove()
|
||||||
{
|
{
|
||||||
name = QString("rm");
|
name = QString("rm");
|
||||||
|
@ -17,11 +17,12 @@
|
|||||||
|
|
||||||
#include "RemoveGroup.h"
|
#include "RemoveGroup.h"
|
||||||
|
|
||||||
#include "TextStream.h"
|
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
RemoveGroup::RemoveGroup()
|
RemoveGroup::RemoveGroup()
|
||||||
{
|
{
|
||||||
name = QString("rmdir");
|
name = QString("rmdir");
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
|
||||||
const QCommandLineOption Show::TotpOption = QCommandLineOption(QStringList() << "t"
|
const QCommandLineOption Show::TotpOption = QCommandLineOption(QStringList() << "t"
|
||||||
<< "totp",
|
<< "totp",
|
||||||
QObject::tr("Show the entry's current TOTP."));
|
QObject::tr("Show the entry's current TOTP."));
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
#include "core/EntryAttributes.h"
|
#include "core/EntryAttributes.h"
|
||||||
#include "keys/CompositeKey.h"
|
|
||||||
#include "keys/FileKey.h"
|
#include "keys/FileKey.h"
|
||||||
#include "keys/PasswordKey.h"
|
|
||||||
#ifdef WITH_XC_YUBIKEY
|
#ifdef WITH_XC_YUBIKEY
|
||||||
#include "keys/ChallengeResponseKey.h"
|
#include "keys/ChallengeResponseKey.h"
|
||||||
#endif
|
#endif
|
||||||
@ -35,7 +33,6 @@
|
|||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QTextStream>
|
|
||||||
|
|
||||||
namespace Utils
|
namespace Utils
|
||||||
{
|
{
|
||||||
|
@ -17,10 +17,8 @@
|
|||||||
|
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
#include "DatabaseCommand.h"
|
|
||||||
#include "Open.h"
|
#include "Open.h"
|
||||||
#include "TextStream.h"
|
#include "TextStream.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
|
@ -15,10 +15,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtGlobal>
|
|
||||||
#include <botan/mem_ops.h>
|
#include <botan/mem_ops.h>
|
||||||
#include <cstdint>
|
|
||||||
#include <cstdlib>
|
|
||||||
#if defined(Q_OS_MACOS)
|
#if defined(Q_OS_MACOS)
|
||||||
#include <malloc/malloc.h>
|
#include <malloc/malloc.h>
|
||||||
#elif defined(Q_OS_FREEBSD)
|
#elif defined(Q_OS_FREEBSD)
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#ifndef KEEPASSXC_ASYNCTASK_HPP
|
#ifndef KEEPASSXC_ASYNCTASK_HPP
|
||||||
#define KEEPASSXC_ASYNCTASK_HPP
|
#define KEEPASSXC_ASYNCTASK_HPP
|
||||||
|
|
||||||
#include <QFuture>
|
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrent>
|
||||||
|
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
|
|
||||||
#include "Base32.h"
|
#include "Base32.h"
|
||||||
|
|
||||||
|
#include <QHash>
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
constexpr quint64 MASK_40BIT = quint64(0xF8) << 32;
|
constexpr quint64 MASK_40BIT = quint64(0xF8) << 32;
|
||||||
constexpr quint64 MASK_35BIT = quint64(0x7C0000000);
|
constexpr quint64 MASK_35BIT = quint64(0x7C0000000);
|
||||||
constexpr quint64 MASK_25BIT = quint64(0x1F00000);
|
constexpr quint64 MASK_25BIT = quint64(0x1F00000);
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QtCore/qglobal.h>
|
|
||||||
|
|
||||||
class Base32
|
class Base32
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#include "Bootstrap.h"
|
#include "Bootstrap.h"
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include "core/Config.h"
|
|
||||||
#include "core/Translator.h"
|
#include "core/Translator.h"
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
@ -14,4 +14,3 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "Compare.h"
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
#ifndef KEEPASSXC_COMPARE_H
|
#ifndef KEEPASSXC_COMPARE_H
|
||||||
#define KEEPASSXC_COMPARE_H
|
#define KEEPASSXC_COMPARE_H
|
||||||
|
|
||||||
#include <QDateTime>
|
|
||||||
|
|
||||||
#include "core/Clock.h"
|
#include "core/Clock.h"
|
||||||
|
|
||||||
enum CompareItemOption
|
enum CompareItemOption
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#define KEEPASSX_CONFIG_H
|
#define KEEPASSX_CONFIG_H
|
||||||
|
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QScopedPointer>
|
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
class QSettings;
|
class QSettings;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "CsvParser.h"
|
#include "CsvParser.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QFile>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
|
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
#define KEEPASSX_CSVPARSER_H
|
#define KEEPASSX_CSVPARSER_H
|
||||||
|
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QFile>
|
|
||||||
#include <QQueue>
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
|
class QFile;
|
||||||
|
|
||||||
typedef QStringList CsvRow;
|
typedef QStringList CsvRow;
|
||||||
typedef QList<CsvRow> CsvTable;
|
typedef QList<CsvRow> CsvTable;
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CustomData.h"
|
#include "CustomData.h"
|
||||||
#include "Clock.h"
|
|
||||||
|
|
||||||
|
#include "core/Clock.h"
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
const QString CustomData::LastModified = QStringLiteral("_LAST_MODIFIED");
|
const QString CustomData::LastModified = QStringLiteral("_LAST_MODIFIED");
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QSet>
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "core/ModifiableObject.h"
|
#include "core/ModifiableObject.h"
|
||||||
|
|
||||||
|
@ -19,23 +19,18 @@
|
|||||||
#include "Database.h"
|
#include "Database.h"
|
||||||
|
|
||||||
#include "core/AsyncTask.h"
|
#include "core/AsyncTask.h"
|
||||||
#include "core/Clock.h"
|
|
||||||
#include "core/FileWatcher.h"
|
#include "core/FileWatcher.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Merger.h"
|
|
||||||
#include "core/Metadata.h"
|
|
||||||
#include "format/KdbxXmlReader.h"
|
#include "format/KdbxXmlReader.h"
|
||||||
#include "format/KeePass2Reader.h"
|
#include "format/KeePass2Reader.h"
|
||||||
#include "format/KeePass2Writer.h"
|
#include "format/KeePass2Writer.h"
|
||||||
#include "keys/FileKey.h"
|
|
||||||
#include "keys/PasswordKey.h"
|
|
||||||
|
|
||||||
#include <QFile>
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QRegularExpression>
|
||||||
#include <QSaveFile>
|
#include <QSaveFile>
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QXmlStreamReader>
|
|
||||||
|
|
||||||
QHash<QUuid, QPointer<Database>> Database::s_uuidMap;
|
QHash<QUuid, QPointer<Database>> Database::s_uuidMap;
|
||||||
|
|
||||||
|
@ -23,13 +23,11 @@
|
|||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QScopedPointer>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include "core/ModifiableObject.h"
|
#include "core/ModifiableObject.h"
|
||||||
#include "crypto/kdf/AesKdf.h"
|
#include "crypto/kdf/AesKdf.h"
|
||||||
#include "crypto/kdf/Kdf.h"
|
|
||||||
#include "format/KeePass2.h"
|
#include "format/KeePass2.h"
|
||||||
#include "keys/CompositeKey.h"
|
#include "keys/CompositeKey.h"
|
||||||
#include "keys/PasswordKey.h"
|
#include "keys/PasswordKey.h"
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
#include "core/Resources.h"
|
|
||||||
#include "gui/MainWindow.h"
|
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QImageReader>
|
#include <QImageReader>
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
#ifndef KEEPASSX_ENDIAN_H
|
#ifndef KEEPASSX_ENDIAN_H
|
||||||
#define KEEPASSX_ENDIAN_H
|
#define KEEPASSX_ENDIAN_H
|
||||||
|
|
||||||
#include <QByteArray>
|
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
#include <QSysInfo>
|
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
|
|
||||||
namespace Endian
|
namespace Endian
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Entry.h"
|
#include "Entry.h"
|
||||||
|
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/DatabaseIcons.h"
|
#include "core/DatabaseIcons.h"
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <utility>
|
#include <QUrl>
|
||||||
|
|
||||||
const int Entry::DefaultIconNumber = 0;
|
const int Entry::DefaultIconNumber = 0;
|
||||||
const int Entry::ResolveMaximumDepth = 10;
|
const int Entry::ResolveMaximumDepth = 10;
|
||||||
|
@ -20,11 +20,7 @@
|
|||||||
#define KEEPASSX_ENTRY_H
|
#define KEEPASSX_ENTRY_H
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QMap>
|
|
||||||
#include <QPixmap>
|
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QSet>
|
|
||||||
#include <QUrl>
|
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
|
||||||
#include "core/AutoTypeAssociations.h"
|
#include "core/AutoTypeAssociations.h"
|
||||||
@ -32,7 +28,6 @@
|
|||||||
#include "core/EntryAttachments.h"
|
#include "core/EntryAttachments.h"
|
||||||
#include "core/EntryAttributes.h"
|
#include "core/EntryAttributes.h"
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
#include "core/ModifiableObject.h"
|
|
||||||
#include "core/TimeInfo.h"
|
#include "core/TimeInfo.h"
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
EntryAttachments::EntryAttachments(QObject* parent)
|
EntryAttachments::EntryAttachments(QObject* parent)
|
||||||
: ModifiableObject(parent)
|
: ModifiableObject(parent)
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
|
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
|
|
||||||
|
#include <QRegularExpression>
|
||||||
|
#include <QUuid>
|
||||||
|
|
||||||
const QString EntryAttributes::TitleKey = "Title";
|
const QString EntryAttributes::TitleKey = "Title";
|
||||||
const QString EntryAttributes::UserNameKey = "UserName";
|
const QString EntryAttributes::UserNameKey = "UserName";
|
||||||
const QString EntryAttributes::PasswordKey = "Password";
|
const QString EntryAttributes::PasswordKey = "Password";
|
||||||
|
@ -21,10 +21,7 @@
|
|||||||
|
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QRegularExpression>
|
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QStringList>
|
|
||||||
#include <QUuid>
|
|
||||||
|
|
||||||
#include "core/ModifiableObject.h"
|
#include "core/ModifiableObject.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#define KEEPASSX_ENTRYSEARCHER_H
|
#define KEEPASSX_ENTRYSEARCHER_H
|
||||||
|
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
class Group;
|
class Group;
|
||||||
class Entry;
|
class Entry;
|
||||||
|
@ -19,10 +19,8 @@
|
|||||||
|
|
||||||
#include "core/AsyncTask.h"
|
#include "core/AsyncTask.h"
|
||||||
|
|
||||||
#include <QCryptographicHash>
|
|
||||||
|
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
#include <sys/vfs.h>
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FileWatcher::FileWatcher(QObject* parent)
|
FileWatcher::FileWatcher(QObject* parent)
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#define KEEPASSX_GLOBAL_H
|
#define KEEPASSX_GLOBAL_H
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QtGlobal>
|
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
#if defined(KEEPASSX_BUILDING_CORE)
|
#if defined(KEEPASSX_BUILDING_CORE)
|
||||||
|
@ -19,10 +19,8 @@
|
|||||||
#include "Group.h"
|
#include "Group.h"
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
#include "core/Clock.h"
|
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
#include "core/DatabaseIcons.h"
|
#include "core/DatabaseIcons.h"
|
||||||
#include "core/Global.h"
|
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
|
|
||||||
@ -30,7 +28,7 @@
|
|||||||
#include "keeshare/KeeShare.h"
|
#include "keeshare/KeeShare.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrentFilter>
|
||||||
|
|
||||||
const int Group::DefaultIconNumber = 48;
|
const int Group::DefaultIconNumber = 48;
|
||||||
const int Group::RecycleBinIconNumber = 43;
|
const int Group::RecycleBinIconNumber = 43;
|
||||||
|
@ -20,15 +20,10 @@
|
|||||||
#define KEEPASSX_GROUP_H
|
#define KEEPASSX_GROUP_H
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QPixmap>
|
|
||||||
#include <QPointer>
|
|
||||||
|
|
||||||
#include "core/CustomData.h"
|
#include "core/CustomData.h"
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
#include "core/Global.h"
|
|
||||||
#include "core/ModifiableObject.h"
|
|
||||||
#include "core/TimeInfo.h"
|
|
||||||
|
|
||||||
class Group : public ModifiableObject
|
class Group : public ModifiableObject
|
||||||
{
|
{
|
||||||
|
@ -16,13 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "HibpDownloader.h"
|
#include "HibpDownloader.h"
|
||||||
#include "core/Config.h"
|
|
||||||
#include "core/Global.h"
|
|
||||||
#include "core/NetworkManager.h"
|
#include "core/NetworkManager.h"
|
||||||
|
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QUrl>
|
#include <QNetworkReply>
|
||||||
#include <QtNetwork>
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QTimer>
|
|
||||||
|
|
||||||
#ifndef WITH_XC_NETWORKING
|
#ifndef WITH_XC_NETWORKING
|
||||||
#error This file requires KeePassXC to be built with network support.
|
#error This file requires KeePassXC to be built with network support.
|
||||||
|
@ -17,13 +17,11 @@
|
|||||||
|
|
||||||
#include "HibpOffline.h"
|
#include "HibpOffline.h"
|
||||||
|
|
||||||
#include <QCryptographicHash>
|
|
||||||
#include <QMultiHash>
|
|
||||||
#include <QProcess>
|
|
||||||
|
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
|
|
||||||
|
#include <QCryptographicHash>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
namespace HibpOffline
|
namespace HibpOffline
|
||||||
{
|
{
|
||||||
const std::size_t SHA1_BYTES = 20;
|
const std::size_t SHA1_BYTES = 20;
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
#ifndef KEEPASSXC_HIBPOFFLINE_H
|
#ifndef KEEPASSXC_HIBPOFFLINE_H
|
||||||
#define KEEPASSXC_HIBPOFFLINE_H
|
#define KEEPASSXC_HIBPOFFLINE_H
|
||||||
|
|
||||||
#include <QIODevice>
|
#include <QSharedPointer>
|
||||||
#include <QList>
|
|
||||||
#include <QPair>
|
class QIODevice;
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Entry;
|
class Entry;
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include "Merger.h"
|
#include "Merger.h"
|
||||||
|
|
||||||
#include "core/Clock.h"
|
|
||||||
#include "core/Database.h"
|
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
Merger::Merger(const Database* sourceDb, Database* targetDb)
|
Merger::Merger(const Database* sourceDb, Database* targetDb)
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#define KEEPASSXC_MERGER_H
|
#define KEEPASSXC_MERGER_H
|
||||||
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include <QObject>
|
|
||||||
#include <QPointer>
|
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Entry;
|
class Entry;
|
||||||
|
@ -16,14 +16,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Metadata.h"
|
#include "Metadata.h"
|
||||||
#include <QApplication>
|
|
||||||
#include <QtCore/QCryptographicHash>
|
|
||||||
|
|
||||||
#include "core/Clock.h"
|
|
||||||
#include "core/DatabaseIcons.h"
|
#include "core/DatabaseIcons.h"
|
||||||
#include "core/Entry.h"
|
|
||||||
#include "core/Group.h"
|
#include "core/Group.h"
|
||||||
#include "core/Tools.h"
|
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QCryptographicHash>
|
||||||
|
|
||||||
const int Metadata::DefaultHistoryMaxItems = 10;
|
const int Metadata::DefaultHistoryMaxItems = 10;
|
||||||
const int Metadata::DefaultHistoryMaxSize = 6 * 1024 * 1024;
|
const int Metadata::DefaultHistoryMaxSize = 6 * 1024 * 1024;
|
||||||
|
@ -19,18 +19,12 @@
|
|||||||
#define KEEPASSX_METADATA_H
|
#define KEEPASSX_METADATA_H
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QHash>
|
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
#include <QImage>
|
|
||||||
#include <QPixmap>
|
|
||||||
#include <QPixmapCache>
|
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QSize>
|
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
|
||||||
#include "core/CustomData.h"
|
#include "core/CustomData.h"
|
||||||
#include "core/Global.h"
|
#include "core/Global.h"
|
||||||
#include "core/ModifiableObject.h"
|
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Group;
|
class Group;
|
||||||
|
@ -18,9 +18,11 @@
|
|||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
#ifdef WITH_XC_NETWORKING
|
#ifdef WITH_XC_NETWORKING
|
||||||
|
|
||||||
#include "NetworkManager.h"
|
#include "NetworkManager.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
|
|
||||||
QNetworkAccessManager* g_netMgr = nullptr;
|
QNetworkAccessManager* g_netMgr = nullptr;
|
||||||
QNetworkAccessManager* getNetMgr()
|
QNetworkAccessManager* getNetMgr()
|
||||||
|
@ -19,12 +19,10 @@
|
|||||||
#define KEEPASSXC_NETWORKMANAGER_H
|
#define KEEPASSXC_NETWORKMANAGER_H
|
||||||
|
|
||||||
#include "config-keepassx.h"
|
#include "config-keepassx.h"
|
||||||
#include <QtGlobal>
|
|
||||||
|
|
||||||
#ifdef WITH_XC_NETWORKING
|
#ifdef WITH_XC_NETWORKING
|
||||||
#include <QNetworkAccessManager>
|
|
||||||
#include <QNetworkReply>
|
class QNetworkAccessManager;
|
||||||
#include <QNetworkRequest>
|
|
||||||
|
|
||||||
QNetworkAccessManager* getNetMgr();
|
QNetworkAccessManager* getNetMgr();
|
||||||
#else
|
#else
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
#ifndef KEEPASSX_PASSPHRASEGENERATOR_H
|
#ifndef KEEPASSX_PASSPHRASEGENERATOR_H
|
||||||
#define KEEPASSX_PASSPHRASEGENERATOR_H
|
#define KEEPASSX_PASSPHRASEGENERATOR_H
|
||||||
|
|
||||||
#include <QFlags>
|
|
||||||
#include <QString>
|
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
|
|
||||||
class PassphraseGenerator
|
class PassphraseGenerator
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#ifndef KEEPASSX_PASSWORDGENERATOR_H
|
#ifndef KEEPASSX_PASSWORDGENERATOR_H
|
||||||
#define KEEPASSX_PASSWORDGENERATOR_H
|
#define KEEPASSX_PASSWORDGENERATOR_H
|
||||||
|
|
||||||
#include <QFlags>
|
|
||||||
#include <QString>
|
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
|
|
||||||
typedef QVector<QChar> PasswordGroup;
|
typedef QVector<QChar> PasswordGroup;
|
||||||
|
@ -15,11 +15,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include "Database.h"
|
|
||||||
#include "Entry.h"
|
|
||||||
#include "Group.h"
|
#include "Group.h"
|
||||||
#include "PasswordHealth.h"
|
#include "PasswordHealth.h"
|
||||||
#include "zxcvbn.h"
|
#include "zxcvbn.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Entry;
|
class Entry;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user