Commit 31909c2b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename class

parent bb3cddd7
......@@ -19,7 +19,7 @@ set(pimsettingexporter_SRCS
selectiontypetreewidget.cpp
abstractimportexportjob.cpp
pimsettingexporterwindow.cpp
backupmailwidget.cpp
logwidget.cpp
mail/exportmailjob.cpp
mail/importmailjob.cpp
backupmailkernel.cpp
......
......@@ -15,7 +15,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "backupmailwidget.h"
#include "logwidget.h"
#include "libkdepim/widgets/customlogwidget.h"
......@@ -23,7 +23,7 @@
#include <QListWidget>
BackupMailWidget::BackupMailWidget(QWidget * parent)
LogWidget::LogWidget(QWidget * parent)
:QWidget(parent)
{
QHBoxLayout *layout = new QHBoxLayout;
......@@ -32,22 +32,22 @@ BackupMailWidget::BackupMailWidget(QWidget * parent)
setLayout(layout);
}
BackupMailWidget::~BackupMailWidget()
LogWidget::~LogWidget()
{
}
void BackupMailWidget::clear()
void LogWidget::clear()
{
mCustomLogWidget->clear();
}
void BackupMailWidget::addInfoLogEntry( const QString& log )
void LogWidget::addInfoLogEntry( const QString &log )
{
mCustomLogWidget->addInfoLogEntry(log);
}
void BackupMailWidget::addErrorLogEntry( const QString& log )
void LogWidget::addErrorLogEntry( const QString &log )
{
mCustomLogWidget->addErrorLogEntry(log);
}
......
......@@ -15,8 +15,8 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef BACKUPMAILWIDGET_H
#define BACKUPMAILWIDGET_H
#ifndef LOGWIDGET_H
#define LOGWIDGET_H
#include <QWidget>
......@@ -24,11 +24,11 @@ namespace KPIM {
class CustomLogWidget;
}
class BackupMailWidget : public QWidget
class LogWidget : public QWidget
{
public:
explicit BackupMailWidget(QWidget *parent);
~BackupMailWidget();
explicit LogWidget(QWidget *parent);
~LogWidget();
void addInfoLogEntry( const QString& log );
void addErrorLogEntry( const QString& log );
......@@ -38,4 +38,4 @@ private:
KPIM::CustomLogWidget *mCustomLogWidget;
};
#endif // BACKUPMAILWIDGET_H
#endif // LOGWIDGET_H
......@@ -16,7 +16,8 @@
*/
#include "pimsettingexporterwindow.h"
#include "backupmailwidget.h"
#include "logwidget.h"
#include "mail/exportmailjob.h"
#include "mail/importmailjob.h"
......@@ -60,9 +61,9 @@ PimSettingExporterWindow::PimSettingExporterWindow(QWidget *parent)
bool canZipFile = canZip();
setupActions(canZipFile);
setupGUI(Keys | StatusBar | Save | Create, QLatin1String("pimsettingexporter.rc"));
mBackupMailWidget = new BackupMailWidget(this);
mLogWidget = new LogWidget(this);
setCentralWidget(mBackupMailWidget);
setCentralWidget(mLogWidget);
resize( 640, 480 );
Akonadi::Control::widgetNeedsAkonadi(this);
if (!canZipFile) {
......@@ -104,7 +105,7 @@ void PimSettingExporterWindow::slotBackupData()
int numberOfStep = 0;
Utils::StoredTypes typeSelected = dialog->backupTypesSelected(numberOfStep);
delete dialog;
mBackupMailWidget->clear();
mLogWidget->clear();
delete mBackupData;
ArchiveStorage *archiveStorage = new ArchiveStorage(filename,this);
......@@ -151,12 +152,12 @@ void PimSettingExporterWindow::slotBackupData()
void PimSettingExporterWindow::slotAddInfo(const QString& info)
{
mBackupMailWidget->addInfoLogEntry(info);
mLogWidget->addInfoLogEntry(info);
}
void PimSettingExporterWindow::slotAddError(const QString& info)
{
mBackupMailWidget->addErrorLogEntry(info);
mLogWidget->addErrorLogEntry(info);
}
......@@ -173,7 +174,7 @@ void PimSettingExporterWindow::slotRestoreData()
int numberOfStep = 0;
Utils::StoredTypes typeSelected = dialog->backupTypesSelected(numberOfStep);
delete dialog;
mBackupMailWidget->clear();
mLogWidget->clear();
delete mRestoreData;
ArchiveStorage *archiveStorage = new ArchiveStorage(filename,this);
......
......@@ -20,7 +20,7 @@
#define PIMSETTINGEXPORTERWINDOW_H
#include <kxmlguiwindow.h>
class BackupMailWidget;
class LogWidget;
class AbstractImportExportJob;
class PimSettingExporterWindow: public KXmlGuiWindow
......@@ -39,7 +39,7 @@ private Q_SLOTS:
private:
bool canZip() const;
void setupActions(bool canZipFile);
BackupMailWidget *mBackupMailWidget;
LogWidget *mLogWidget;
AbstractImportExportJob *mBackupData;
AbstractImportExportJob *mRestoreData;
};
......
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