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

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 _HXPSINK_H_
  36. #define _HXPSINK_H_
  37. /*
  38.  * Forward declarations of some interfaces defined here-in.
  39.  */
  40. typedef _INTERFACE       IHXPlayer     IHXPlayer;
  41. typedef _INTERFACE       IHXPlayerSinkControl     IHXPlayerSinkControl;
  42. typedef _INTERFACE       IHXPlayerSinkControl     IHXPlayerSinkControl;
  43. /****************************************************************************
  44.  * 
  45.  *  Interface:
  46.  * 
  47.  * IHXPlayerCreationSink
  48.  * 
  49.  *  Purpose:
  50.  * 
  51.  * PlayerCreation Sink Interface
  52.  * 
  53.  *  IID_IHXPlayerCreationSink:
  54.  * 
  55.  * {00002100-0901-11d1-8B06-00A024406D59}
  56.  * 
  57.  */
  58. DEFINE_GUID(IID_IHXPlayerCreationSink, 0x00002100, 0x901, 0x11d1, 0x8b, 
  59. 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  60. #undef  INTERFACE
  61. #define INTERFACE   IHXPlayerCreationSink
  62. DECLARE_INTERFACE_(IHXPlayerCreationSink, IUnknown)
  63. {
  64.     /*
  65.      * IUnknown methods
  66.      */
  67.     STDMETHOD(QueryInterface) (THIS_
  68. REFIID riid,
  69. void** ppvObj) PURE;
  70.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  71.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  72.     /*
  73.      * IHXPlayerCreationSink Methods
  74.      */
  75.     /************************************************************************
  76.      * Method:
  77.      *     IHXPlayerCreationSink::PlayerCreated
  78.      * Purpose:
  79.      *     Notification when a new player is created
  80.      *
  81.      */
  82.     STDMETHOD(PlayerCreated) (THIS_
  83. IHXPlayer* pPlayer) PURE;
  84.     
  85.     /************************************************************************
  86.      * Method:
  87.      *     IHXPlayerCreationSink::PlayerClosed
  88.      * Purpose:
  89.      *     Notification when an exisitng player is closed
  90.      *
  91.      */
  92.     STDMETHOD(PlayerClosed) (THIS_
  93. IHXPlayer* pPlayer) PURE;
  94. };
  95. /****************************************************************************
  96.  * 
  97.  *  Interface:
  98.  * 
  99.  * IHXPlayerSinkControl
  100.  * 
  101.  *  Purpose:
  102.  * 
  103.  * Player SinkControl Interface
  104.  * 
  105.  *  IID_IHXPlayerSinkControl:
  106.  * 
  107.  * {00002101-0901-11d1-8B06-00A024406D59}
  108.  * 
  109.  */
  110. DEFINE_GUID(IID_IHXPlayerSinkControl, 0x00002101, 0x901, 0x11d1, 0x8b, 
  111.     0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
  112. #undef  INTERFACE
  113. #define INTERFACE   IHXPlayerSinkControl
  114. DECLARE_INTERFACE_(IHXPlayerSinkControl, IUnknown)
  115. {
  116.     /*
  117.      * IUnknown methods
  118.      */
  119.     STDMETHOD(QueryInterface) (THIS_
  120. REFIID riid,
  121. void** ppvObj) PURE;
  122.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  123.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  124.     /*
  125.      * IHXPlayerSinkControl Methods
  126.      */
  127.     
  128.     /************************************************************************
  129.      * Method:
  130.      *     IHXPlayerSinkControl::AddSink
  131.      * Purpose:
  132.      *     Add a new sink
  133.      *
  134.      */
  135.     STDMETHOD(AddSink) (THIS_
  136. IHXPlayerCreationSink* pSink) PURE;
  137.     
  138.     /************************************************************************
  139.      * Method:
  140.      *     IHXPlayerSinkControl::RemoveSink
  141.      * Purpose:
  142.      *     Remove an exisitng sink
  143.      *
  144.      */
  145.     STDMETHOD(RemoveSink) (THIS_
  146. IHXPlayerCreationSink* pSink) PURE;
  147. };
  148. #endif /* _HXPSINK_H_ */