diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-20 14:33:42 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-20 14:33:42 +0000 |
| commit | 26e319df4379cbabbda61255780cfa6efb9e5183 (patch) | |
| tree | 38b55f1ccbca77c25929dc83cc904c98e74d5140 /src/Option.h | |
| parent | e77e1ec24ddac4c381f612196a01c1fa46dc8454 (diff) | |
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added getOption and getGlobalOption XML-RPC method. getOption
takes GID as a parameter and returns its options as struct.
getGlobalOption takes no parameter and returns global
options. Because global option is used as a template for the
option of newly added downloads, it includes options returned by
getOption.
* src/Option.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
Diffstat (limited to 'src/Option.h')
| -rw-r--r-- | src/Option.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Option.h b/src/Option.h index 3b4751c3..aa198f59 100644 --- a/src/Option.h +++ b/src/Option.h @@ -64,6 +64,16 @@ public: void remove(const std::string& name); void clear(); + + std::map<std::string, std::string>::const_iterator begin() const + { + return table.begin(); + } + + std::map<std::string, std::string>::const_iterator end() const + { + return table.end(); + } }; } // namespace aria2 |
