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

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • part
jobtracker.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
5  * Copyright (C) 2008 Harald Hvaal <haraldhv@stud.ntnu.no>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 #ifndef JOBTRACKER_H
23 #define JOBTRACKER_H
24 
25 #include <QFrame>
26 #include <kabstractwidgetjobtracker.h>
27 #include "ui_jobtracker.h"
28 
29 class KJob;
30 
31 class JobTrackerWidget: public QFrame, public Ui::JobTrackerWidget
32 {
33  Q_OBJECT
34 
35 public:
36  JobTrackerWidget(QWidget *parent = 0);
37 };
38 
39 class JobTracker: public KAbstractWidgetJobTracker
40 {
41  Q_OBJECT
42 
43 public:
44  JobTracker(QWidget *parent = 0);
45  ~JobTracker();
46 
47  virtual QWidget *widget(KJob *);
48 
49 public slots:
50  virtual void registerJob(KJob *job);
51  virtual void unregisterJob(KJob *job);
52 
53 protected slots:
54  virtual void description(KJob *job, const QString &title, const QPair< QString, QString > &f1, const QPair< QString, QString > &f2);
55  virtual void infoMessage(KJob *job, const QString &plain, const QString &rich);
56  virtual void warning(KJob *job, const QString &plain, const QString &rich);
57 
58  virtual void percent(KJob *job, unsigned long percent);
59 
60 private slots:
61  void resetUi();
62 
63 private:
64  JobTrackerWidget *m_ui;
65  QSet<KJob*> m_jobs;
66 };
67 
68 #endif // JOBTRACKER_H
QWidget
JobTracker::warning
virtual void warning(KJob *job, const QString &plain, const QString &rich)
Definition: jobtracker.cpp:64
KAbstractWidgetJobTracker
JobTracker::~JobTracker
~JobTracker()
Definition: jobtracker.cpp:39
JobTrackerWidget::JobTrackerWidget
JobTrackerWidget(QWidget *parent=0)
Definition: jobtracker.cpp:26
JobTracker::JobTracker
JobTracker(QWidget *parent=0)
Definition: jobtracker.cpp:32
JobTracker::widget
virtual QWidget * widget(KJob *)
Definition: jobtracker.cpp:104
JobTracker::registerJob
virtual void registerJob(KJob *job)
Definition: jobtracker.cpp:71
QSet< KJob * >
QString
QPair
QFrame
JobTracker::unregisterJob
virtual void unregisterJob(KJob *job)
Definition: jobtracker.cpp:88
JobTracker::description
virtual void description(KJob *job, const QString &title, const QPair< QString, QString > &f1, const QPair< QString, QString > &f2)
Definition: jobtracker.cpp:47
JobTracker::infoMessage
virtual void infoMessage(KJob *job, const QString &plain, const QString &rich)
Definition: jobtracker.cpp:56
JobTracker::percent
virtual void percent(KJob *job, unsigned long percent)
Definition: jobtracker.cpp:80
JobTrackerWidget
Definition: jobtracker.h:31
JobTracker
Definition: jobtracker.h:39
QObject::parent
QObject * parent() const
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



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