summaryrefslogtreecommitdiff
path: root/src/OptionHandlerImpl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Handle OptionHandlers as raw pointerTatsuhiro Tsujikawa2012-09-271-12/+27
|
* Use nothrow version of parseInt, parseUInt and parseLLIntTatsuhiro Tsujikawa2012-09-271-1/+6
|
* Rewritten help tags and various internal flag handling in OptionHandlerTatsuhiro Tsujikawa2012-09-231-2/+2
| | | | | Now help tags are defined as enum values to avoid vector of strings. The internal flags are represented by bitmask to shrink size.
* Use PRId64 for int64_t format specifierTatsuhiro Tsujikawa2012-06-251-7/+4
|
* Use short form of util::startsWith and util::endsWithTatsuhiro Tsujikawa2012-01-111-3/+3
|
* Removed static const char[] as much as possible.Tatsuhiro Tsujikawa2012-01-111-9/+3
| | | | | Provided convenient functions for streq, strieq, startsWith, istartsWith, endsWith, iendsWith to support this move.
* Proxy URI is now constructed in getProxyUri().Tatsuhiro Tsujikawa2011-11-131-104/+0
| | | | | | | | | | The previous implementation constructs proxy URI in OptionHandler but it cannot handle with the situation when user, password and proxy URI is given various order. Now we just set rules: username set in --*-proxy-user overrides username in --*-proxy option, no matter in any order username, password and proxy URI are parsed. Likewise, password set in --*--proxy-passwd overrides password in --*-proxy option.
* Use fmt instead of util::itosTatsuhiro Tsujikawa2011-11-131-11/+10
|
* Use fmt instead of using snprintf directlyTatsuhiro Tsujikawa2011-11-121-6/+2
|
* Removed strappendTatsuhiro Tsujikawa2011-11-121-10/+20
|
* Rewritten parse*IntTatsuhiro Tsujikawa2011-11-121-2/+1
|
* Made const char[] staticTatsuhiro Tsujikawa2011-11-111-5/+5
|
* Made Pref::k_, OptionHandler::getName() and getDescription() const char*.Tatsuhiro Tsujikawa2011-11-111-32/+33
|
* Removed util::endsWith(a, b). Added util::iendsWith()Tatsuhiro Tsujikawa2011-11-051-2/+6
|
* Removed util::startsWith(a, b)Tatsuhiro Tsujikawa2011-11-041-3/+10
|
* util::divide now takes iterators as arguments.Tatsuhiro Tsujikawa2011-11-031-5/+7
|
* Changed parse*Int functions so that it accepts iterators.Tatsuhiro Tsujikawa2011-11-031-1/+1
|
* Use SegList<int> instead of IntSequence.Tatsuhiro Tsujikawa2011-10-301-3/+6
|
* Options for -i list is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-291-0/+10
| | | | | | | | | Options for -i list, except for PREF_CHECKSUM, PREF_DIR, PREF_DRY_RUN, PREF_INDEX_OUT, PREF_LOWEST_SPEED_LIMIT, PREF_MAX_CONNECTION_PER_SERVER, PREF_METALINK_BASE_URI, PREF_OUT, PREF_PIECE_LENGTH, PREF_SELECT_FILE, PREF_SPLIT, PREF_PAUSE and PREF_PARAMETERIZED_URI, are available in aria2.changeOption if the download is waiting state, including paused downloads.
* Fixed compile error without message digest support.Tatsuhiro Tsujikawa2011-10-251-0/+2
|
* Renamed NameMatchOptionHandler as AbstractOptionHandler.Tatsuhiro Tsujikawa2011-10-221-36/+36
|
* Removed OptionHandler::{get,set}OptionID() and canHandle().Tatsuhiro Tsujikawa2011-10-221-15/+0
| | | | Removed typedefs in OptionHandler and NameMatchOptionHandler.
* Renamed OptionHandler::setGlobalChangeOption() as setChangeGlobalOption().Tatsuhiro Tsujikawa2011-10-221-4/+4
|
* OptionHandler now knows its option can be used in -i list option,Tatsuhiro Tsujikawa2011-10-221-0/+40
| | | | | | changeable in aria2.changeOption or aria2.changeGlobalOption. OptionHandler also now its option is cumulative.
* Rewritten OptionParser. Made it simpler and efficient.Tatsuhiro Tsujikawa2011-10-221-63/+5
|
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-71/+71
| | | | | Now preference key is Pref instead of just string. It has Option ID. Now option lookup and setting takes O(1) using Pref object.
* Rewritten HttpProxyOptionHandler using uri::parse().Tatsuhiro Tsujikawa2011-10-181-22/+10
| | | | | Removed test case where username is empty and resulted URI has empty username in URI.
* HttpProxyOptionHandler: Enclose hostname with square brackets ifTatsuhiro Tsujikawa2011-10-151-1/+6
| | | | hostname is IPv6 numeric address.
* Added --checksum option.Tatsuhiro Tsujikawa2011-08-231-0/+30
| | | | | | | | Added --checksum=TYPE=DIGEST option. This option sets checksum. TYPE is hash type. The supported hash type is listed in "Hash Algorithms" in "aria2c -v". DIGEST is hex digest. For example, setting sha-1 digest looks like this: sha-1=0192ba11326fe2298c8cb4de616f4d4140213838 This option applies only to HTTP(S)/FTP downloads.
* Deprecated --enable-direct-io option.Tatsuhiro Tsujikawa2011-07-161-7/+11
| | | | | Modified DeprecatedOptionHandler so that it can have replacing OptionHandler.
* Erase user and password specified in command-line from argv.Tatsuhiro Tsujikawa2011-04-221-0/+17
| | | | The user and password is masked with '*'.
* Deprecated --enable-xml-rpc and --xml-rpc-* option. IntroducedTatsuhiro Tsujikawa2011-03-141-0/+86
| | | | | | | --enable-rpc and --rpc-* option instead. --enable-xml-rpc and --xml-rpc-* option can be used but warning message will be shown. The help tag #xml-rpc was replaced with #rpc.
* Accept https:// and ftp:// in proxy options and environment variables.Tatsuhiro Tsujikawa2011-02-071-2/+5
|
* 2010-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-241-1/+1
| | | | | | | Added white space after ',' when enumerating valid parameters. * src/OptionHandlerImpl.cc
* 2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-231-3/+7
| | | | | | | | | | | | | Cleaned up Possible Values in usage help. More than 2 values are delimited by ", ". * src/NameMatchOptionHandler.h * src/OptionHandler.cc * src/OptionHandler.h * src/OptionHandlerFactory.cc * src/OptionHandlerImpl.cc * test/OptionHandlerTest.cc
* 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-201-18/+14
| | | | | | Replaced StringFormat with fmt
* 2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-141-0/+728
Added .cc file for classes/structs that only provided by header file. Defined non-POD classes' ctor, dtor in .cc file. Moved implementation code in header file to .cc file for major classes/strucsts.