ALSoundProcessing::~ALSoundProcessing() { stiffness = 0.0f; time = 1.0f; motion.stiffnessInterpolation(jointName1, stiffness, time); motion.stiffnessInterpolation(jointName2, stiffness, time); ttsProxy.say("Detection Stop"); stopDetection(); }
swDetect::SWFaceDetection_thread::~SWFaceDetection_thread() { if(m_bListening) { stopDetection(); } deleteAndNullify(m_pFaceDetection); }
void WorkingDetector::checkIdle() { long idlesecs = idleTime(); if (idlesecs <= 1) { stopDetection(); _lastDetected = new DateTime(); connect(_timer, SIGNAL(timeout()), this, SLOT(notify())); _timer->start(2*60*1000);//Time to wait until notify } }
void UdpDetectorDialog::startDetection() { list->clear(); detect_button->setEnabled(false); detector = new UdpDetector; connect(detector, SIGNAL(detected(QString, QString)), this, SLOT(addServerAddress(QString, QString))); QTimer::singleShot(2000, this, SLOT(stopDetection())); detector->detect(); }
// // stopActivity: stop an activity // // Synopsis: // void stopActivity(msg, stopAll); // Msg *msg; ptr to message // bool stopAll; stop all activities // Returns: // Nothing. // Description: // Stops either the specified activity or any activity // which is currently active. // Notes: // Sends messages to the collection tasks. // Note that this task never kills a collecting // activity directly; instead, it sends // messages to the individual collection subtasks // instructing them to kill the task and report back // that it has been completed. // void DetectionTask::stopActivity(Msg *msg, bool stopAll) { // if no activity is detecting, ignore the message if (!activity || (!stopAll && activity->getActivityId() != msg->getActivityId())) { Msg *cMsg = msgList->alloc((DxMessageCode) ActivityStopped, msg->getActivityId()); cMsg->setUnit((sonata_lib::Unit) UnitDetect); controlQ->send(cMsg); return; } // stop both of the detectors (only one can be running, // but we don't know which one) stopDetection(); }
ALSoundProcessing::~ALSoundProcessing() { stopDetection(); }