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

libs/libkdcraw/libkdcraw

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libkdcraw
  • libkdcraw
ractionthreadbase_p.h
Go to the documentation of this file.
1 
28 #ifndef RACTION_THREAD_BASE_P_H
29 #define RACTION_THREAD_BASE_P_H
30 
31 // Qt includes
32 
33 #include <QWaitCondition>
34 #include <QMutex>
35 #include <QList>
36 
37 // KDE includes
38 
39 #include <threadweaver/Job.h>
40 #include <threadweaver/WeaverObserver.h>
41 #include <threadweaver/State.h>
42 #include <threadweaver/Thread.h>
43 
44 // Local includes
45 
46 #include "ractionthreadbase.h"
47 
48 namespace ThreadWeaver
49 {
50  class Weaver;
51 }
52 
53 using namespace ThreadWeaver;
54 
55 namespace KDcrawIface
56 {
57 
61 class RWeaverObserver : public WeaverObserver
62 {
63  Q_OBJECT
64 
65 public:
66 
67  RWeaverObserver(QObject* const parent=0);
68  ~RWeaverObserver();
69 
70 protected Q_SLOTS:
71 
72  void slotWeaverStateChanged(ThreadWeaver::State*);
73  void slotThreadStarted(ThreadWeaver::Thread*);
74  void slotThreadBusy(ThreadWeaver::Thread*, ThreadWeaver::Job*);
75  void slotThreadSuspended(ThreadWeaver::Thread*);
76  void slotThreadExited(ThreadWeaver::Thread*);
77 };
78 
79 // ----------------------------------------------------------------------------------
80 
81 class RActionThreadBase::Private
82 {
83 public:
84 
85  Private()
86  {
87  running = false;
88  weaverRunning = false;
89  weaver = 0;
90  log = 0;
91  }
92 
93  volatile bool running;
94  volatile bool weaverRunning;
95 
96  QWaitCondition condVarJobs;
97  QMutex mutex;
98  QList<JobCollection*> todo;
99 
100  Weaver* weaver;
101  RWeaverObserver* log;
102 };
103 
104 } // namespace KDcrawIface
105 
106 #endif // RACTION_THREAD_BASE_P_H
QMutex
KDcrawIface::RActionThreadBase::Private::todo
QList< JobCollection * > todo
Definition: ractionthreadbase_p.h:98
KDcrawIface::RActionThreadBase::Private::weaver
Weaver * weaver
Definition: ractionthreadbase_p.h:100
KDcrawIface::RActionThreadBase::Private::running
volatile bool running
Definition: ractionthreadbase_p.h:93
QObject
QList< JobCollection * >
KDcrawIface::RActionThreadBase::Private::weaverRunning
volatile bool weaverRunning
Definition: ractionthreadbase_p.h:94
ractionthreadbase.h
===========================================================This file is a part of digiKam project htt...
KDcrawIface::RActionThreadBase::Private::mutex
QMutex mutex
Definition: ractionthreadbase_p.h:97
KDcrawIface::RActionThreadBase::Private::condVarJobs
QWaitCondition condVarJobs
Definition: ractionthreadbase_p.h:96
KDcrawIface::RActionThreadBase::Private::Private
Private()
Definition: ractionthreadbase_p.h:85
KDcrawIface::RWeaverObserver
RWeaverObserver is a simple wrapper to plug on the ActionThread class to prints debug messages when s...
Definition: ractionthreadbase_p.h:61
KDcrawIface::RActionThreadBase::Private
Definition: ractionthreadbase_p.h:81
QWaitCondition
WeaverObserver
KDcrawIface::RActionThreadBase::Private::log
RWeaverObserver * log
Definition: ractionthreadbase_p.h:101
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkdcraw/libkdcraw

Skip menu "libs/libkdcraw/libkdcraw"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

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