Esempio n. 1
0
FSWatcher::FSWatcher() : QObject() {
    //setup the timer
    timer = new QTimer();
    timer->setSingleShot(TRUE);
    QObject::connect(timer, SIGNAL(timeout()), this, SLOT(checkFS()));
}
Esempio n. 2
0
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
}
Esempio n. 3
0
void FATFileSystem::setClusterSize(dword sectorsPerCluster) {
	clustSize = sectorsPerCluster;
	checkFS();
}
Esempio n. 4
0
void FATFileSystem::setBytesPerSector(dword bytesPerSector) {
	this->bytesPerSector = bytesPerSector;
	checkFS();
}
Esempio n. 5
0
void FATFileSystem::setSize(qword fsSize) {
	maxSize = fsSize;
	checkFS();
}