~ken-vandine/indicator-transfer/ual_api_change

« back to all changes in this revision

Viewing changes to include/transfer/dm-source.h

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-08-19 19:17:06 UTC
  • mfrom: (29.6.11 add-plugins-fix-model-clear)
  • Revision ID: ci-train-bot@canonical.com-20150819191706-k1jnor3lh4n26zax
Added 'clear' function into the Source interface.
Call 'Source.clear' in the 'Controller.clear_all' function.
Does not keep a separated copy of source model inside of the Controller class.
Changed the return of 'Source.get_model()' to const.
Update unit tests.
Approved by: Charles Kerr, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    void pause(const Transfer::Id& id) override;
45
45
    void resume(const Transfer::Id& id) override;
46
46
    void cancel(const Transfer::Id& id) override;
 
47
    void clear(const Transfer::Id& id) override;
47
48
    void open_app(const Transfer::Id& id) override;
48
 
    std::shared_ptr<MutableModel> get_model() override;
 
49
    const std::shared_ptr<const MutableModel> get_model() override;
49
50
 
50
51
private:
51
52
    class Impl;