Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 241 → Rev 242

/trunk/DBViewer/wmithread.h
4,6 → 4,7
#include <QThread>
#include <QProcess>
#include <QMutex>
#include <QDebug>
 
class WmiThread : public QThread
{
18,11 → 19,17
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;
volatile bool error;
QProcess process;
QProcess process;
QString host;
QString user_name;
QString password;