Commit 1ce768a3 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Move all remaining methods from their class declaration to implementation.

svn path=/trunk/KDE/kdeutils/ark/; revision=1001398
parent 519d3ffd
......@@ -146,6 +146,21 @@ void ListJob::doWork()
if (!m_interface->waitForFinishedSignal()) m_interface->finished(ret);
}
qlonglong ListJob::extractedFilesSize()
{
return m_extractedFilesSize;
}
bool ListJob::isPasswordProtected()
{
return m_isPasswordProtected;
}
bool ListJob::isSingleFolderArchive()
{
return m_isSingleFolderArchive;
}
void ListJob::onNewEntry(const ArchiveEntry& entry)
{
m_extractedFilesSize += entry[ Size ].toLongLong();
......@@ -170,6 +185,11 @@ void ListJob::onNewEntry(const ArchiveEntry& entry)
}
}
QString ListJob::subfolderName()
{
return m_subfolderName;
}
ExtractJob::ExtractJob(const QList<QVariant>& files, const QString& destinationDir,
ExtractionOptions options, ReadOnlyArchiveInterface *interface, QObject *parent)
: Job(interface, parent), m_files(files), m_destinationDir(destinationDir), m_options(options)
......
......@@ -86,18 +86,10 @@ public:
explicit ListJob(ReadOnlyArchiveInterface *interface, QObject *parent = 0);
void doWork();
bool isSingleFolderArchive() {
return m_isSingleFolderArchive;
}
bool isPasswordProtected() {
return m_isPasswordProtected;
}
QString subfolderName() {
return m_subfolderName;
}
qlonglong extractedFilesSize() {
return m_extractedFilesSize;
}
qlonglong extractedFilesSize();
bool isPasswordProtected();
bool isSingleFolderArchive();
QString subfolderName();
private:
bool m_isSingleFolderArchive;
......
......@@ -734,6 +734,11 @@ void ArchiveModel::insertNode(ArchiveNode *node, InsertBehaviour behaviour)
if (behaviour == NotifyViews) endInsertRows();
}
Kerfuffle::Archive* ArchiveModel::archive() const
{
return m_archive;
}
KJob* ArchiveModel::setArchive(Kerfuffle::Archive *archive)
{
delete m_archive;
......
......@@ -58,11 +58,8 @@ public:
virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent);
KJob* setArchive(Kerfuffle::Archive *archive);
Kerfuffle::Archive *archive() const {
return m_archive;
}
Kerfuffle::Archive *archive() const;
ArchiveEntry entryForIndex(const QModelIndex &index);
int childCount(const QModelIndex &index);
......
......@@ -38,6 +38,11 @@ JobTracker::JobTracker(QWidget *parent)
resetUi();
}
KJob* JobTracker::currentJob() const
{
return m_currentJob;
}
void JobTracker::description(KJob *job, const QString &title, const QPair< QString, QString > &f1, const QPair< QString, QString > &f2)
{
Q_UNUSED(job);
......@@ -104,3 +109,8 @@ void JobTracker::finished(KJob *job)
m_ui->progressBar->hide();
KJobTrackerInterface::unregisterJob(job);
}
QWidget* JobTracker::widget(KJob *)
{
return m_ui;
}
......@@ -39,15 +39,11 @@ class JobTracker: public KAbstractWidgetJobTracker
public:
JobTracker(QWidget *parent = 0);
QWidget *widget(KJob *) {
return m_ui;
}
QWidget *widget(KJob *);
virtual void registerJob(KJob *job);
virtual void unregisterJob(KJob *job);
KJob *currentJob() const {
return m_currentJob;
}
KJob *currentJob() const;
protected slots:
virtual void finished(KJob *job);
......
......@@ -387,6 +387,11 @@ bool Part::saveFile()
return true;
}
bool Part::isBusy() const
{
return m_busy;
}
void Part::slotLoadingStarted()
{
}
......
......@@ -51,9 +51,7 @@ public:
virtual bool openFile();
virtual bool saveFile();
bool isBusy() const {
return m_busy;
}
bool isBusy() const;
public slots:
void extractSelectedFilesTo(QString localPath);
......
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