Commit 42d84a46 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add log create resource

parent 00823fa8
......@@ -21,7 +21,12 @@
ExportImportUtil::ExportImportUtil()
{
mLogCreateResource = new LogCreatingResource(nullptr);
}
ExportImportUtil::~ExportImportUtil()
{
delete mLogCreateResource;
}
void ExportImportUtil::setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList)
......@@ -33,3 +38,8 @@ void ExportImportUtil::setPathConfig(const QString &pathConfig)
{
mPathConfig = pathConfig;
}
void ExportImportUtil::addLogCreateResource(const QString &str)
{
mLogCreateResource->appendText(str);
}
......@@ -21,15 +21,21 @@
#include <QVector>
#include "utils.h"
#include "logcreatingressource.h"
class ExportImportUtil
{
public:
ExportImportUtil();
~ExportImportUtil();
void setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList);
void setPathConfig(const QString &pathConfig);
void addLogCreateResource(const QString &str);
QVector<Utils::AkonadiInstanceInfo> mListAkonadiInstanceInfo;
QString mPathConfig;
private:
LogCreatingResource *mLogCreateResource = nullptr;
};
#endif // EXPORTIMPORTUTIL_H
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