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