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

« back to all changes in this revision

Viewing changes to src/DHTAutoSaveCommand.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_DHT_AUTO_SAVE_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
 
48
49
private:
49
50
  int family_;
50
51
 
51
 
  SharedHandle<DHTNode> localNode_;
 
52
  std::shared_ptr<DHTNode> localNode_;
52
53
 
53
 
  SharedHandle<DHTRoutingTable> routingTable_;
 
54
  DHTRoutingTable* routingTable_;
54
55
 
55
56
  void save();
56
57
public:
59
60
 
60
61
  virtual ~DHTAutoSaveCommand();
61
62
 
62
 
  virtual void preProcess();
63
 
 
64
 
  virtual void process();
65
 
 
66
 
  void setLocalNode(const SharedHandle<DHTNode>& localNode);
67
 
 
68
 
  void setRoutingTable(const SharedHandle<DHTRoutingTable>& routingTable);
 
63
  virtual void preProcess() CXX11_OVERRIDE;
 
64
 
 
65
  virtual void process() CXX11_OVERRIDE;
 
66
 
 
67
  void setLocalNode(const std::shared_ptr<DHTNode>& localNode);
 
68
 
 
69
  void setRoutingTable(DHTRoutingTable* routingTable);
69
70
};
70
71
 
71
72
} // namespace aria2