home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Internet / Poczta / YAM22src.lha / includes / libraries / openurl.h < prev   
Encoding:
C/C++ Source or Header  |  2000-11-04  |  2.4 KB  |  73 lines

  1. #ifndef LIBRARIES_OPENURL_H
  2. #define LIBRARIES_OPENURL_H
  3.  
  4. /*
  5. ** openurl.library - universal URL display and browser launcher library
  6. ** Written by Troels Walsted Hansen <troels@stud.cs.uit.no>
  7. ** Placed in the public domain.
  8. **
  9. ** Library definitions and structures.
  10. */
  11.  
  12. /**************************************************************************/
  13.  
  14. #ifndef EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17.  
  18. #ifndef EXEC_LISTS_H
  19. #include <exec/lists.h>
  20. #endif
  21.  
  22. #ifndef EXEC_NODES_H
  23. #include <exec/nodes.h>
  24. #endif
  25.  
  26. #ifndef UTILITY_TAGITEM_H
  27. #include <utility/tagitem.h>
  28. #endif
  29.  
  30. /**************************************************************************/
  31.  
  32. #define URL_Tagbase TAG_USER
  33.  
  34. #define URL_Show         (URL_Tagbase + 1) /* BOOL - show/uniconify browser */
  35. #define URL_BringToFront (URL_Tagbase + 2) /* BOOL - bring browser to front */
  36. #define URL_NewWindow    (URL_Tagbase + 3) /* BOOL - open URL in new window */
  37. #define URL_Launch       (URL_Tagbase + 4) /* BOOL - launch browser when not running */
  38.  
  39. /* this is Version 1 of this structure */
  40.  
  41. struct URL_Prefs
  42. {
  43.     UBYTE          up_Version;     /* always check this version number! */
  44.     struct MinList up_BrowserList; /* list of struct URL_BrowserNode's */
  45. };
  46.  
  47. #define REXX_CMD_LEN 64
  48.  
  49. #define UBNF_URLONCMDLINE (1<<0) /* if set, browser supports getting an URL on 
  50.                                     the commandline when launched */
  51. #define UBN_NAME_LEN         32
  52. #define UBN_PATH_LEN        256
  53. #define UBN_PORT_LEN         32
  54. #define UBN_SHOWCMD_LEN      REXX_CMD_LEN
  55. #define UBN_TOFRONTCMD_LEN   REXX_CMD_LEN
  56. #define UBN_OPENURLCMD_LEN   REXX_CMD_LEN
  57. #define UBN_OPENURLWCMD_LEN  REXX_CMD_LEN
  58.  
  59. struct URL_BrowserNode
  60. {
  61.     struct MinNode ubn_Node;
  62.     LONGBITS       ubn_Flags;                            /* flags, see above */
  63.     TEXT           ubn_Name[UBN_NAME_LEN];               /* name of webbrowser */
  64.     TEXT           ubn_Path[UBN_PATH_LEN];               /* complete path to browser */
  65.     TEXT           ubn_Port[UBN_PORT_LEN];               /* webbrowser arexx port */
  66.     TEXT           ubn_ShowCmd[UBN_SHOWCMD_LEN];         /* command to show/uniconify browser */
  67.     TEXT           ubn_ToFrontCmd[UBN_TOFRONTCMD_LEN];   /* command to bring browser to front */
  68.     TEXT           ubn_OpenURLCmd[UBN_OPENURLCMD_LEN];   /* command to open url */
  69.     TEXT           ubn_OpenURLWCmd[UBN_OPENURLWCMD_LEN]; /* command to open url in new window */
  70. };
  71.  
  72. #endif  /* LIBRARIES_OPENURL_H */
  73.