SpikeStream Library
0.2
|
00001 #include "SpikeStreamThread.h" 00002 using namespace spikestream; 00003 00005 SpikeStreamThread::SpikeStreamThread() : QThread(){ 00006 } 00007 00008 00010 SpikeStreamThread::~SpikeStreamThread(){ 00011 } 00012 00013 00014 /*----------------------------------------------------------*/ 00015 /*----- PUBLIC METHODS -----*/ 00016 /*----------------------------------------------------------*/ 00017 00019 void SpikeStreamThread::clearError(){ 00020 error = false; 00021 errorMessage = ""; 00022 } 00023 00024 00026 QString SpikeStreamThread::getErrorMessage(){ 00027 return errorMessage; 00028 } 00029 00031 bool SpikeStreamThread::isError() { 00032 return error; 00033 } 00034 00035 00037 void SpikeStreamThread::stop() { 00038 stopThread = true; 00039 } 00040 00041 00042 /*----------------------------------------------------------*/ 00043 /*----- PROTECTED METHODS -----*/ 00044 /*----------------------------------------------------------*/ 00045 00047 void SpikeStreamThread::setError(const QString& errorMessage){ 00048 error = true; 00049 this->errorMessage = errorMessage; 00050 stopThread = true; 00051 } 00052