prefs.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. /**
  44. * FTP related preferences
  45. */
  46. #define PREF_FTP_USER "ftp_user"
  47. #define PREF_FTP_PASSWD "ftp_passwd"
  48. // values: binary | ascii
  49. #define PREF_FTP_TYPE "ftp_type"
  50. # define V_BINARY "binary"
  51. # define V_ASCII "ascii"
  52. // values: get | tunnel
  53. #define PREF_FTP_VIA_HTTP_PROXY "ftp_via_http_proxy"
  54. # define V_GET "get"
  55. # define V_TUNNEL "tunnel"
  56. // values: true | false
  57. #define PREF_FTP_PASV_ENABLED "ftp_pasv_enabled"
  58. /**
  59. * HTTP related preferences
  60. */
  61. #define PREF_HTTP_USER "http_user"
  62. #define PREF_HTTP_PASSWD "http_passwd"
  63. // values: basic
  64. #define PREF_HTTP_AUTH_SCHEME "http_auth_scheme"
  65. # define V_BASIC "basic"
  66. // values: true | false
  67. #define PREF_HTTP_AUTH_ENABLED "http_auth_enabled"
  68. /**
  69. * HTTP proxy related preferences
  70. */
  71. #define PREF_HTTP_PROXY_USER "http_proxy_user"
  72. #define PREF_HTTP_PROXY_PASSWD "http_proxy_passwd"
  73. #define PREF_HTTP_PROXY_HOST "http_proxy_host"
  74. #define PREF_HTTP_PROXY_PORT "http_proxy_port"
  75. // values: get | tunnel
  76. #define PREF_HTTP_PROXY_METHOD "http_proxy_method"
  77. // values: true | false
  78. #define PREF_HTTP_PROXY_ENABLED "http_proxy_enabled"
  79. // values: true | false
  80. #define PREF_HTTP_PROXY_AUTH_ENABLED "http_proxy_auth_enabled"
  81. /**
  82. * BitTorrent related preferences
  83. */
  84. // values: 1*digit
  85. #define PREF_PEER_CONNECTION_TIMEOUT "peer_connection_timeout"
  86. // values: true | false
  87. #define PREF_SHOW_FILES "show_files"
  88. // values: true | false
  89. #define PREF_NO_PREALLOCATION "no_preallocation"
  90. // values: true | false
  91. #define PREF_DIRECT_FILE_MAPPING "direct_file_mapping"
  92. // values: 1*digit
  93. #define PREF_UPLOAD_LIMIT "upload_limit"
  94. #endif // _D_PREFS_H_