Commit c5d07160 authored by Michael Reeves's avatar Michael Reeves

Move ProgressProxyExtender to sperate file

parent b84b3095
......@@ -20,6 +20,7 @@ set(kdiff3part_PART_SRCS
common.cpp
smalldialogs.cpp
progress.cpp
ProgressProxyExtender.cpp
selection.cpp
cvsignorelist.cpp )
......
/**
* Copyright (C) 2003-2007 by Joachim Eibl
* joachim.eibl at gmx.de
* Copyright (C) 2018 Michael Reeves
*
* This file is part of KDiff3.
*
* KDiff3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* KDiff3 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 KDiff3. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "ProgressProxyExtender.h"
#include <QString>
void ProgressProxyExtender::slotListDirInfoMessage(KJob*, const QString& msg)
{
setInformation(msg, 0);
}
void ProgressProxyExtender::slotPercent(KJob*, qint64 percent)
{
setCurrent(percent);
}
/**
* Copyright (C) 2003-2007 by Joachim Eibl
* joachim.eibl at gmx.de
* Copyright (C) 2018 Michael Reeves
*
* This file is part of KDiff3.
*
* KDiff3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* KDiff3 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 KDiff3. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef PROGREESPROXYEXENDER_H
#define PROGREESPROXYEXENDER_H
#include "progress.h"
#include <QString>
class KJob;
class ProgressProxyExtender: public ProgressProxy
{
Q_OBJECT
public:
ProgressProxyExtender() { setMaxNofSteps(100); }
public Q_SLOTS:
void slotListDirInfoMessage( KJob*, const QString& msg );
void slotPercent( KJob*, qint64 percent );
};
#endif
\ No newline at end of file
......@@ -1189,14 +1189,4 @@ void FileAccessJobHandler::slotListDirProcessNewEntries(KIO::Job*, const KIO::UD
}
}
void ProgressProxyExtender::slotListDirInfoMessage(KJob*, const QString& msg)
{
setInformation(msg, 0);
}
void ProgressProxyExtender::slotPercent(KJob*, qint64 percent)
{
setCurrent(percent);
}
//#include "fileaccess.moc"
......@@ -12,6 +12,7 @@
#define FILEACCESS_H
#include "progress.h"
#include "ProgressProxyExtender.h"
#include <QDir>
#include <QFileInfo>
......@@ -30,16 +31,6 @@ bool wildcardMultiMatch( const QString& wildcard, const QString& testString, boo
class t_DirectoryList;
class ProgressProxyExtender: public ProgressProxy
{
Q_OBJECT
public:
ProgressProxyExtender() { setMaxNofSteps(100); }
public Q_SLOTS:
void slotListDirInfoMessage( KJob*, const QString& msg );
void slotPercent( KJob*, qint64 percent );
};
class FileAccess
{
public:
......
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