~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/libs/threads/dweaverobserver.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-09-27 21:41:30 UTC
  • mfrom: (1.2.43)
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20120927214130-i8v3ufr21nesp29i
Tags: 4:3.0.0~beta1a-1
* New upstream release

* Fix "wrongly conflicts phonon-backend-vlc" dropped (Closes: #688142)
* debian/watch include download.kde.org

* digikam 3.0.0 uses features from unreleased kdegraphics >=4.10 & ships 
a private version of the kdegraphics libs - this is not the Debian way :-(
* Unsatisfactory Conflicts: libkipi8, libkexiv2-10, libkdcraw20, libksane0
* Suspend digikam-dbg >130Mb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of kipi-plugins project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2011-12-28
 
7
 * Description : prints debugging messages about the thread activity in action thread class
 
8
 *
 
9
 * Copyright (C) 2011-2012 by A Janardhan Reddy <annapareddyjanardhanreddy at gmail dot com>
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
21
 * ============================================================ */
 
22
 
 
23
#ifndef DWEAVEROBSERVER_H
 
24
#define DWEAVEROBSERVER_H
 
25
 
 
26
// KDE includes
 
27
 
 
28
#include <threadweaver/Job.h>
 
29
#include <threadweaver/WeaverObserver.h>
 
30
#include <threadweaver/State.h>
 
31
#include <threadweaver/Thread.h>
 
32
 
 
33
// Local includes
 
34
 
 
35
#include "digikam_export.h"
 
36
 
 
37
using namespace ThreadWeaver;
 
38
 
 
39
namespace Digikam
 
40
{
 
41
 
 
42
/** DWeaverObserver is a simple wrapper to plug on the ActionThread class to
 
43
    prints debug messages when signals are received.
 
44
*/
 
45
class DIGIKAM_EXPORT DWeaverObserver : public WeaverObserver
 
46
{
 
47
    Q_OBJECT
 
48
 
 
49
public:
 
50
 
 
51
    DWeaverObserver(QObject* const parent=0);
 
52
    ~DWeaverObserver();
 
53
 
 
54
protected Q_SLOTS:
 
55
 
 
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*);
 
61
};
 
62
 
 
63
}  // namespace Digikam
 
64
 
 
65
#endif // DWEAVEROBSERVER_H