refactor: change some ResourceAPI from NetJob to Task
This makes it easier to create resource apis that aren't network-based. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
e62e1d9701
commit
ba677a8cb7
17 changed files with 75 additions and 67 deletions
|
@ -225,7 +225,7 @@ void ResourceModel::clearData()
|
|||
endResetModel();
|
||||
}
|
||||
|
||||
void ResourceModel::runSearchJob(NetJob::Ptr ptr)
|
||||
void ResourceModel::runSearchJob(Task::Ptr ptr)
|
||||
{
|
||||
m_current_search_job = ptr;
|
||||
m_current_search_job->start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue