1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/opencs/view/doc/operations.hpp
2022-09-22 21:35:26 +03:00

41 lines
798 B
C++

#ifndef CSV_DOC_OPERATIONS_H
#define CSV_DOC_OPERATIONS_H
#include <vector>
#include <QDockWidget>
class QVBoxLayout;
namespace CSVDoc
{
class Operation;
class Operations : public QDockWidget
{
Q_OBJECT
QVBoxLayout* mLayout;
std::vector<Operation*> mOperations;
// not implemented
Operations(const Operations&);
Operations& operator=(const Operations&);
public:
Operations();
void setProgress(int current, int max, int type, int threads);
///< Implicitly starts the operation, if it is not running already.
void quitOperation(int type);
///< Calling this function for an operation that is not running is a no-op.
signals:
void abortOperation(int type);
};
}
#endif