Commit 63883548 authored by Lisa's avatar Lisa

Localized error messages and code style

parent dc221ee0
......@@ -24,7 +24,7 @@
#include <QCoreApplication>
#include <QTimer>
OperationManager::OperationManager(APM::OperationType type, QList<APM::OperationName> operations, QHash<APM::OptionName, QStringList> options, QStringList args, QObject * parent)
OperationManager::OperationManager(APM::OperationType type, QList<APM::OperationName>& operations, QHash<APM::OptionName, QStringList>& options, QStringList& args, QObject * parent)
: QObject(parent),
m_type(type),
m_operations(operations),
......
......@@ -21,7 +21,7 @@ class OperationManager : public QObject
{
Q_OBJECT
public:
explicit OperationManager(APM::OperationType type, QList< APM::OperationName > operations, QHash<APM::OptionName, QStringList> options, QStringList args, QObject* parent = 0);
explicit OperationManager(APM::OperationType type, QList< APM::OperationName >& operations, QHash<APM::OptionName, QStringList>& options, QStringList& args, QObject* parent = 0);
virtual ~OperationManager();
private slots:
......@@ -30,9 +30,9 @@ private slots:
private:
APM::OperationType m_type;
QList<APM::OperationName> m_operations;
QHash<APM::OptionName, QStringList> m_options;
QStringList m_args;
QList<APM::OperationName>& m_operations;
QHash<APM::OptionName, QStringList>& m_options;
QStringList& m_args;
};
#endif //APM:H
......@@ -36,7 +36,7 @@
#include <iostream>
SyncOperation::SyncOperation(QList<APM::OperationName> operations, QHash<APM::OptionName, QStringList> options, QStringList args, QObject* parent)
SyncOperation::SyncOperation(QList<APM::OperationName>& operations, QHash<APM::OptionName, QStringList>& options, QStringList& args, QObject* parent)
: QObject(parent)
, m_maxDbNameLenght(0)
, m_operations(operations)
......
......@@ -21,7 +21,7 @@ class SyncOperation : public QObject
{
Q_OBJECT
public:
explicit SyncOperation(QList<APM::OperationName> operations, QHash<APM::OptionName, QStringList> options, QStringList args, QObject* parent = 0);
explicit SyncOperation(QList<APM::OperationName>& operations, QHash<APM::OptionName, QStringList>& options, QStringList& args, QObject* parent = 0);
virtual ~SyncOperation();
void start();
......@@ -47,9 +47,9 @@ private:
void updateSystem();
void updateNextDatabase();
QList<APM::OperationName> m_operations;
QHash<APM::OptionName, QStringList> m_options;
QStringList m_args;
QList<APM::OperationName>& m_operations;
QHash<APM::OptionName, QStringList>& m_options;
QStringList& m_args;
QUuid queryId;
signals:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment