~ci-train-bot/keeper/keeper-ubuntu-yakkety-2018

« back to all changes in this revision

Viewing changes to src/service/keeper-task.cpp

  • Committer: Bileto Bot
  • Author(s): Xavi Garcia Mena
  • Date: 2016-09-28 13:45:17 UTC
  • mfrom: (112.1.1 keeper)
  • Revision ID: ci-train-bot@canonical.com-20160928134517-bizvaiuve5w933ch
Cancel feature implemented.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    Q_EMIT(q_ptr->task_state_changed(state));
150
150
}
151
151
 
 
152
void KeeperTaskPrivate::cancel()
 
153
{
 
154
    if (helper_)
 
155
    {
 
156
        helper_->stop();
 
157
    }
 
158
}
 
159
 
152
160
QVariantMap KeeperTaskPrivate::get_initial_state(KeeperTask::TaskData const &td)
153
161
{
154
162
    QVariantMap ret;
201
209
{
202
210
    return KeeperTaskPrivate::get_initial_state(td);
203
211
}
 
212
 
 
213
void KeeperTask::cancel()
 
214
{
 
215
    Q_D(KeeperTask);
 
216
    return d->cancel();
 
217
}