bool MovieController::process(MsgPacket* request, MsgPacket* response) { switch(request->getMsgID()) { case ROBOTV_RECORDINGS_DISKSIZE: return processGetDiskSpace(request, response); case ROBOTV_RECORDINGS_GETLIST: return processGetList(request, response); case ROBOTV_RECORDINGS_RENAME: return processRename(request, response); case ROBOTV_RECORDINGS_DELETE: return processDelete(request, response); case ROBOTV_RECORDINGS_SETPLAYCOUNT: return processSetPlayCount(request, response); case ROBOTV_RECORDINGS_SETPOSITION: return processSetPosition(request, response); case ROBOTV_RECORDINGS_SETURLS: return processSetUrls(request, response); case ROBOTV_RECORDINGS_GETPOSITION: return processGetPosition(request, response); case ROBOTV_RECORDINGS_GETMARKS: return processGetMarks(request, response); case ROBOTV_RECORDINGS_SEARCH: return processSearch(request, response); } return false; }
void KSSearchLine::slotBeginSearch() { m_searchQueue--; if(!m_searchQueue) { processSearch(); } }
bool processSearch(process &currProcess) { bool result = false;; if((currProcess.get_pname() != "") && (currProcess.get_pid() == 0)) //pname set, pid not set, search with pname { #ifdef DEBUG print_string("Using Name Search"); #endif int pid = 0; //will be set in currprocess, can't be done by this function result = processSearch(currProcess.get_pname(), &pid); currProcess.set_pid(pid); } else { #ifdef DEBUG print_string("Using PID Search"); #endif result = processSearch(currProcess.get_pid()); } return result; }
void CoverThread::run() { qDebug() << "INFO: CoverManager -> Running"; if(m_bFullDBSearch) { qDebug() << "INFO: CoverManager -> Full database check"; checkDatabase(); } m_iMax = m_workList.size(); processSearch(); //! Start thread event loop --> makes signals and slots work exec(); qDebug() <<"CoverManager -> Exited"; m_bFullDBSearch = true; m_workList.clear(); }