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

« back to all changes in this revision

Viewing changes to include/helper/helper.h

  • Committer: Xavi Garcia Mena
  • Date: 2016-09-13 08:47:14 UTC
  • mfrom: (103.1.1 keeper-error-failures)
  • Revision ID: xavi.garcia.mena@canonical.com-20160913084714-penzekiboyj4q41l
mergeĀ lp:~xavi-garcia-mena/keeper/helper-finished-state-removed-and-restore-choices-commented

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    Q_DISABLE_COPY(Helper)
38
38
 
39
39
    Q_ENUMS(State)
40
 
    enum class State {NOT_STARTED, STARTED, CANCELLED, FAILED, DATA_COMPLETE, HELPER_FINISHED, COMPLETE};
 
40
    enum class State {NOT_STARTED, STARTED, CANCELLED, FAILED, DATA_COMPLETE, COMPLETE};
41
41
 
42
42
    Q_PROPERTY(Helper::State state READ state NOTIFY state_changed)
43
43
    State state() const __pure;
73
73
protected:
74
74
    Helper(QString const & appid, const clock_func& clock=default_clock, QObject *parent=nullptr);
75
75
    virtual void set_state(State);
 
76
    virtual void on_helper_started();
 
77
    virtual void on_helper_finished();
 
78
    bool is_helper_running() const;
76
79
    void record_data_transferred(qint64 n_bytes);
77
80
 
78
81
private: