| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 | /* <!-- copyright *//* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL.  If you modify * file(s) with this exception, you may extend this exception to your * version of the file(s), but you are not obligated to do so.  If you * do not wish to do so, delete this exception statement from your * version.  If you delete this exception statement from all source * files in the program, then also delete it here. *//* copyright --> */#ifndef _D_PREFS_H_#define _D_PREFS_H_#include "common.h"#include <string>namespace aria2 {/** * Constants */extern const std::string V_TRUE;extern const std::string V_FALSE;extern const std::string V_NONE;extern const std::string V_MEM;extern const std::string V_ALL;/** * General preferences */// values: 1*digitextern const std::string PREF_RETRY_WAIT;// values: 1*digitextern const std::string PREF_TIMEOUT;// values: 1*digitextern const std::string PREF_DNS_TIMEOUT;// values: 1*digitextern const std::string PREF_CONNECT_TIMEOUT;// values: 1*digitextern const std::string PREF_MAX_TRIES;// values: 1*digitextern const std::string PREF_MIN_SEGMENT_SIZE;// values: 1*digitextern const std::string PREF_AUTO_SAVE_INTERVAL;// values: true | falseextern const std::string PREF_STDOUT_LOG;// values: a string that your file system recognizes as a file name.extern const std::string PREF_LOG;// values: a string that your file system recognizes as a directory.extern const std::string PREF_DIR;// values: a string that your file system recognizes as a file name.extern const std::string PREF_OUT;// values: 1*digitextern const std::string PREF_SPLIT;// value: true | falseextern const std::string PREF_DAEMON;// value: a stringextern const std::string PREF_REFERER;// value: 1*digitextern const std::string PREF_LOWEST_SPEED_LIMIT;// value: 1*digitextern const std::string PREF_SEGMENT_SIZE;// value: 1*digitextern const std::string PREF_MAX_DOWNLOAD_LIMIT;// value: 1*digitextern const std::string PREF_STARTUP_IDLE_TIME;// value: prealloc | noneextern const std::string PREF_FILE_ALLOCATION;extern const std::string V_PREALLOC;#// value: 1*digitextern const std::string PREF_NO_FILE_ALLOCATION_LIMIT;// value: true | falseextern const std::string PREF_ALLOW_OVERWRITE;// value: true | falseextern const std::string PREF_REALTIME_CHUNK_CHECKSUM;// value: true | falseextern const std::string PREF_CHECK_INTEGRITY;// value: string that your file system recognizes as a file name.extern const std::string PREF_NETRC_PATH;// value:extern const std::string PREF_CONTINUE;// value:extern const std::string PREF_NO_NETRC;// value: 1*digitextern const std::string PREF_MAX_DOWNLOADS;// value: string that your file system recognizes as a file name.extern const std::string PREF_INPUT_FILE;// value: 1*digitextern const std::string PREF_MAX_CONCURRENT_DOWNLOADS;// value: 1*digitextern const std::string PREF_DIRECT_DOWNLOAD_TIMEOUT;// value: true | falseextern const std::string PREF_FORCE_SEQUENTIAL;// value: true | falseextern const std::string PREF_AUTO_FILE_RENAMING;// value: true | falseextern const std::string PREF_PARAMETERIZED_URI;// value: true | falseextern const std::string PREF_ENABLE_DIRECT_IO;// value: true | falseextern const std::string PREF_ALLOW_PIECE_LENGTH_CHANGE;// value: true | falseextern const std::string PREF_NO_CONF;// value: stringextern const std::string PREF_CONF_PATH;// value: 1*digitextern const std::string PREF_STOP;// value: true | falseextern const std::string PREF_QUIET;// value: true | falseextern const std::string PREF_ASYNC_DNS;// value: 1*digitextern const std::string PREF_SUMMARY_INTERVAL;// value: debug, info, notice, warn, errorextern const std::string PREF_LOG_LEVEL;extern const std::string V_DEBUG;extern const std::string V_INFO;extern const std::string V_NOTICE;extern const std::string V_WARN;extern const std::string V_ERROR;// value: inorder | feedbackextern const std::string PREF_URI_SELECTOR;extern const std::string V_INORDER;extern const std::string V_FEEDBACK;// value: 1*digitextern const std::string PREF_SERVER_STAT_TIMEOUT;// value: string that your file system recognizes as a file name.extern const std::string PREF_SERVER_STAT_IF;// value: string that your file system recognizes as a file name.extern const std::string PREF_SERVER_STAT_OF;// value: true | falseextern const std::string PREF_REMOTE_TIME;// value: 1*digitextern const std::string PREF_MAX_FILE_NOT_FOUND;/** * FTP related preferences */extern const std::string PREF_FTP_USER;extern const std::string PREF_FTP_PASSWD;// values: binary | asciiextern const std::string PREF_FTP_TYPE;extern const std::string V_BINARY;extern const std::string V_ASCII;// values: get | tunnelextern const std::string PREF_FTP_VIA_HTTP_PROXY;extern const std::string V_GET;extern const std::string V_TUNNEL;// values: true | falseextern const std::string PREF_FTP_PASV;// values: true | falseextern const std::string PREF_FTP_REUSE_CONNECTION;/** * HTTP related preferences */extern const std::string PREF_HTTP_USER;extern const std::string PREF_HTTP_PASSWD;// values: basicextern const std::string PREF_HTTP_AUTH_SCHEME;extern const std::string V_BASIC;// values: true | falseextern const std::string PREF_HTTP_AUTH_ENABLED;// values: stringextern const std::string PREF_USER_AGENT;// value: string that your file system recognizes as a file name.extern const std::string PREF_LOAD_COOKIES;// values: true | falseextern const std::string PREF_ENABLE_HTTP_KEEP_ALIVE;// values: true | falseextern const std::string PREF_ENABLE_HTTP_PIPELINING;// value: 1*digitextern const std::string PREF_MAX_HTTP_PIPELINING;// value: stringextern const std::string PREF_HEADER;/**; * HTTP proxy related preferences */extern const std::string PREF_HTTP_PROXY;extern const std::string PREF_HTTP_PROXY_USER;extern const std::string PREF_HTTP_PROXY_PASSWD;extern const std::string PREF_HTTP_PROXY_HOST;extern const std::string PREF_HTTP_PROXY_PORT;// values: get | tunnelextern const std::string PREF_HTTP_PROXY_METHOD;// values: true | falseextern const std::string PREF_HTTP_PROXY_ENABLED;// values: true | falseextern const std::string PREF_HTTP_PROXY_AUTH_ENABLED;/** * BitTorrent related preferences */// values: 1*digitextern const std::string PREF_PEER_CONNECTION_TIMEOUT;// values: 1*digitextern const std::string PREF_BT_TIMEOUT;// values: 1*digitextern const std::string PREF_BT_REQUEST_TIMEOUT;// values: true | falseextern const std::string PREF_SHOW_FILES;// values: true | falseextern const std::string PREF_NO_PREALLOCATION;// values: true | falseextern const std::string PREF_DIRECT_FILE_MAPPING;// values: 1*digitextern const std::string PREF_MAX_UPLOAD_LIMIT;// values: a string that your file system recognizes as a file name.extern const std::string PREF_TORRENT_FILE;// values: 1*digitextern const std::string PREF_LISTEN_PORT;// values: true | false | memextern const std::string PREF_FOLLOW_TORRENT;// values: 1*digit *( (,|-) 1*digit)extern const std::string PREF_SELECT_FILE;// values: 1*digitextern const std::string PREF_SEED_TIME;// values: 1*digit ['.' [ 1*digit ] ]extern const std::string PREF_SEED_RATIO;// values: 1*digitextern const std::string PREF_TRACKER_MAX_TRIES;// values: 1*digitextern const std::string PREF_BT_KEEP_ALIVE_INTERVAL;// values: a string, less than or equals to 20 bytes lengthextern const std::string PREF_PEER_ID_PREFIX;// values: true | falseextern const std::string PREF_ENABLE_PEER_EXCHANGE;// values: true | falseextern const std::string PREF_ENABLE_DHT;// values: 1*digitextern const std::string PREF_DHT_LISTEN_PORT;// values: a stringextern const std::string PREF_DHT_ENTRY_POINT_HOST;// values: 1*digitextern const std::string PREF_DHT_ENTRY_POINT_PORT;// values: a string (hostname:port)extern const std::string PREF_DHT_ENTRY_POINT;// values: a stringextern const std::string PREF_DHT_FILE_PATH;// values: plain | arc4extern const std::string PREF_BT_MIN_CRYPTO_LEVEL;extern const std::string V_PLAIN;extern const std::string V_ARC4;// values:: true | falseextern const std::string PREF_BT_REQUIRE_CRYPTO;// values: 1*digitextern const std::string PREF_BT_REQUEST_PEER_SPEED_LIMIT;// values: 1*digitextern const std::string PREF_BT_MAX_OPEN_FILES;// values: true | falseextern const std::string PREF_BT_SEED_UNVERIFIED;/** * Metalink related preferences */// values: a string that your file system recognizes as a file name.extern const std::string PREF_METALINK_FILE;// values: a stringextern const std::string PREF_METALINK_VERSION;// values: a stringextern const std::string PREF_METALINK_LANGUAGE;// values: a stringextern const std::string PREF_METALINK_OS;// values: a stringextern const std::string PREF_METALINK_LOCATION;// values: 1*digitextern const std::string PREF_METALINK_SERVERS;// values: true | false | memextern const std::string PREF_FOLLOW_METALINK;// values: http | https | ftp | noneextern const std::string PREF_METALINK_PREFERRED_PROTOCOL;extern const std::string V_HTTP;extern const std::string V_HTTPS;extern const std::string V_FTP;// values: true | falseextern const std::string PREF_METALINK_ENABLE_UNIQUE_PROTOCOL;} // namespace aria2#endif // _D_PREFS_H_
 |