mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 15:42:30 +00:00
* Allow clock time for command scheduler interval and start time using
the format "hh:mm:ss". git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@627 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -46,6 +46,7 @@ class CommandSchedulerItem;
|
||||
class CommandScheduler : public std::vector<CommandSchedulerItem*> {
|
||||
public:
|
||||
typedef rak::function1<void, const std::string&> SlotString;
|
||||
typedef std::pair<int, int> Time;
|
||||
typedef std::vector<CommandSchedulerItem*> base_type;
|
||||
|
||||
using base_type::value_type;
|
||||
@@ -67,6 +68,11 @@ public:
|
||||
iterator insert(const std::string& key);
|
||||
void erase(iterator itr);
|
||||
|
||||
static uint32_t parse_absolute(const char* str);
|
||||
static uint32_t parse_interval(const char* str);
|
||||
|
||||
static Time parse_time(const char* str);
|
||||
|
||||
private:
|
||||
void call_item(value_type item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user