hxmmrkr.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:7k
源码类别:

Symbian

开发平台:

C/C++

  1. /* ***** BEGIN LICENSE BLOCK ***** 
  2.  * Version: RCSL 1.0/RPSL 1.0 
  3.  *  
  4.  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
  5.  *      
  6.  * The contents of this file, and the files included with this file, are 
  7.  * subject to the current version of the RealNetworks Public Source License 
  8.  * Version 1.0 (the "RPSL") available at 
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed 
  10.  * the file under the RealNetworks Community Source License Version 1.0 
  11.  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
  12.  * in which case the RCSL will apply. You may also obtain the license terms 
  13.  * directly from RealNetworks.  You may not use this file except in 
  14.  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
  15.  * applicable to this file, the RCSL.  Please see the applicable RPSL or 
  16.  * RCSL for the rights, obligations and limitations governing use of the 
  17.  * contents of the file.  
  18.  *  
  19.  * This file is part of the Helix DNA Technology. RealNetworks is the 
  20.  * developer of the Original Code and owns the copyrights in the portions 
  21.  * it created. 
  22.  *  
  23.  * This file, and the files included with this file, is distributed and made 
  24.  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  25.  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  26.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
  27.  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  28.  * 
  29.  * Technology Compatibility Kit Test Suite(s) Location: 
  30.  *    http://www.helixcommunity.org/content/tck 
  31.  * 
  32.  * Contributor(s): 
  33.  *  
  34.  * ***** END LICENSE BLOCK ***** */ 
  35. #ifndef HXMMRKR_H
  36. #define HXMMRKR_H
  37. /*
  38.  * Forward declarations of some interfaces defined or used here-in.
  39.  */
  40. typedef _INTERFACE IHXMediaMarkerManager IHXMediaMarkerManager;
  41. typedef _INTERFACE IHXMediaMarkerSink    IHXMediaMarkerSink;
  42. typedef _INTERFACE IHXValues             IHXValues;
  43. /****************************************************************************
  44.  * 
  45.  *  Interface:
  46.  *
  47.  *      IHXMediaMarkerManager
  48.  *
  49.  *  Purpose:
  50.  *
  51.  *      Interface to manage media markers
  52.  *
  53.  *  IID_IHXMediaMarkerManager:
  54.  *
  55.  *      {46679D62-F7AC-4b0e-8000-F4EE90F785B1}
  56.  *
  57.  */
  58. DEFINE_GUID(IID_IHXMediaMarkerManager, 0x46679d62, 0xf7ac, 0x4b0e, 0x80, 0x0, 0xf4, 
  59.                              0xee, 0x90, 0xf7, 0x85, 0xb1);
  60. DECLARE_INTERFACE_(IHXMediaMarkerManager, IUnknown)
  61. {
  62.     /*
  63.      * IUnknown methods
  64.      */
  65.     STDMETHOD(QueryInterface)   (THIS_
  66.                                 REFIID riid,
  67.                                 void** ppvObj) PURE;
  68.     STDMETHOD_(ULONG32,AddRef)  (THIS) PURE;
  69.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  70.     /*
  71.      * IHXMediaMarkerManager methods
  72.      */
  73.     /************************************************************************
  74.      *  Method:
  75.      *      IHXMediaMarkerManager::AddMediaMarkerSink
  76.      *  Purpose:
  77.      *      Register a media marker sink
  78.      */
  79.     STDMETHOD(AddMediaMarkerSink) (THIS_ IHXMediaMarkerSink* pSink) PURE;
  80.     /************************************************************************
  81.      *  Method:
  82.      *      IHXMediaMarkerManager::RemoveMediaMarkerSink
  83.      *  Purpose:
  84.      *      Unregister a media marker sink
  85.      */
  86.     STDMETHOD(RemoveMediaMarkerSink) (THIS_ IHXMediaMarkerSink* pSink) PURE;
  87.     /************************************************************************
  88.      *  Method:
  89.      *      IHXMediaMarkerManager::AddMediaMarkerSinkFilter
  90.      *  Purpose:
  91.      *      Add a filter on the markers which will be
  92.      *      received by this media marker sink. Multiple calls
  93.      *      to this interface with the same sink set up an
  94.      *      implicit OR between all the added filters for that sink.
  95.      */
  96.     STDMETHOD(AddMediaMarkerSinkFilter) (THIS_ IHXMediaMarkerSink* pSink,
  97.                                                IHXValues*          pFilter) PURE;
  98.     /************************************************************************
  99.      *  Method:
  100.      *      IHXMediaMarkerManager::ResolveMarker
  101.      *  Purpose:
  102.      *      Method that media marker sources will use to tell the core
  103.      *      about their markers
  104.      */
  105.     STDMETHOD(ResolveMarker) (THIS_ IHXBuffer* pURLStr,
  106.                                     IHXBuffer* pMarkerNameStr,
  107.                                     UINT32      ulTime,
  108.                                     IHXValues* pOtherMarkerParams) PURE;
  109.     /************************************************************************
  110.      *  Method:
  111.      *      IHXMediaMarkerManager::IsMarkerResolved
  112.      *  Purpose:
  113.      *      Method to find if a specific media marker has been resolved
  114.      *      and if so, find the time that it resolved to
  115.      */
  116.     STDMETHOD_(BOOL,IsMarkerResolved) (THIS_ IHXBuffer* pURLStr,
  117.                                              IHXBuffer* pMarkerNameStr) PURE;
  118.     /************************************************************************
  119.      *  Method:
  120.      *      IHXMediaMarkerManager::GetFirstMarker
  121.      *  Purpose:
  122.      *      Retrieves the first marker using the currently-set
  123.      *      filters for this marker sink.
  124.      */
  125.     STDMETHOD(GetFirstMarker) (THIS_ IHXMediaMarkerSink* pSink,
  126.                                      REF(IHXBuffer*)     rpURLStr,
  127.                                      REF(IHXBuffer*)     rpMarkerNameStr,
  128.                                      REF(UINT32)          rulTime,
  129.                                      REF(IHXValues*)     rpOtherMarkerParams) PURE;
  130.     /************************************************************************
  131.      *  Method:
  132.      *      IHXMediaMarkerManager::GetNextMarker
  133.      *  Purpose:
  134.      *      Retrieves the next marker using the currently-set
  135.      *      filters for this marker sink.
  136.      */
  137.     STDMETHOD(GetNextMarker) (THIS_ IHXMediaMarkerSink* pSink,
  138.                                     REF(IHXBuffer*)     rpURLStr,
  139.                                     REF(IHXBuffer*)     rpMarkerNameStr,
  140.                                     REF(UINT32)          rulTime,
  141.                                     REF(IHXValues*)     rpOtherMarkerParams) PURE;
  142. };
  143. /****************************************************************************
  144.  * 
  145.  *  Interface:
  146.  *
  147.  *      IHXMediaMarkerSink
  148.  *
  149.  *  Purpose:
  150.  *
  151.  *      Interface to receive media marker resolved times
  152.  *
  153.  *  IID_IHXMediaMarkerSink
  154.  *
  155.  *      {A4643C85-5B52-4b07-A761-32CFB2F284FE}
  156.  */
  157. DEFINE_GUID(IID_IHXMediaMarkerSink, 0xa4643c85, 0x5b52, 0x4b07, 0xa7, 0x61, 0x32,
  158.                                     0xcf, 0xb2, 0xf2, 0x84, 0xfe);
  159. DECLARE_INTERFACE_(IHXMediaMarkerSink, IUnknown)
  160. {
  161.     /*
  162.      * IUnknown methods
  163.      */
  164.     STDMETHOD(QueryInterface)   (THIS_
  165.                                 REFIID riid,
  166.                                 void** ppvObj) PURE;
  167.     STDMETHOD_(ULONG32,AddRef)  (THIS) PURE;
  168.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  169.     /*
  170.      * IHXMediaMarkerSink methods
  171.      */
  172.     /************************************************************************
  173.      *  Method:
  174.      *      IHXMediaMarkerSink::MarkerResolved
  175.      *  Purpose:
  176.      *      Resolve the time for a marker
  177.      */
  178.     STDMETHOD(MarkerResolved) (THIS_ IHXBuffer* pURLStr,
  179.                                      IHXBuffer* pMarkerNameStr,
  180.                                      UINT32      ulTime,
  181.                                      IHXValues* pOtherMarkerParams) PURE;
  182. };
  183. #endif /* HXMMRKR_H */