• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • jobs
kjob_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
3 David Faure <faure@kde.org>
4 Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19
20*/
21
22#ifndef KJOB_P_H
23#define KJOB_P_H
24
25#include "kjob.h"
26#include <QMap>
27
28class KJobUiDelegate;
29class QTimer;
30class QEventLoop;
31
32// This is a private class, but it's exported for
33// KIO::Job's usage. Other Job classes in kdelibs may
34// use it too.
35class KDECORE_EXPORT KJobPrivate
36{
37public:
38 KJobPrivate();
39 virtual ~KJobPrivate();
40
41 KJob *q_ptr;
42
43 KJobUiDelegate *uiDelegate;
44 int error;
45 QString errorText;
46 KJob::Unit progressUnit;
47 QMap<KJob::Unit, qulonglong> processedAmount;
48 QMap<KJob::Unit, qulonglong> totalAmount;
49 unsigned long percentage;
50 bool suspended;
51 KJob::Capabilities capabilities;
52 QTimer *speedTimer;
53 bool isAutoDelete;
54 QEventLoop *eventLoop;
55
56 void _k_speedTimeout();
57
58 static bool _k_kjobUnitEnumRegistered;
59
60 bool isFinished;
61
62 Q_DECLARE_PUBLIC(KJob)
63};
64
65#endif
KJobPrivate
Definition: kjob_p.h:36
KJobPrivate::capabilities
KJob::Capabilities capabilities
Definition: kjob_p.h:51
KJobPrivate::progressUnit
KJob::Unit progressUnit
Definition: kjob_p.h:46
KJobPrivate::q_ptr
KJob * q_ptr
Definition: kjob_p.h:41
KJobPrivate::suspended
bool suspended
Definition: kjob_p.h:50
KJobPrivate::processedAmount
QMap< KJob::Unit, qulonglong > processedAmount
Definition: kjob_p.h:47
KJobPrivate::totalAmount
QMap< KJob::Unit, qulonglong > totalAmount
Definition: kjob_p.h:48
KJobPrivate::uiDelegate
KJobUiDelegate * uiDelegate
Definition: kjob_p.h:43
KJobPrivate::isFinished
bool isFinished
Definition: kjob_p.h:60
KJobPrivate::percentage
unsigned long percentage
Definition: kjob_p.h:49
KJobPrivate::eventLoop
QEventLoop * eventLoop
Definition: kjob_p.h:54
KJobPrivate::isAutoDelete
bool isAutoDelete
Definition: kjob_p.h:53
KJobPrivate::speedTimer
QTimer * speedTimer
Definition: kjob_p.h:52
KJobPrivate::errorText
QString errorText
Definition: kjob_p.h:45
KJobPrivate::_k_kjobUnitEnumRegistered
static bool _k_kjobUnitEnumRegistered
Definition: kjob_p.h:58
KJobPrivate::error
int error
Definition: kjob_p.h:44
KJobUiDelegate
The base class for all KJob UI delegate.
Definition: kjobuidelegate.h:40
KJob
The base class for all jobs.
Definition: kjob.h:85
KJob::Unit
Unit
Definition: kjob.h:91
QMap
QString
kjob.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal