FSWatcher::FSWatcher() : QObject() { //setup the timer timer = new QTimer(); timer->setSingleShot(TRUE); QObject::connect(timer, SIGNAL(timeout()), this, SLOT(checkFS())); }
void FSWatcher::start(int ms) { timer->stop(); timer->setInterval(ms); //max time between system checks timer->start(); QTimer::singleShot(2000,this,SLOT(checkFS()) ); //make sure to perform a check when it starts up }
void FATFileSystem::setClusterSize(dword sectorsPerCluster) { clustSize = sectorsPerCluster; checkFS(); }
void FATFileSystem::setBytesPerSector(dword bytesPerSector) { this->bytesPerSector = bytesPerSector; checkFS(); }
void FATFileSystem::setSize(qword fsSize) { maxSize = fsSize; checkFS(); }