1
/* ============================================================
3
* This file is a part of kipi-plugins project
4
* http://www.digikam.org
7
* Description : prints debugging messages about the thread activity in action thread class
9
* Copyright (C) 2011-2012 by A Janardhan Reddy <annapareddyjanardhanreddy at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* ============================================================ */
23
#ifndef DWEAVEROBSERVER_H
24
#define DWEAVEROBSERVER_H
28
#include <threadweaver/Job.h>
29
#include <threadweaver/WeaverObserver.h>
30
#include <threadweaver/State.h>
31
#include <threadweaver/Thread.h>
35
#include "digikam_export.h"
37
using namespace ThreadWeaver;
42
/** DWeaverObserver is a simple wrapper to plug on the ActionThread class to
43
prints debug messages when signals are received.
45
class DIGIKAM_EXPORT DWeaverObserver : public WeaverObserver
51
DWeaverObserver(QObject* const parent=0);
56
void slotWeaverStateChanged(ThreadWeaver::State*);
57
void slotThreadStarted(ThreadWeaver::Thread*);
58
void slotThreadBusy(ThreadWeaver::Thread*, ThreadWeaver::Job*);
59
void slotThreadSuspended(ThreadWeaver::Thread*);
60
void slotThreadExited(ThreadWeaver::Thread*);
63
} // namespace Digikam
65
#endif // DWEAVEROBSERVER_H