mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:53:55 +00:00
55dd17c27c
types for existing operations (save, verify, compile and search), with a default for future / undefined ops.
35 lines
629 B
C++
35 lines
629 B
C++
#ifndef CSV_DOC_OPERATION_H
|
|
#define CSV_DOC_OPERATION_H
|
|
|
|
#include <QProgressBar>
|
|
|
|
namespace CSVDoc
|
|
{
|
|
class Operation : public QProgressBar
|
|
{
|
|
Q_OBJECT
|
|
|
|
int mType;
|
|
bool mStalling;
|
|
|
|
// not implemented
|
|
Operation (const Operation&);
|
|
Operation& operator= (const Operation&);
|
|
|
|
void updateLabel (int threads = -1);
|
|
|
|
public:
|
|
|
|
Operation (int type);
|
|
|
|
void setProgress (int current, int max, int threads);
|
|
|
|
int getType() const;
|
|
|
|
private:
|
|
|
|
void setBarColor (int type);
|
|
};
|
|
}
|
|
|
|
#endif
|