mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 10:49:57 +00:00
46 lines
No EOL
735 B
C++
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);
|
|
} |