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

KDECore

kjob_p.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
00003                        David Faure <faure@kde.org>
00004     Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 
00020 */
00021 
00022 #ifndef KJOB_P_H
00023 #define KJOB_P_H
00024 
00025 #include "kjob.h"
00026 #include <QMap>
00027 
00028 class KJobUiDelegate;
00029 class QTimer;
00030 class QEventLoop;
00031 
00032 // This is a private class, but it's exported for
00033 // KIO::Job's usage. Other Job classes in kdelibs may
00034 // use it too.
00035 class KDECORE_EXPORT KJobPrivate
00036 {
00037 public:
00038     KJobPrivate();
00039     virtual ~KJobPrivate();
00040 
00041     KJob *q_ptr;
00042 
00043     KJobUiDelegate *uiDelegate;
00044     int error;
00045     QString errorText;
00046     KJob::Unit progressUnit;
00047     QMap<KJob::Unit, qulonglong> processedAmount;
00048     QMap<KJob::Unit, qulonglong> totalAmount;
00049     unsigned long percentage;
00050     bool suspended;
00051     KJob::Capabilities capabilities;
00052     QTimer *speedTimer;
00053     bool isAutoDelete;
00054     QEventLoop *eventLoop;
00055 
00056     void _k_speedTimeout();
00057 
00058     static bool _k_kjobUnitEnumRegistered;
00059 
00060     bool isFinished;
00061 
00062     Q_DECLARE_PUBLIC(KJob)
00063 };
00064 
00065 #endif

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal