FutureWatcherInterface.h 455 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef FUTUREWATCHERINTERFACE_H
#define FUTUREWATCHERINTERFACE_H

#include <QObject>

namespace nemo_interface {

class FutureWatcherInterface : public QObject {
  Q_OBJECT
public:
  FutureWatcherInterface(QObject *parent = nullptr);

  virtual void waitForFinished() = 0;
  virtual bool isStarted() = 0;
  virtual bool isFinished() = 0;

signals:
  void finished();
  void started();
};
} // namespace nemo_interface

#endif // FUTUREWATCHERINTERFACE_H