1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 10:49:57 +00:00
openmw-tes3mp/apps/opencs/model/tools/tools.cpp
2012-12-08 14:44:03 +01:00

46 lines
No EOL
735 B
C++

#include "tools.hpp"
#include <QThreadPool>
#include "verifier.hpp"
#include "../doc/state.hpp"
CSMTools::Verifier *CSMTools::Tools::getVerifier()
{
if (!mVerifier)
{
mVerifier = new Verifier;
connect (mVerifier, SIGNAL (progress (int, int, int)), this, SIGNAL (progress (int, int, int)));
connect (mVerifier, SIGNAL (finished()), this, SLOT (verifierDone()));
}
return mVerifier;
}
CSMTools::Tools::Tools() : mVerifier (0)
{
}
CSMTools::Tools::~Tools()
{
delete mVerifier;
}
void CSMTools::Tools::runVerifier()
{
getVerifier()->start();
}
void CSMTools::Tools::abortOperation (int type)
{
}
void CSMTools::Tools::verifierDone()
{
emit done (CSMDoc::State_Verifying);
}