~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to kplato/kptbuiltinschedulerplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "kplato_export.h"
24
24
#include "kptschedulerplugin.h"
25
25
 
 
26
#include "kptschedule.h"
 
27
 
 
28
#include <KoXmlReader.h>
 
29
 
 
30
#include <QThread>
 
31
#include <QMutex>
 
32
#include <QTimer>
 
33
 
 
34
 
 
35
class KLocale;
 
36
 
26
37
 
27
38
namespace KPlato
28
39
{
29
40
 
 
41
class KPlatoScheduler;
30
42
class Project;
31
43
class ScheduleManager;
32
 
 
 
44
class Node;
 
45
class XMLLoaderObject;
 
46
 
33
47
class KPLATO_EXPORT BuiltinSchedulerPlugin : public SchedulerPlugin
34
48
{
35
49
    Q_OBJECT
39
53
 
40
54
    /// Calculate the project
41
55
    virtual void calculate( Project &project, ScheduleManager *sm, bool nothread = false );
 
56
 
 
57
signals:
 
58
    void sigCalculationStarted( Project*, ScheduleManager* );
 
59
    void sigCalculationFinished( Project*, ScheduleManager* );
 
60
    void maxProgress( int, ScheduleManager* );
 
61
    void sigProgress( int, ScheduleManager* );
 
62
 
 
63
protected slots:
 
64
    void slotStarted( SchedulerThread *job );
 
65
    void slotFinished( SchedulerThread *job );
 
66
};
 
67
 
 
68
 
 
69
class KPlatoScheduler : public SchedulerThread
 
70
{
 
71
    Q_OBJECT
 
72
 
 
73
public:
 
74
    KPlatoScheduler( Project *project, ScheduleManager *sm, QObject *parent = 0 );
 
75
    ~KPlatoScheduler();
 
76
 
 
77
    KLocale *locale() const;
 
78
 
 
79
public slots:
 
80
    /// Stop scheduling.
 
81
    virtual void stopScheduling();
 
82
    /// Halt scheduling
 
83
    virtual void haltScheduling() { m_haltScheduling = true; stopScheduling(); }
 
84
 
 
85
protected:
 
86
    void run();
 
87
 
42
88
};
43
89
 
44
90
} //namespace KPlato