chalk

kis_progress_subject.h
1/*
2 * Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3 * 2004 Adrian Page <adrian@pagenet.plus.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef KIS_PROGRESS_SUBJECT_H_
20#define KIS_PROGRESS_SUBJECT_H_
21
22#include <tqobject.h>
23#include <koffice_export.h>
24
25class KRITAUI_EXPORT KisProgressSubject : public TQObject {
26 TQ_OBJECT
27
28
29protected:
30 KisProgressSubject() {};
31 KisProgressSubject(TQObject * parent, const char * name) : TQObject(parent, name) {};
32 virtual ~KisProgressSubject();
33
34public:
35 virtual void cancel() = 0;
36
37signals:
38 void notifyProgress(int percent);
39 void notifyProgressStage(const TQString& stage, int percent);
40 void notifyProgressDone();
41 void notifyProgressError();
42};
43
44#endif // KIS_PROGRESS_SUBJECT_H_
45