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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
AbstractWorkerThread.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef MARBLE_ABSTRACTWORKERTHREAD_H
12 #define MARBLE_ABSTRACTWORKERTHREAD_H
13 
14 // Marble
15 #include "marble_export.h"
16 
17 // Qt
18 #include <QThread>
19 
20 namespace Marble
21 {
22 
23 class AbstractWorkerThreadPrivate;
24 
36 class MARBLE_EXPORT AbstractWorkerThread : public QThread
37 {
38  Q_OBJECT
39 
40  public:
41  explicit AbstractWorkerThread( QObject *parent = 0 );
42  virtual ~AbstractWorkerThread();
43 
44  void ensureRunning();
45 
46  protected:
47  virtual bool workAvailable() = 0;
48  virtual void work() = 0;
49 
50  void run();
51 
52  private:
53  AbstractWorkerThreadPrivate * const d;
54 };
55 
56 }
57 
58 #endif
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
marble_export.h
QThread
Marble::AbstractWorkerThread
The AbstractWorkerThread is a class written for small tasks that have to run multiple times on differ...
Definition: AbstractWorkerThread.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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