kdelibs/kdecore/jobs/kjob_p.h
Ivailo Monev 61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00

65 lines
1.7 KiB
C++

/* This file is part of the KDE project
Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
David Faure <faure@kde.org>
Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KJOB_P_H
#define KJOB_P_H
#include "kjob.h"
#include <QtCore/qmap.h>
class KJobUiDelegate;
#include <QTimer>
#include <QEventLoop>
// This is a private class, but it's exported for
// KIO::Job's usage. Other Job classes in kdelibs may
// use it too.
class KDECORE_EXPORT KJobPrivate
{
public:
KJobPrivate();
virtual ~KJobPrivate();
KJob *q_ptr;
KJobUiDelegate *uiDelegate;
int error;
QString errorText;
KJob::Unit progressUnit;
QMap<KJob::Unit, qulonglong> processedAmount;
QMap<KJob::Unit, qulonglong> totalAmount;
unsigned long percentage;
bool suspended;
KJob::Capabilities capabilities;
QTimer *speedTimer;
bool isAutoDelete;
QEventLoop *eventLoop;
void _k_speedTimeout();
static bool _k_kjobUnitEnumRegistered;
bool isFinished;
Q_DECLARE_PUBLIC(KJob)
};
#endif