home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / presentm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.7 KB  |  81 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef __PresentationManagerStuff_H
  20. //    Avoid include redundancy
  21. //
  22. #define __PresentationManagerStuff_H
  23.  
  24. //    Purpose:    Intercept all calls network streaming and decide
  25. //                    what to do with them in the the windows
  26. //                    client.
  27. //    Comments:    This is needed to support all the funky ways that
  28. //                    automation applications (either DDE or OLE)
  29. //                    want to dynamically have us send data of
  30. //                    different types to different places.
  31. //                what a nightmare.  Really should have had this
  32. //                    type of functionality in the XP code since the
  33. //                    beginning.
  34. //    Revision History:
  35. //        01-03-95    created GAB
  36. //
  37.  
  38. //    Required Includes
  39. //
  40.  
  41. //    Constants
  42. //
  43.  
  44. //    Structures
  45. //
  46.  
  47. // the struct is the same as the one in libnet mkstream.c's
  48. // net_ConverterStruct, we need to ask libnet to publish the struct.
  49. typedef struct ContentTypeConverter {
  50.      XP_List       * converter_stack;  /* the ordered list of converters;
  51.                                         * elements are net_ConverterElement's
  52.                                         */
  53.      char          * format_in;        /* the input (mime) type that the 
  54.                                         * function accepts 
  55.                                         */
  56.      char          * encoding_in;      /* the input content-encoding that the
  57.                                         * function accepts, or 0 for `any'.
  58.                                         */
  59.      FO_Present_Types format_out;      /* the output type of the function */
  60.      Bool            bAutomated;            /* this flag currently only used by Window on the
  61.                                             client side. */
  62. } net_ConverterStruct;
  63.  
  64.  
  65. //    Global variables
  66. //
  67.  
  68. //    Macros
  69. //
  70.  
  71. //    Function declarations
  72. //
  73. CStreamData *WPM_UnRegisterContentTypeConverter(const char *pServer,
  74.     const char *pMimeType, FO_Present_Types iFormatOut);    
  75.  
  76. extern "C" BOOL WPM_RegisterContentTypeConverter(char *pFormatIn,
  77.     FO_Present_Types iFormatOut, void *vpDataObject,
  78.     NET_Converter *pConverterFunc, BOOL bAutomated);
  79.  
  80. #endif // __PresentationManagerStuff_H
  81.