apo:等待处理的操作抽象出基类。
This commit is contained in:
@@ -361,4 +361,26 @@ void HeatBeat::run()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
WaitThread::WaitThread(QObject* parent) : QThread(parent)
|
||||
{
|
||||
}
|
||||
|
||||
void WaitThread::SetClient(ClientCore* cli)
|
||||
{
|
||||
cli_ = cli;
|
||||
}
|
||||
|
||||
bool WaitThread::IsQuit() const
|
||||
{
|
||||
return isAlreadyInter_;
|
||||
}
|
||||
|
||||
void WaitThread::interrupCheck()
|
||||
{
|
||||
if (!isAlreadyInter_) {
|
||||
isAlreadyInter_ = true;
|
||||
emit sigCheckOver();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user