/trunk/DBViewer/wmithread.h |
---|
4,7 → 4,6 |
#include <QThread> |
#include <QProcess> |
#include <QMutex> |
#include <QDebug> |
class WmiThread : public QThread |
{ |
19,12 → 18,6 |
QByteArray buffer(){return p_buffer;} |
void clearBuffer(){p_buffer.clear();} |
bool isError(){return error;} |
bool isStopped(){ |
mutex.lock(); |
return stopped; |
mutex.unlock(); |
}; |
void setWmiString(QString new_wmi_string){wmi_string = new_wmi_string;} |
private: |
volatile bool stopped; |