prefs.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /* <!-- copyright */
  2. /*
  3. * aria2 - a simple utility for downloading files faster
  4. *
  5. * Copyright (C) 2006 Tatsuhiro Tsujikawa
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. /* copyright --> */
  22. #ifndef _D_PREFS_H_
  23. #define _D_PREFS_H_
  24. #include "common.h"
  25. /**
  26. * Constants
  27. */
  28. #define V_TRUE "true"
  29. #define V_FALSE "false"
  30. /**
  31. * General preferences
  32. */
  33. // values: 1*digit
  34. #define PREF_RETRY_WAIT "retry_wait"
  35. // values: 1*digit
  36. #define PREF_TIMEOUT "timeout"
  37. // values: 1*digit
  38. #define PREF_MAX_TRIES "max_try"
  39. // values: 1*digit
  40. #define PREF_MIN_SEGMENT_SIZE "min_segment_size"
  41. // values: 1*digit
  42. #define PREF_AUTO_SAVE_INTERVAL "auto_save_interval"
  43. // values: true | false
  44. #define PREF_STDOUT_LOG "stdout_log"
  45. // values: a string that your file system recognizes as a file name.
  46. #define PREF_LOG "log"
  47. // values: a string that your file system recognizes as a directory.
  48. #define PREF_DIR "dir"
  49. // values: a string that your file system recognizes as a file name.
  50. #define PREF_OUT "out"
  51. // values: 1*digit
  52. #define PREF_SPLIT "split"
  53. // value: true | false
  54. #define PREF_DAEMON "daemon"
  55. // value: a string
  56. #define PREF_REFERER "referer"
  57. // value' 1*digit
  58. #define PREF_LOWEST_SPEED_LIMIT "lowest_speed_limit"
  59. /**
  60. * FTP related preferences
  61. */
  62. #define PREF_FTP_USER "ftp_user"
  63. #define PREF_FTP_PASSWD "ftp_passwd"
  64. // values: binary | ascii
  65. #define PREF_FTP_TYPE "ftp_type"
  66. # define V_BINARY "binary"
  67. # define V_ASCII "ascii"
  68. // values: get | tunnel
  69. #define PREF_FTP_VIA_HTTP_PROXY "ftp_via_http_proxy"
  70. # define V_GET "get"
  71. # define V_TUNNEL "tunnel"
  72. // values: true | false
  73. #define PREF_FTP_PASV_ENABLED "ftp_pasv_enabled"
  74. /**
  75. * HTTP related preferences
  76. */
  77. #define PREF_HTTP_USER "http_user"
  78. #define PREF_HTTP_PASSWD "http_passwd"
  79. // values: basic
  80. #define PREF_HTTP_AUTH_SCHEME "http_auth_scheme"
  81. # define V_BASIC "basic"
  82. // values: true | false
  83. #define PREF_HTTP_AUTH_ENABLED "http_auth_enabled"
  84. /**
  85. * HTTP proxy related preferences
  86. */
  87. #define PREF_HTTP_PROXY_USER "http_proxy_user"
  88. #define PREF_HTTP_PROXY_PASSWD "http_proxy_passwd"
  89. #define PREF_HTTP_PROXY_HOST "http_proxy_host"
  90. #define PREF_HTTP_PROXY_PORT "http_proxy_port"
  91. // values: get | tunnel
  92. #define PREF_HTTP_PROXY_METHOD "http_proxy_method"
  93. // values: true | false
  94. #define PREF_HTTP_PROXY_ENABLED "http_proxy_enabled"
  95. // values: true | false
  96. #define PREF_HTTP_PROXY_AUTH_ENABLED "http_proxy_auth_enabled"
  97. /**
  98. * BitTorrent related preferences
  99. */
  100. // values: 1*digit
  101. #define PREF_PEER_CONNECTION_TIMEOUT "peer_connection_timeout"
  102. // values: true | false
  103. #define PREF_SHOW_FILES "show_files"
  104. // values: true | false
  105. #define PREF_NO_PREALLOCATION "no_preallocation"
  106. // values: true | false
  107. #define PREF_DIRECT_FILE_MAPPING "direct_file_mapping"
  108. // values: 1*digit
  109. #define PREF_UPLOAD_LIMIT "upload_limit"
  110. // values: a string that your file system recognizes as a file name.
  111. #define PREF_TORRENT_FILE "torrent_file"
  112. // values: 1*digit
  113. #define PREF_LISTEN_PORT "listen_port"
  114. // values: true | false
  115. #define PREF_FOLLOW_TORRENT "follow_torrent"
  116. // values: 1*digit *( (,|-) 1*digit)
  117. #define PREF_SELECT_FILE "select_file"
  118. /**
  119. * Metalink related preferences
  120. */
  121. // values: a string that your file system recognizes as a file name.
  122. #define PREF_METALINK_FILE "metalink_file"
  123. // values: a string
  124. #define PREF_METALINK_VERSION "metalink_version"
  125. // values: a string
  126. #define PREF_METALINK_LANGUAGE "metalink_language"
  127. // values: a string
  128. #define PREF_METALINK_OS "metalink_os"
  129. // values: 1*digit
  130. #define PREF_METALINK_SERVERS "metalink_servers"
  131. // values: true | false
  132. #define PREF_FOLLOW_METALINK "follow_metalink"
  133. #endif // _D_PREFS_H_