mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 04:02:30 +00:00
C++11 fixes.
This commit is contained in:
@@ -71,7 +71,7 @@ CommandScheduler::insert(const std::string& key) {
|
||||
delete *itr;
|
||||
|
||||
*itr = new CommandSchedulerItem(key);
|
||||
(*itr)->set_slot(std::tr1::bind(&CommandScheduler::call_item, this, *itr));
|
||||
(*itr)->slot() = std::tr1::bind(&CommandScheduler::call_item, this, *itr);
|
||||
|
||||
return itr;
|
||||
}
|
||||
|
||||
@@ -51,22 +51,22 @@ public:
|
||||
CommandSchedulerItem(const std::string& key) : m_key(key), m_interval(0) {}
|
||||
~CommandSchedulerItem();
|
||||
|
||||
bool is_queued() const { return m_task.is_queued(); }
|
||||
bool is_queued() const { return m_task.is_queued(); }
|
||||
|
||||
void enable(rak::timer t);
|
||||
void disable();
|
||||
|
||||
const std::string& key() const { return m_key; }
|
||||
torrent::Object& command() { return m_command; }
|
||||
const std::string& key() const { return m_key; }
|
||||
torrent::Object& command() { return m_command; }
|
||||
|
||||
// 'interval()' should in the future return some more dynamic values.
|
||||
uint32_t interval() const { return m_interval; }
|
||||
void set_interval(uint32_t v) { m_interval = v; }
|
||||
uint32_t interval() const { return m_interval; }
|
||||
void set_interval(uint32_t v) { m_interval = v; }
|
||||
|
||||
rak::timer time_scheduled() const { return m_timeScheduled; }
|
||||
rak::timer time_scheduled() const { return m_timeScheduled; }
|
||||
rak::timer next_time_scheduled() const;
|
||||
|
||||
void set_slot(const slot_void& s) { m_task.set_slot(s); }
|
||||
slot_void& slot() { return m_task.slot(); }
|
||||
|
||||
private:
|
||||
CommandSchedulerItem(const CommandSchedulerItem&);
|
||||
|
||||
Reference in New Issue
Block a user