~ubuntu-branches/ubuntu/wily/aria2/wily-proposed

« back to all changes in this revision

Viewing changes to src/BtStopDownloadCommand.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Patrick Ruckstuhl
  • Date: 2013-09-22 18:52:14 UTC
  • mfrom: (2.5.19 sid)
  • Revision ID: package-import@ubuntu.com-20130922185214-upeu2ljgeqi7e7oo
Tags: 1.18.0-1
[ Kartik Mistry ]
* New upstream release.
* debian/control:
  + (really) Set priority to optional from extra (Closes: #697659).
  + wrap-and-sort some fields.

[ Patrick Ruckstuhl ]
* debian/rules:
  + Allow parallel building (Closes: #720977)
* debian/tests, debian/control:
  + autopkgtest infrastructure

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#define D_BT_STOP_DOWNLOAD_COMMAND_H
37
37
 
38
38
#include "TimeBasedCommand.h"
39
 
#include "SharedHandle.h"
 
39
 
 
40
#include <memory>
40
41
 
41
42
namespace aria2 {
42
43
 
54
55
 
55
56
  Timer checkPoint_;
56
57
 
57
 
  SharedHandle<BtRuntime> btRuntime_;
 
58
  std::shared_ptr<BtRuntime> btRuntime_;
58
59
 
59
 
  SharedHandle<PieceStorage> pieceStorage_;
 
60
  std::shared_ptr<PieceStorage> pieceStorage_;
60
61
public:
61
62
  BtStopDownloadCommand
62
63
  (cuid_t cuid,
64
65
   DownloadEngine* e,
65
66
   time_t timeout);
66
67
 
67
 
  virtual void preProcess();
68
 
 
69
 
  virtual void process();
70
 
 
71
 
  void setBtRuntime(const SharedHandle<BtRuntime>& btRuntime)
 
68
  virtual void preProcess() CXX11_OVERRIDE;
 
69
 
 
70
  virtual void process() CXX11_OVERRIDE;
 
71
 
 
72
  void setBtRuntime(const std::shared_ptr<BtRuntime>& btRuntime)
72
73
  {
73
74
    btRuntime_ = btRuntime;
74
75
  }
75
76
 
76
 
  void setPieceStorage(const SharedHandle<PieceStorage>& pieceStorage)
 
77
  void setPieceStorage(const std::shared_ptr<PieceStorage>& pieceStorage)
77
78
  {
78
79
    pieceStorage_ = pieceStorage;
79
80
  }