Commit 49bf8790 authored by Jan Möbius's avatar Jan Möbius

Added missing file

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8809 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8806f79d
#ifndef PROGRESSEMITTER_HH
#define PROGRESSEMITTER_HH
#include <QObject>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
class ProgressEmitter : public QObject
{
Q_OBJECT
signals:
void signalJobState(QString _jobId, int _value);
void changeDescription(QString _jobId, QString _description);
public:
ProgressEmitter(QString _jobId) : jobId_(_jobId) {}
void sendProgressSignal(double _percent) {
emit signalJobState(jobId_, (int)_percent);
// std::cerr << "Job State for " << jobId_.toStdString() << ": " << (int)_percent << "%" << std::endl;
}
void sendChangeDescriptionSignal(QString _description) {
emit changeDescription(jobId_, _description);
// std::cerr << "Job description for " << jobId_.toStdString() << ": '" << _description.toStdString() << "'" << std::endl;
}
private:
QString jobId_;
};
#endif //PROGRESSEMITTER_HH
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment