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

KDEUI

  • kdeui
  • jobs
kstatusbarjobtracker.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2000 Matej Koss <koss@miesto.sk>
3 Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18
19*/
20
21#ifndef KSTATUSBARJOBTRACKER_H
22#define KSTATUSBARJOBTRACKER_H
23
24#include <kabstractwidgetjobtracker.h>
25
30class KDEUI_EXPORT KStatusBarJobTracker : public KAbstractWidgetJobTracker
31{
32 Q_OBJECT
33
34public:
35 enum StatusBarMode
36 {
37 NoInformation = 0x0000,
38 LabelOnly = 0x0001,
39 ProgressOnly = 0x0002
40 };
41
42 Q_DECLARE_FLAGS(StatusBarModes, StatusBarMode)
43
44
50 explicit KStatusBarJobTracker(QWidget *parent = 0, bool button = true);
51
55 virtual ~KStatusBarJobTracker();
56
62 virtual void registerJob(KJob *job);
63
69 virtual void unregisterJob(KJob *job);
70
76 virtual QWidget *widget(KJob *job);
77
84 void setStatusBarMode(StatusBarModes statusBarMode);
85
86public Q_SLOTS:
90 virtual void description(KJob *job, const QString &title,
91 const QPair<QString, QString> &field1,
92 const QPair<QString, QString> &field2);
93 virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount);
94 virtual void percent(KJob *job, unsigned long percent);
95 virtual void speed(KJob *job, unsigned long value);
96 virtual void slotClean(KJob *job);
97
98private:
99 class Private;
100 Private *const d;
101};
102
103Q_DECLARE_OPERATORS_FOR_FLAGS(KStatusBarJobTracker::StatusBarModes)
104
105#endif
KAbstractWidgetJobTracker
The base class for widget based job trackers.
Definition: kabstractwidgetjobtracker.h:35
KAbstractWidgetJobTracker::d
Private *const d
Definition: kabstractwidgetjobtracker.h:186
KAbstractWidgetJobTracker::slotClean
virtual void slotClean(KJob *job)
This method is called when the widget should be cleaned (after job is finished).
Definition: kabstractwidgetjobtracker.cpp:102
KAbstractWidgetJobTracker::unregisterJob
virtual void unregisterJob(KJob *job)
Unregister a job from this tracker.
Definition: kabstractwidgetjobtracker.cpp:48
KAbstractWidgetJobTracker::widget
virtual QWidget * widget(KJob *job)=0
The widget associated to this tracker.
KAbstractWidgetJobTracker::registerJob
virtual void registerJob(KJob *job)
Register a new job in this tracker.
Definition: kabstractwidgetjobtracker.cpp:43
KJobTrackerInterface::speed
virtual void speed(KJob *job, unsigned long value)
KJobTrackerInterface::totalAmount
virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount)
KJobTrackerInterface::percent
virtual void percent(KJob *job, unsigned long percent)
KJobTrackerInterface::description
virtual void description(KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2)
KJob
KJob::Unit
Unit
KStatusBarJobTracker
This class implements a job tracker with a widget suited for embedding in a status bar.
Definition: kstatusbarjobtracker.h:31
KStatusBarJobTracker::StatusBarMode
StatusBarMode
Definition: kstatusbarjobtracker.h:36
QPair
QWidget
kabstractwidgetjobtracker.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.

KDEUI

Skip menu "KDEUI"
  • 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