int CCollector::InitWebPage() { CTask* task = m_tasks.GetFirstTask(); string url = task->GetUrl(); m_webPageMgr.CreateWebPage(url); task->CreateJob(JOB_STATUS_CRAWL); return 0; }
int CCollector::AddJob(int jobStatus) { CTask* task = m_tasks.GetFirstTask(); task->CreateJob(jobStatus); return 0; }