prefs.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. /**
  67. * HTTP proxy related preferences
  68. */
  69. #define PREF_HTTP_PROXY_USER "http_proxy_user"
  70. #define PREF_HTTP_PROXY_PASSWD "http_proxy_passwd"
  71. #define PREF_HTTP_PROXY_HOST "http_proxy_host"
  72. #define PREF_HTTP_PROXY_PORT "http_proxy_port"
  73. // values: get | tunnel
  74. #define PREF_HTTP_PROXY_METHOD "http_proxy_method"
  75. // values: true | false
  76. #define PREF_HTTP_PROXY_ENABLED "http_proxy_enabled"
  77. // values: true | false
  78. #define PREF_HTTP_PROXY_AUTH_ENABLED "http_proxy_auth_enabled"
  79. /**
  80. * BitTorrent related preferences
  81. */
  82. // values: 1*digit
  83. #define PREF_PEER_CONNECTION_TIMEOUT "peer_connection_timeout"
  84. #endif // _D_PREFS_H_