~xavi-garcia-mena/keeper/sf-errors-dbus-interface

« back to all changes in this revision

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

  • Committer: Xavi Garcia Mena
  • Date: 2016-09-30 09:27:04 UTC
  • mfrom: (112.1.2 keeper-cancel)
  • Revision ID: xavi.garcia.mena@canonical.com-20160930092704-rs9bo5vutpwsascg
mergeĀ lp:~xavi-garcia-mena/keeper/cancel-feature

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;
188
196
bool KeeperTask::start()
189
197
{
190
198
    Q_D(KeeperTask);
 
199
 
191
200
    return d->start();
192
201
}
193
202
 
194
203
QVariantMap KeeperTask::state() const
195
204
{
196
205
    Q_D(const KeeperTask);
 
206
 
197
207
    return d->state();
198
208
}
199
209
 
201
211
{
202
212
    return KeeperTaskPrivate::get_initial_state(td);
203
213
}
 
214
 
 
215
void KeeperTask::cancel()
 
216
{
 
217
    Q_D(KeeperTask);
 
218
 
 
219
    return d->cancel();
 
220
}