mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 08:19:47 -05:00
Coding style fixes.
This commit is contained in:
parent
8335db4db5
commit
d4f02a78a7
@ -15,9 +15,10 @@
|
|||||||
* 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 "config-keepassx.h"
|
|
||||||
#include "DatabaseIcons.h"
|
#include "DatabaseIcons.h"
|
||||||
|
|
||||||
|
#include "config-keepassx.h"
|
||||||
|
|
||||||
DatabaseIcons* DatabaseIcons::m_instance(0);
|
DatabaseIcons* DatabaseIcons::m_instance(0);
|
||||||
|
|
||||||
QIcon DatabaseIcons::icon(int index)
|
QIcon DatabaseIcons::icon(int index)
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
#include "Entry.h"
|
#include "Entry.h"
|
||||||
|
|
||||||
#include "Database.h"
|
#include "core/Database.h"
|
||||||
#include "DatabaseIcons.h"
|
#include "core/DatabaseIcons.h"
|
||||||
#include "Group.h"
|
#include "core/Group.h"
|
||||||
#include "Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
const QStringList Entry::m_defaultAttibutes(QStringList() << "Title" << "URL" << "UserName" << "Password" << "Notes");
|
const QStringList Entry::m_defaultAttibutes(QStringList() << "Title" << "URL" << "UserName" << "Password" << "Notes");
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include <QtGui/QColor>
|
#include <QtGui/QColor>
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
|
|
||||||
#include "TimeInfo.h"
|
#include "core/TimeInfo.h"
|
||||||
#include "Uuid.h"
|
#include "core/Uuid.h"
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Group;
|
class Group;
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
#include "Group.h"
|
#include "Group.h"
|
||||||
|
|
||||||
#include "DatabaseIcons.h"
|
#include "core/DatabaseIcons.h"
|
||||||
#include "Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
Group::Group()
|
Group::Group()
|
||||||
{
|
{
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
|
|
||||||
#include "Database.h"
|
#include "core/Database.h"
|
||||||
#include "Entry.h"
|
#include "core/Entry.h"
|
||||||
#include "TimeInfo.h"
|
#include "core/TimeInfo.h"
|
||||||
#include "Uuid.h"
|
#include "core/Uuid.h"
|
||||||
|
|
||||||
class Group : public QObject
|
class Group : public QObject
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "Metadata.h"
|
#include "Metadata.h"
|
||||||
|
|
||||||
#include "Database.h"
|
#include "core/Database.h"
|
||||||
|
|
||||||
Metadata::Metadata(Database* parent)
|
Metadata::Metadata(Database* parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
@ -18,12 +18,12 @@
|
|||||||
#ifndef KEEPASSX_METADATA_H
|
#ifndef KEEPASSX_METADATA_H
|
||||||
#define KEEPASSX_METADATA_H
|
#define KEEPASSX_METADATA_H
|
||||||
|
|
||||||
#include "Uuid.h"
|
|
||||||
|
|
||||||
#include <QtCore/QDateTime>
|
#include <QtCore/QDateTime>
|
||||||
#include <QtCore/QHash>
|
#include <QtCore/QHash>
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
|
|
||||||
|
#include "core/Uuid.h"
|
||||||
|
|
||||||
class Database;
|
class Database;
|
||||||
class Group;
|
class Group;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "CryptoHash.h"
|
#include "CryptoHash.h"
|
||||||
|
|
||||||
#include "gcrypt.h"
|
#include <gcrypt.h>
|
||||||
|
|
||||||
class CryptoHashPrivate
|
class CryptoHashPrivate
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
#include "SymmetricCipher.h"
|
#include "SymmetricCipher.h"
|
||||||
|
|
||||||
#include "SymmetricCipherGcrypt.h"
|
#include "crypto/SymmetricCipherGcrypt.h"
|
||||||
#include "SymmetricCipherSalsa20.h"
|
#include "crypto/SymmetricCipherSalsa20.h"
|
||||||
|
|
||||||
SymmetricCipher::SymmetricCipher(SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode,
|
SymmetricCipher::SymmetricCipher(SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode,
|
||||||
SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv)
|
SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv)
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#ifndef KEEPASSX_SYMMETRICCIPHERBACKEND_H
|
#ifndef KEEPASSX_SYMMETRICCIPHERBACKEND_H
|
||||||
#define KEEPASSX_SYMMETRICCIPHERBACKEND_H
|
#define KEEPASSX_SYMMETRICCIPHERBACKEND_H
|
||||||
|
|
||||||
#include "SymmetricCipher.h"
|
#include "crypto/SymmetricCipher.h"
|
||||||
|
|
||||||
class SymmetricCipherBackend
|
class SymmetricCipherBackend
|
||||||
{
|
{
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
#ifndef KEEPASSX_SYMMETRICCIPHERGCRYPT_H
|
#ifndef KEEPASSX_SYMMETRICCIPHERGCRYPT_H
|
||||||
#define KEEPASSX_SYMMETRICCIPHERGCRYPT_H
|
#define KEEPASSX_SYMMETRICCIPHERGCRYPT_H
|
||||||
|
|
||||||
#include "SymmetricCipherBackend.h"
|
|
||||||
|
|
||||||
#include <gcrypt.h>
|
#include <gcrypt.h>
|
||||||
|
|
||||||
|
#include "crypto/SymmetricCipherBackend.h"
|
||||||
|
|
||||||
class SymmetricCipherGcrypt : public SymmetricCipherBackend
|
class SymmetricCipherGcrypt : public SymmetricCipherBackend
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
#ifndef KEEPASSX_SYMMETRICCIPHERSALSA20_H
|
#ifndef KEEPASSX_SYMMETRICCIPHERSALSA20_H
|
||||||
#define KEEPASSX_SYMMETRICCIPHERSALSA20_H
|
#define KEEPASSX_SYMMETRICCIPHERSALSA20_H
|
||||||
|
|
||||||
#include "SymmetricCipherBackend.h"
|
#include "crypto/SymmetricCipherBackend.h"
|
||||||
#include "salsa20/ecrypt-sync.h"
|
#include "crypto/salsa20/ecrypt-sync.h"
|
||||||
|
|
||||||
class SymmetricCipherSalsa20 : public SymmetricCipherBackend
|
class SymmetricCipherSalsa20 : public SymmetricCipherBackend
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
#include "KeePass2RandomStream.h"
|
#include "KeePass2RandomStream.h"
|
||||||
|
|
||||||
#include "format/KeePass2.h"
|
|
||||||
#include "crypto/CryptoHash.h"
|
#include "crypto/CryptoHash.h"
|
||||||
|
#include "format/KeePass2.h"
|
||||||
|
|
||||||
KeePass2RandomStream::KeePass2RandomStream(QByteArray key)
|
KeePass2RandomStream::KeePass2RandomStream(QByteArray key)
|
||||||
: m_cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt,
|
: m_cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt,
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#include <QtGui/QHBoxLayout>
|
#include <QtGui/QHBoxLayout>
|
||||||
#include <QtGui/QSplitter>
|
#include <QtGui/QSplitter>
|
||||||
|
|
||||||
#include "EditEntryWidget.h"
|
#include "gui/EditEntryWidget.h"
|
||||||
#include "EntryView.h"
|
#include "gui/EntryView.h"
|
||||||
#include "GroupView.h"
|
#include "gui/GroupView.h"
|
||||||
|
|
||||||
DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
|
DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
|
||||||
: QStackedWidget(parent)
|
: QStackedWidget(parent)
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "EntryView.h"
|
#include "EntryView.h"
|
||||||
|
|
||||||
#include "EntryModel.h"
|
#include "gui/EntryModel.h"
|
||||||
|
|
||||||
EntryView::EntryView(QWidget* parent)
|
EntryView::EntryView(QWidget* parent)
|
||||||
: QTreeView(parent)
|
: QTreeView(parent)
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
|
|
||||||
#include "DatabaseWidget.h"
|
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
#include "gui/DatabaseWidget.h"
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <QtCore/QList>
|
#include <QtCore/QList>
|
||||||
|
|
||||||
#include "Key.h"
|
#include "keys/Key.h"
|
||||||
|
|
||||||
class CompositeKey : public Key
|
class CompositeKey : public Key
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
|
|
||||||
#include "Key.h"
|
#include "keys/Key.h"
|
||||||
|
|
||||||
class PasswordKey : public Key
|
class PasswordKey : public Key
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <QtCore/QSysInfo>
|
#include <QtCore/QSysInfo>
|
||||||
|
|
||||||
#include "LayeredStream.h"
|
#include "streams/LayeredStream.h"
|
||||||
|
|
||||||
class HashedBlockStream : public LayeredStream
|
class HashedBlockStream : public LayeredStream
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
#include <QtCore/QByteArray>
|
#include <QtCore/QByteArray>
|
||||||
|
|
||||||
#include "LayeredStream.h"
|
|
||||||
#include "crypto/SymmetricCipher.h"
|
#include "crypto/SymmetricCipher.h"
|
||||||
|
#include "streams/LayeredStream.h"
|
||||||
|
|
||||||
class SymmetricCipherStream : public LayeredStream
|
class SymmetricCipherStream : public LayeredStream
|
||||||
{
|
{
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QFile>
|
#include <QtCore/QFile>
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
|
Loading…
Reference in New Issue
Block a user