Commit c6cc7b91 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use logInFile class

parent c71f6fd3
......@@ -28,3 +28,14 @@ LogInFile::~LogInFile()
}
QString LogInFile::fileName() const
{
return mFileName;
}
void LogInFile::setFileName(const QString &fileName)
{
mFileName = fileName;
}
......@@ -26,6 +26,12 @@ class LogInFile : public QObject
public:
explicit LogInFile(QObject *parent = Q_NULLPTR);
~LogInFile();
QString fileName() const;
void setFileName(const QString &fileName);
private:
QString mFileName;
};
#endif // LOGINFILE_H
......@@ -18,10 +18,12 @@
#include "pimsettingexporterconsole.h"
#include "pimsettingsbackuprestore.h"
#include "pimsettingexportconsole_debug.h"
#include "loginfile.h"
PimSettingExporterConsole::PimSettingExporterConsole(QObject *parent)
: QObject(parent),
mPimSettingsBackupRestore(new PimSettingsBackupRestore(this)),
mLogInFile(new LogInFile(this)),
mMode(Import),
mInProgress(false)
{
......@@ -58,7 +60,7 @@ void PimSettingExporterConsole::setLogFileName(const QString &logFileName)
qCDebug(PIMSETTINGEXPORTERCONSOLE_LOG) << "Already in progress. We can't change it.";
return;
}
mLogFileName = logFileName;
mLogInFile->setFileName(logFileName);
}
void PimSettingExporterConsole::setTemplateFileName(const QString &templateFileName)
......
......@@ -20,7 +20,7 @@
#include <QObject>
class PimSettingsBackupRestore;
class LogInFile;
class PimSettingExporterConsole : public QObject
{
Q_OBJECT
......@@ -45,9 +45,9 @@ Q_SIGNALS:
void finished();
private:
QString mLogFileName;
QString mTemplateFileName;
PimSettingsBackupRestore *mPimSettingsBackupRestore;
LogInFile *mLogInFile;
Mode mMode;
bool mInProgress;
};
......
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