home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-26  |  8.1 KB  |  196 lines

  1. /* conf.h
  2.    Define the site specific configuration values and macros */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19.  
  20. #ifndef G_CONFIG_H
  21. #define G_CONFIG_H
  22.  
  23. /* Access control allows (but does not require) a list of trusted
  24.    servers only to provide data to this client.  Ftp may also be disabled.
  25.    If ACCESS_CONTROL is defined 0, then this code will not be compiled
  26.    and the feature will not be available. */
  27. /* not implemented */
  28.  
  29. #define ACCESS_CONTROL    1
  30.  
  31. /* ----- application defaults ---- */
  32. /* Following are the default values for application resources.
  33.    These are easily overridden in the system's or user's application
  34.    defaults file. */
  35.  
  36. #define ROOT_SERVER    "gopher.uiuc.edu"  /* default host server      */
  37. #define ROOT_PORT    70        /* default host server           */
  38. #define ROOT_PATH    ""        /* default selector string       */
  39. #define MAIN_TITLE    "UIUC Gopher Information Service"
  40.                     /* title of main menu              */
  41.  
  42. /*  HELP_FILE is set through a symbol in the Imake file.  The
  43.     effect is similar to the following, but it allows the file
  44.     to be placed in the proper place in the X11 directory structure.
  45.  
  46.     #define HELP_FILE    "/usr/lib/X11/xgopher/xgopher.help"
  47. */
  48.  
  49. #define ALLOW_SAVE    TRUE        /* allow files to be saved?      */
  50. #define ALLOW_COPY    TRUE        /* allow files to be copied?      */
  51.  
  52. #define ALLOW_PRINT    TRUE        /* allow files to be printed?      */
  53. #define PRINT_COMMAND    "/bin/echo No print command was provided:"
  54.                     /* default print command      */
  55.  
  56. #define ALLOW_TELNET    TRUE        /* allow telnet sessions          */
  57. #define TELNET_COMMAND    "xterm -e telnet"
  58.                     /* command to start telnet        */
  59.  
  60. #define ALLOW_TN3270    TRUE        /* allow tn3270 item execution    */
  61.  
  62. #ifndef _AIX
  63. #define TN3270_COMMAND    "xterm -e tn3270"
  64.                     /* command to start tn3270       */
  65. #else
  66. #define TN3270_COMMAND    "aixterm -e tn3270"
  67.                     /* command to start tn3270 from aix */
  68. #endif
  69.  
  70. #define ALLOW_BOOKMARK_SAVE TRUE    /* allow bookmarks to be saveed?  */
  71. #define BOOKMARK_FILE    "~/.gopherrc"    /* default bookmark save file      */
  72. #define APPEND_BOOKMARKS TRUE         /* append bkmks to be current list? */
  73.  
  74. #define HAS_SOUND    FALSE        /* the X server(!) has sound      */
  75. #define SOUND_COMMAND    "/bin/false"    /* command to get sound out        */
  76.  
  77. #define ALLOW_IMAGE    TRUE        /* image display is allowed       */
  78. #define IMAGE_COMMAND    "/bin/echo The image display command was not provided:"
  79.                     /* command to display image file  */
  80.  
  81. #define LOAD_BOOKMARKS    TRUE        /* load bookmarks at each restart */
  82. #define RESET_OPTIONS    TRUE        /* reset options at each restart  */
  83.  
  84. #define SWAP_RESTART_QUIT    FALSE    /* Swap restart & quit buttons       */
  85. #define RESTART_BUTTON    TRUE        /* show restart button         */
  86. #define OPTIONS_BUTTON    TRUE        /* show option panel button      */
  87. #define SINGLE_ITEM_BUTTON    TRUE    /* show single item panel button  */
  88. #define SHOW_ITEMS    showAll        /* show all gopher items (enum:
  89.                      show{All,Known,Accessible,Available}*/
  90. #define DIR_HISTORY    TRUE        /* show directory history window  */
  91. #define NAME_TEXT    TRUE        /* text icons are assigned item name */
  92. #define COMMON_TEXT    FALSE        /* text popups are different classes */
  93. #define CONCURRENT_TEXT    0        /* # concurrent text of same class */
  94. #define ALLOW_HOLD     TRUE        /* allow hold button on text windows */
  95.  
  96. #define PUBLIC_MODE      FALSE        /* Force most access resources for 
  97.                                            a somewhat secure Xgopher.      */
  98. #define STATUS_WINDOW     TRUE        /* use status popup instead of bar */
  99. #define ALLOW_FTP      TRUE        /* allow ftp-type of gopher access */
  100.  
  101. #define DIRECTORY_TIME    600        /* number of seconds a dir is valid */
  102. #define ITEMS_TO_START    500        /* initial number of gopher items */
  103. #define ITEMS_TO_ADD    50        /* alloc this many more when needed */
  104. #define DIRS_TO_START    50        /* initial number of gopher dirs  */
  105. #define DIRS_TO_ADD    10        /* alloc this many more when needed */
  106. #define WARP_CURSOR    FALSE        /* warp cursor to selected popups */
  107. #define DOUBLE_CLICK    TRUE        /* Allow double click for selection */
  108. #define MARK_ROOT    TRUE        /* set automatic  bookmark at root */
  109. #define TEMP_DIRECTORY    "/tmp"        /* directory for bringing files to */
  110.  
  111.     /* the following prefixes must be <= PREFIX_LEN characters long */
  112.  
  113. #define PREFIX_FILE    "      "    /* listing prefix for text files     */
  114. #define PREFIX_DIR    "\273     "    /* listing prefix for directories    */
  115. #define PREFIX_CSO    "<cso> "    /* listing prefix for CSO nameservers */
  116. #define PREFIX_INDEX    "<idx> "    /* listing prefix for index search   */
  117. #define PREFIX_TELNET    "<tel> "    /* listing prefix for telnet session */
  118. #define PREFIX_TN3270    "<tn3> "    /* listing prefix for tn3270 session */
  119. #define PREFIX_BINARY    "<bin> "    /* listing prefix for binary files   */
  120. #define PREFIX_IMAGE    "<img> "    /* listing prefix for image files    */
  121. #define PREFIX_SOUND    "<snd> "    /* listing prefix for sound files    */
  122. #define PREFIX_UNKNOWN    "< ? > "    /* listing prefix for unknown files  */
  123.  
  124. /* ----- end of application defaults ---- */
  125.  
  126. #define    PATH_NAME_LEN        1024    /* characters in a file path name */
  127. #define USER_STRING_LEN        100    /* length of user display string  */
  128. #define PREFIX_LEN        6    /* length of user string prefix   */
  129. #define SELECTOR_STRING_MAX_LEN    1024    /* max length of selector string  */
  130. #define HOST_STRING_LEN        100    /* length of host name string     */
  131. #define MESSAGE_STRING_LEN    256    /* length of strings for messages */
  132. #define FILE_LINE_LEN        512    /* length of line in text file    */
  133. #define HELP_SEC_TITLE_LEN    80    /* length of help item title      */
  134. #define INDEX_WORD_LEN          1024    /* total len of index word string */
  135. #define INDEX_WORD_COUNT        40    /* number of distinct index words */
  136.  
  137. #define GOPHER        "xgopher"    /* name of the thing!             */
  138. #define GOPHER_CLASS    "Xgopher"    /* name of the application class  */
  139.  
  140. #define NL        '\n'        /* New Line character             */
  141. #define EOL_STRING    "\r\n"        /* terminate queries with  this   */
  142.  
  143. #define TMP_FILE_MODE    0600        /* open mode for temp files      */
  144. #define LOG_FILE_MODE    0600        /* open mode for gopher log file  */
  145. #define SAVE_FILE_MODE    0666        /* open mode for files saved/copied */
  146.  
  147.  
  148. /* ----- other string constants ----- */
  149.  
  150. #define DEFAULT_STATUS_MESSAGE "Select an item from a list below"
  151.  
  152.  
  153. /* ----- Portability ----- */
  154.  
  155. /*       Each server allows a maximum window size.  It is not clear that
  156.      the server can be queried to obtain this maximum value.  Most
  157.      servers allow 65535 x 65535  (width, height).  However, some HP
  158.      servers, for example, allow only 8192 x 8192.  The following
  159.      constants define this maximum.  It is used to create an overlay
  160.      window for the stopwatch cursor during time-consuming operations.
  161.  
  162.      If you use a virtual root window (e.g., with tvtwm) larger than
  163.      about 8k square, then you should make these values larger.
  164. */
  165.  
  166. #define SERVER_MAX_WINDOW_WIDTH        8192
  167. #define SERVER_MAX_WINDOW_HEIGHT    8192
  168.  
  169.  
  170. /* ----- X11R4 compatability ----- */
  171.  
  172. /*       The include file "compatR4.h" should correctly determine
  173.      whether or not you are compiling with X11R4 (instead of the
  174.      preferred X11R5).  If the tests in that file are not
  175.      functioning then you should explicitly inform the compiler by
  176.      uncommenting the line below to define the symbol XGOPHER_X11R4.
  177. */
  178.  
  179. /*  #define XGOPHER_X11R4   */
  180.  
  181.  
  182. #ifndef TRUE
  183. #define TRUE 1
  184. #endif
  185. #ifndef FALSE
  186. #define FALSE 0
  187. #endif
  188.  
  189. #define NO_FD    -1
  190.  
  191. /* string terminator - zero character */
  192.  
  193. #define NULLC '\0'
  194.  
  195. #endif /* ifndef G_CONFIG_H */
  196.