hxvsrc.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:10k
源码类别:

Symbian

开发平台:

Visual C++

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Source last modified: $Id: hxvsrc.h,v 1.1.1.1.50.3 2004/07/09 01:45:13 hubbe Exp $
  3.  * 
  4.  * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
  5.  * 
  6.  * The contents of this file, and the files included with this file,
  7.  * are subject to the current version of the RealNetworks Public
  8.  * Source License (the "RPSL") available at
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed
  10.  * the file under the current version of the RealNetworks Community
  11.  * Source License (the "RCSL") available at
  12.  * http://www.helixcommunity.org/content/rcsl, in which case the RCSL
  13.  * will apply. You may also obtain the license terms directly from
  14.  * RealNetworks.  You may not use this file except in compliance with
  15.  * the RPSL or, if you have a valid RCSL with RealNetworks applicable
  16.  * to this file, the RCSL.  Please see the applicable RPSL or RCSL for
  17.  * the rights, obligations and limitations governing use of the
  18.  * contents of the file.
  19.  * 
  20.  * Alternatively, the contents of this file may be used under the
  21.  * terms of the GNU General Public License Version 2 or later (the
  22.  * "GPL") in which case the provisions of the GPL are applicable
  23.  * instead of those above. If you wish to allow use of your version of
  24.  * this file only under the terms of the GPL, and not to allow others
  25.  * to use your version of this file under the terms of either the RPSL
  26.  * or RCSL, indicate your decision by deleting the provisions above
  27.  * and replace them with the notice and other provisions required by
  28.  * the GPL. If you do not delete the provisions above, a recipient may
  29.  * use your version of this file under the terms of any one of the
  30.  * RPSL, the RCSL or the GPL.
  31.  * 
  32.  * This file is part of the Helix DNA Technology. RealNetworks is the
  33.  * developer of the Original Code and owns the copyrights in the
  34.  * portions it created.
  35.  * 
  36.  * This file, and the files included with this file, is distributed
  37.  * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
  38.  * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
  39.  * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
  40.  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
  41.  * ENJOYMENT OR NON-INFRINGEMENT.
  42.  * 
  43.  * Technology Compatibility Kit Test Suite(s) Location:
  44.  *    http://www.helixcommunity.org/content/tck
  45.  * 
  46.  * Contributor(s):
  47.  * 
  48.  * ***** END LICENSE BLOCK ***** */
  49. #ifndef _HXVSRC_H
  50. #define _HXVSRC_H
  51. typedef _INTERFACE IHXStreamSource IHXStreamSource;
  52. typedef _INTERFACE IHXFileObject IHXFileObject;
  53. // Interfaces definded in this file
  54. typedef _INTERFACE IHXFileViewSource IHXFileViewSource;
  55. typedef _INTERFACE IHXFileViewSourceResponse IHXFileViewSourceResponse;
  56. typedef _INTERFACE IHXViewSourceCommand IHXViewSourceCommand;
  57. typedef _INTERFACE IHXViewSourceURLResponse IHXViewSourceURLResponse;
  58. // $Private:
  59. typedef _INTERFACE IHXClientViewSource IHXClientViewSource;
  60. typedef _INTERFACE IHXClientViewSourceSink IHXClientViewSourceSink;
  61. // $EndPrivate.
  62. /****************************************************************************
  63.  * 
  64.  *  Interface:
  65.  * 
  66.  * IHXFileViewSource
  67.  * 
  68.  *  IID_IHXFileViewSource:
  69.  * 
  70.  * {00003500-0901-11d1-8B06-00A024406D59}
  71.  * 
  72.  */
  73. enum SOURCE_TYPE
  74. {
  75.     RAW_SOURCE,
  76.     HTML_SOURCE
  77. };
  78. DEFINE_GUID(IID_IHXFileViewSource, 0x00003500, 0x901, 0x11d1, 0x8b, 0x6,
  79.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  80. #undef  INTERFACE
  81. #define INTERFACE   IHXFileViewSource
  82. DECLARE_INTERFACE_(IHXFileViewSource, IUnknown)
  83. {
  84.     /*
  85.      * IUnknown methods
  86.      */
  87.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  88.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  89.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  90.     /************************************************************************
  91.      *  IHXFileViewSource
  92.      */
  93.     STDMETHOD(InitViewSource) (THIS_
  94. IHXFileObject*     /*IN*/ pFileObject,
  95. IHXFileViewSourceResponse* /*IN*/ pResp,
  96. SOURCE_TYPE     /*IN*/ sourceType,
  97. IHXValues*     /*IN*/ pOptions) PURE;
  98.     STDMETHOD(GetSource)    (THIS) PURE;
  99.     STDMETHOD(Close)     (THIS) PURE;
  100. };
  101. /****************************************************************************
  102.  * 
  103.  *  Interface:
  104.  * 
  105.  * IHXFileViewSourceResponse
  106.  * 
  107.  *  IID_IHXFileViewSourceResponse:
  108.  * 
  109.  * {00003501-0901-11d1-8B06-00A024406D59}
  110.  * 
  111.  */
  112. DEFINE_GUID(IID_IHXFileViewSourceResponse, 0x00003501, 0x901, 0x11d1, 0x8b,
  113.     0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  114. #undef  INTERFACE
  115. #define INTERFACE   IHXFileViewSourceResponse
  116. DECLARE_INTERFACE_(IHXFileViewSourceResponse, IUnknown)
  117. {
  118.     /*
  119.      * IUnknown methods
  120.      */
  121.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  122.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  123.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  124.     /************************************************************************
  125.      *  IHXFileViewSourceResoponse
  126.      */
  127.     STDMETHOD(InitDone) (THIS_ HX_RESULT status ) PURE;
  128.     STDMETHOD(SourceReady) (THIS_ HX_RESULT status,
  129. IHXBuffer* pSource ) PURE;
  130.     STDMETHOD(CloseDone) (THIS_ HX_RESULT) PURE;
  131. };
  132. /****************************************************************************
  133.  * 
  134.  *  Interface:
  135.  * 
  136.  * IHXViewSourceCommand
  137.  * 
  138.  *  IID_IHXViewSourceCommand:
  139.  * 
  140.  * {00003504-0901-11d1-8B06-00A024406D59}
  141.  * 
  142.  */
  143. DEFINE_GUID(IID_IHXViewSourceCommand, 0x00003504, 0x901, 0x11d1, 0x8b, 0x6,
  144.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  145. #undef  INTERFACE
  146. #define INTERFACE   IHXViewSourceCommand
  147. DECLARE_INTERFACE_(IHXViewSourceCommand, IUnknown)
  148. {
  149.     /*
  150.      * IUnknown methods
  151.      */
  152.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  153.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  154.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  155.     /************************************************************************
  156.      *  IHXViewSourceCommand
  157.      */
  158.     STDMETHOD_(BOOL, CanViewSource) (THIS_
  159. IHXStreamSource* pStream) PURE;
  160.     STDMETHOD(DoViewSource) (THIS_
  161. IHXStreamSource* pStream) PURE;
  162.     STDMETHOD(GetViewSourceURL) (THIS_
  163. IHXStreamSource* pSource,
  164. IHXViewSourceURLResponse*      pResp) PURE;
  165. };
  166. /****************************************************************************
  167.  * 
  168.  *  Interface:
  169.  * 
  170.  * IHXViewSourceURLResponse
  171.  * 
  172.  *  IID_IHXViewSourceURLResponse:
  173.  * 
  174.  * {00003505-0901-11d1-8B06-00A024406D59}
  175.  * 
  176.  */
  177. DEFINE_GUID(IID_IHXViewSourceURLResponse, 0x00003505, 0x901, 0x11d1, 0x8b, 0x6,
  178.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  179. #undef  INTERFACE
  180. #define INTERFACE   IHXViewSourceURLResponse
  181. DECLARE_INTERFACE_(IHXViewSourceURLResponse, IUnknown)
  182. {
  183.     /*
  184.      * IUnknown methods
  185.      */
  186.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  187.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  188.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  189.     /************************************************************************
  190.      *  IHXViewSourceURLResponse
  191.      */
  192.     STDMETHOD(ViewSourceURLReady) (THIS_
  193. const char* /*out*/ pUrl) PURE;
  194. };
  195. // $Private:
  196. /****************************************************************************
  197.  * 
  198.  *  Interface:
  199.  * 
  200.  * IHXClientViewSource
  201.  * 
  202.  *  IID_IHXClientViewSource:
  203.  * 
  204.  * {00003502-0901-11d1-8B06-00A024406D59}
  205.  * 
  206.  */
  207. DEFINE_GUID(IID_IHXClientViewSource, 0x00003502, 0x901, 0x11d1, 0x8b, 0x6,
  208.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  209. #undef  INTERFACE
  210. #define INTERFACE   IHXClientViewSource
  211. DECLARE_INTERFACE_(IHXClientViewSource, IUnknown)
  212. {
  213.     /*
  214.      * IUnknown methods
  215.      */
  216.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  217.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  218.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  219.     /************************************************************************
  220.      *  IHXClientViewSource
  221.      */
  222.     STDMETHOD(DoViewSource) (THIS_
  223. IUnknown*       /*IN*/ pPlayerContext,
  224. IHXStreamSource*       /*IN*/ pSource) PURE;
  225.     STDMETHOD_(BOOL, CanViewSource) (THIS_
  226. IHXStreamSource*       /*IN*/ pSource) PURE;
  227.     STDMETHOD(GetViewSourceURL) (THIS_
  228. IUnknown*                        pPlayerContext,
  229. IHXStreamSource*                pSource,
  230. IHXViewSourceURLResponse*       pResp) PURE;
  231. };
  232. /****************************************************************************
  233.  * 
  234.  *  Interface:
  235.  * 
  236.  * IHXClientViewSourceSink
  237.  * 
  238.  *  IID_IHXClientViewSourceSink:
  239.  * 
  240.  * {00003503-0901-11d1-8B06-00A024406D59}
  241.  * 
  242.  */
  243. DEFINE_GUID(IID_IHXClientViewSourceSink, 0x00003503, 0x901, 0x11d1, 0x8b, 0x6,
  244.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  245. #undef  INTERFACE
  246. #define INTERFACE   IHXClientViewSourceSink
  247. DECLARE_INTERFACE_(IHXClientViewSourceSink, IUnknown)
  248. {
  249.     /*
  250.      * IUnknown methods
  251.      */
  252.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  253.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  254.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  255.     /************************************************************************
  256.      *  IHXClientViewSourceSink
  257.      */
  258.     STDMETHOD(RegisterViewSourceHdlr) (THIS_
  259. IHXClientViewSource* /*in*/ pViewSourceHdlr) PURE;
  260. };
  261. /****************************************************************************
  262.  * 
  263.  *  Interface:
  264.  * 
  265.  * IHXClientViewRights
  266.  * 
  267.  *  IID_IHXClientViewRights:
  268.  * 
  269.  * {00003506-0901-11d1-8B06-00A024406D59}
  270.  * 
  271.  */
  272. DEFINE_GUID(IID_IHXClientViewRights, 0x00003506, 0x901, 0x11d1, 0x8b, 0x6,
  273.     0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  274. #undef  INTERFACE
  275. #define INTERFACE   IHXClientViewRights
  276. DECLARE_INTERFACE_(IHXClientViewRights, IUnknown)
  277. {
  278.     /*
  279.      * IUnknown methods
  280.      */
  281.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE;
  282.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  283.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  284.     /************************************************************************
  285.      *  IHXClientViewRights
  286.      */
  287.     STDMETHOD(ViewRights) (THIS_
  288. IUnknown*       /*IN*/ pPlayerContext) PURE;
  289.     STDMETHOD_(BOOL, CanViewRights) (THIS) PURE;
  290. };
  291. // $EndPrivate.
  292. #endif