Commit 52dffa86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add loginfo

parent 4477b0d0
......@@ -12,6 +12,7 @@ include_directories(${AKONADI_INCLUDE_DIR}
set(pimsettingexporterconsole_SRCS
importexportprogressindicatorconsole.cpp
pimsettingexporterconsole.cpp
loginfo.cpp
main.cpp)
add_executable(pimsettingexporterconsole ${pimsettingexporterconsole_SRCS})
......
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "loginfo.h"
#include <QDebug>
LogInfo::LogInfo(const QString &filename, QObject *parent)
: QObject(parent),
mFileName(filename)
{
}
LogInfo::~LogInfo()
{
}
QString LogInfo::fileName() const
{
return mFileName;
}
void LogInfo::addInfoLogEntry(const QString &log)
{
}
void LogInfo::addErrorLogEntry(const QString &log)
{
}
void LogInfo::addTitleLogEntry(const QString &log)
{
}
void LogInfo::addEndLineLogEntry()
{
}
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LOGINFO_H
#define LOGINFO_H
#include <QObject>
class LogInfo : public QObject
{
Q_OBJECT
public:
explicit LogInfo(const QString &filename, QObject *parent = Q_NULLPTR);
~LogInfo();
QString fileName() const;
public Q_SLOTS:
void addInfoLogEntry(const QString &log);
void addErrorLogEntry(const QString &log);
void addTitleLogEntry(const QString &log);
void addEndLineLogEntry();
private:
QString mFileName;
};
#endif // LOGINFO_H
......@@ -16,9 +16,11 @@
*/
#include "pimsettingexporterconsole.h"
#include "pimsettingsbackuprestore.h"
PimSettingExporterConsole::PimSettingExporterConsole(QObject *parent)
: QObject(parent)
: QObject(parent),
mPimSettingsBackupRestore(new PimSettingsBackupRestore(this))
{
}
......
......@@ -19,6 +19,7 @@
#define PIMSETTINGEXPORTERCONSOLE_H
#include <QObject>
class PimSettingsBackupRestore;
class PimSettingExporterConsole : public QObject
{
......@@ -26,8 +27,11 @@ class PimSettingExporterConsole : public QObject
public:
explicit PimSettingExporterConsole(QObject *parent = Q_NULLPTR);
~PimSettingExporterConsole();
Q_SIGNALS:
void finished();
private:
PimSettingsBackupRestore *mPimSettingsBackupRestore;
};
#endif // PIMSETTINGEXPORTERCONSOLE_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