Coding style fixes.

This commit is contained in:
Felix Geyer 2011-07-08 14:51:14 +02:00
parent 8335db4db5
commit d4f02a78a7
21 changed files with 36 additions and 34 deletions

View File

@ -15,9 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config-keepassx.h"
#include "DatabaseIcons.h"
#include "config-keepassx.h"
DatabaseIcons* DatabaseIcons::m_instance(0);
QIcon DatabaseIcons::icon(int index)

View File

@ -17,10 +17,10 @@
#include "Entry.h"
#include "Database.h"
#include "DatabaseIcons.h"
#include "Group.h"
#include "Metadata.h"
#include "core/Database.h"
#include "core/DatabaseIcons.h"
#include "core/Group.h"
#include "core/Metadata.h"
const QStringList Entry::m_defaultAttibutes(QStringList() << "Title" << "URL" << "UserName" << "Password" << "Notes");

View File

@ -24,8 +24,8 @@
#include <QtGui/QColor>
#include <QtGui/QIcon>
#include "TimeInfo.h"
#include "Uuid.h"
#include "core/TimeInfo.h"
#include "core/Uuid.h"
class Database;
class Group;

View File

@ -20,8 +20,8 @@
#include "Group.h"
#include "DatabaseIcons.h"
#include "Metadata.h"
#include "core/DatabaseIcons.h"
#include "core/Metadata.h"
Group::Group()
{

View File

@ -20,10 +20,10 @@
#include <QtGui/QIcon>
#include "Database.h"
#include "Entry.h"
#include "TimeInfo.h"
#include "Uuid.h"
#include "core/Database.h"
#include "core/Entry.h"
#include "core/TimeInfo.h"
#include "core/Uuid.h"
class Group : public QObject
{

View File

@ -17,7 +17,7 @@
#include "Metadata.h"
#include "Database.h"
#include "core/Database.h"
Metadata::Metadata(Database* parent)
: QObject(parent)

View File

@ -18,12 +18,12 @@
#ifndef KEEPASSX_METADATA_H
#define KEEPASSX_METADATA_H
#include "Uuid.h"
#include <QtCore/QDateTime>
#include <QtCore/QHash>
#include <QtGui/QIcon>
#include "core/Uuid.h"
class Database;
class Group;

View File

@ -17,7 +17,7 @@
#include "CryptoHash.h"
#include "gcrypt.h"
#include <gcrypt.h>
class CryptoHashPrivate
{

View File

@ -17,8 +17,8 @@
#include "SymmetricCipher.h"
#include "SymmetricCipherGcrypt.h"
#include "SymmetricCipherSalsa20.h"
#include "crypto/SymmetricCipherGcrypt.h"
#include "crypto/SymmetricCipherSalsa20.h"
SymmetricCipher::SymmetricCipher(SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode,
SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv)

View File

@ -18,7 +18,7 @@
#ifndef KEEPASSX_SYMMETRICCIPHERBACKEND_H
#define KEEPASSX_SYMMETRICCIPHERBACKEND_H
#include "SymmetricCipher.h"
#include "crypto/SymmetricCipher.h"
class SymmetricCipherBackend
{

View File

@ -18,10 +18,10 @@
#ifndef KEEPASSX_SYMMETRICCIPHERGCRYPT_H
#define KEEPASSX_SYMMETRICCIPHERGCRYPT_H
#include "SymmetricCipherBackend.h"
#include <gcrypt.h>
#include "crypto/SymmetricCipherBackend.h"
class SymmetricCipherGcrypt : public SymmetricCipherBackend
{
public:

View File

@ -18,8 +18,8 @@
#ifndef KEEPASSX_SYMMETRICCIPHERSALSA20_H
#define KEEPASSX_SYMMETRICCIPHERSALSA20_H
#include "SymmetricCipherBackend.h"
#include "salsa20/ecrypt-sync.h"
#include "crypto/SymmetricCipherBackend.h"
#include "crypto/salsa20/ecrypt-sync.h"
class SymmetricCipherSalsa20 : public SymmetricCipherBackend
{

View File

@ -17,8 +17,8 @@
#include "KeePass2RandomStream.h"
#include "format/KeePass2.h"
#include "crypto/CryptoHash.h"
#include "format/KeePass2.h"
KeePass2RandomStream::KeePass2RandomStream(QByteArray key)
: m_cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt,

View File

@ -20,9 +20,9 @@
#include <QtGui/QHBoxLayout>
#include <QtGui/QSplitter>
#include "EditEntryWidget.h"
#include "EntryView.h"
#include "GroupView.h"
#include "gui/EditEntryWidget.h"
#include "gui/EntryView.h"
#include "gui/GroupView.h"
DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
: QStackedWidget(parent)

View File

@ -17,7 +17,7 @@
#include "EntryView.h"
#include "EntryModel.h"
#include "gui/EntryModel.h"
EntryView::EntryView(QWidget* parent)
: QTreeView(parent)

View File

@ -17,9 +17,9 @@
#include "MainWindow.h"
#include "DatabaseWidget.h"
#include "core/Database.h"
#include "core/Metadata.h"
#include "gui/DatabaseWidget.h"
MainWindow::MainWindow()
{

View File

@ -20,7 +20,7 @@
#include <QtCore/QList>
#include "Key.h"
#include "keys/Key.h"
class CompositeKey : public Key
{

View File

@ -20,7 +20,7 @@
#include <QtCore/QString>
#include "Key.h"
#include "keys/Key.h"
class PasswordKey : public Key
{

View File

@ -20,7 +20,7 @@
#include <QtCore/QSysInfo>
#include "LayeredStream.h"
#include "streams/LayeredStream.h"
class HashedBlockStream : public LayeredStream
{

View File

@ -20,8 +20,8 @@
#include <QtCore/QByteArray>
#include "LayeredStream.h"
#include "crypto/SymmetricCipher.h"
#include "streams/LayeredStream.h"
class SymmetricCipherStream : public LayeredStream
{

View File

@ -16,6 +16,7 @@
*/
#include <stdio.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QFile>
#include <QtCore/QStringList>