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

Symbian

开发平台:

Visual C++

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Source last modified: $Id: hxqosinfo.h,v 1.2.20.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. ///////////////////////////////////////////////////////////////////////////////
  50. // hxqosinfo.h - Interfaces for QoS Adaptation Info.
  51. ///////////////////////////////////////////////////////////////////////////////
  52. #ifndef HXQOSINFO_H
  53. #define HXQOSINFO_H
  54. ///////////////////////////////////////////////////////////////////////////////
  55. _INTERFACE      IUnknown;
  56. _INTERFACE      IHXQoSTransportAdaptationInfo;
  57. _INTERFACE      IHXQoSSessionAdaptationInfo;
  58. _INTERFACE      IHXQoSApplicationAdaptationInfo;
  59. ///////////////////////////////////////////////////////////////////////////////
  60. // Interface: 
  61. //
  62. //      IHXQoSTransportAdaptationInfo
  63. //
  64. // Purpose:
  65. //
  66. //      Provides adaptation info for QoS transport layer.
  67. //
  68. // IID_IHXQoSTransportAdaptationInfo:
  69. //
  70. //      {213645C5-3A56-4945-A8A9-6702BB5604B6}
  71. //
  72. ///////////////////////////////////////////////////////////////////////////////
  73. // {213645C5-3A56-4945-A8A9-6702BB5604B6}
  74. DEFINE_GUID(IID_IHXQoSTransportAdaptationInfo, 
  75.             0x213645c5, 0x3a56, 0x4945, 0xa8, 0xa9, 0x67, 0x2, 0xbb, 0x56, 0x4, 0xb6);
  76. #define CLSID_IHXQoSTransportAdaptationInfo     IID_IHXQoSTransportAdaptationInfo
  77. #undef  INTERFACE
  78. #define INTERFACE   IHXQoSTransportAdaptationInfo
  79. DECLARE_INTERFACE_(IHXQoSTransportAdaptationInfo, IUnknown)
  80. {
  81.     STDMETHOD_(UINT32, GetRRFrequency) (THIS) PURE;
  82.     STDMETHOD(SetRRFrequency) (THIS_
  83.                                UINT32 ulRRFrequency) PURE;
  84.     STDMETHOD_(UINT32, GetRTT) (THIS) PURE;
  85.     STDMETHOD(SetRTT) (THIS_
  86.                        UINT32 ulRTT) PURE;
  87.     STDMETHOD_(UINT32, GetPacketLoss) (THIS) PURE;
  88.     STDMETHOD(SetPacketLoss) (THIS_
  89.                               UINT32 ulPacketLoss) PURE;
  90.     STDMETHOD_(UINT32, GetReceivedThroughput) (THIS) PURE;
  91.     STDMETHOD(SetReceivedThroughput) (THIS_
  92.                                       UINT32 ulReceivedThroughput) PURE;
  93.     STDMETHOD_(UINT32, GetSuccessfulResends)    (THIS) PURE;
  94.     STDMETHOD(SetSuccessfulResends)             (THIS_
  95.                                                 UINT32 ulSuccessfulResends) PURE;
  96.     STDMETHOD_(UINT32, GetFailedResends)    (THIS) PURE;
  97.     STDMETHOD(SetFailedResends)             (THIS_
  98.                                             UINT32 ulFailedResends) PURE;
  99.     STDMETHOD_(IHXBuffer*, GetTxRateRange)    (THIS) PURE;
  100.     STDMETHOD(SetTxRateRange)                 (THIS_
  101.                                               IHXBuffer* pTxRateRange) PURE;
  102.     STDMETHOD_(UINT32, GetPacketsSent)      (THIS) PURE;
  103.     STDMETHOD(SetPacketsSent)               (THIS_
  104.                                             UINT32 ulPacketsSent) PURE;
  105.     STDMETHOD_(UINT64, GetBytesSent)        (THIS) PURE;
  106.     STDMETHOD(SetBytesSent)                 (THIS_
  107.                                             UINT64 ulBytesSent) PURE;
  108. };
  109. ///////////////////////////////////////////////////////////////////////////////
  110. // Interface: 
  111. //
  112. //      IHXQoSSessionAdaptationInfo
  113. //
  114. // Purpose:
  115. //
  116. //      Provides adaptation info for QoS Session layer.
  117. //
  118. // IID_IHXQoSSessionAdaptationInfo:
  119. //
  120. //      {AED09295-0A71-4520-9D7F-BFA9B5A97245}
  121. //
  122. ///////////////////////////////////////////////////////////////////////////////
  123. // {AED09295-0A71-4520-9D7F-BFA9B5A97245}
  124. DEFINE_GUID(IID_IHXQoSSessionAdaptationInfo, 
  125.             0xaed09295, 0xa71, 0x4520, 0x9d, 0x7f, 0xbf, 0xa9, 0xb5, 0xa9, 0x72, 0x45);
  126. #define CLSID_IHXQoSSessionAdaptationInfo     IID_IHXQoSSessionAdaptationInfo
  127. #undef  INTERFACE
  128. #define INTERFACE   IHXQoSSessionAdaptationInfo
  129. DECLARE_INTERFACE_(IHXQoSSessionAdaptationInfo, IUnknown)
  130. {
  131.     STDMETHOD_(UINT32, GetEstimatedPlayerBufferUnderruns) (THIS) PURE;
  132.     STDMETHOD(SetEstimatedPlayerBufferUnderruns) (THIS_
  133.                                                   UINT32 ulEstimatedPlayerBufferUnderruns) PURE;
  134.     STDMETHOD_(UINT32, GetEstimatedPlayerBufferOverruns) (THIS) PURE;
  135.     STDMETHOD(SetEstimatedPlayerBufferOverruns) (THIS_
  136.                                                  UINT32 ulEstimatedPlayerBufferOverruns) PURE;
  137.     STDMETHOD_(UINT32, GetBufferDepthTime) (THIS) PURE;
  138.     STDMETHOD(SetBufferDepthTime) (THIS_
  139.                                    UINT32 ulBufferDepthTime) PURE;
  140.     STDMETHOD_(UINT32, GetBufferDepthBytes) (THIS) PURE;
  141.     STDMETHOD(SetBufferDepthBytes) (THIS_
  142.                                     UINT32 ulBufferDepthBytes) PURE;
  143. };
  144. ///////////////////////////////////////////////////////////////////////////////
  145. // Interface: 
  146. //
  147. //      IHXQoSApplicationAdaptationInfo
  148. //
  149. // Purpose:
  150. //
  151. //      Provides adaptation info for QoS Application layer.
  152. //
  153. // IID_IHXQoSApplicationAdaptationInfo:
  154. //
  155. //      {207E23E5-F71F-4a18-B7D0-F4F865A2058B}
  156. //
  157. ///////////////////////////////////////////////////////////////////////////////
  158. // {207E23E5-F71F-4a18-B7D0-F4F865A2058B}
  159. DEFINE_GUID(IID_IHXQoSApplicationAdaptationInfo, 
  160.             0x207e23e5, 0xf71f, 0x4a18, 0xb7, 0xd0, 0xf4, 0xf8, 0x65, 0xa2, 0x5, 0x8b);
  161. #define CLSID_IHXQoSApplicationAdaptationInfo     IID_IHXQoSApplicationAdaptationInfo
  162. #undef  INTERFACE
  163. #define INTERFACE   IHXQoSApplicationAdaptationInfo
  164. DECLARE_INTERFACE_(IHXQoSApplicationAdaptationInfo, IUnknown)
  165. {
  166.     STDMETHOD_(UINT32, GetTotalBitrateAdaptations) (THIS) PURE;
  167.     STDMETHOD(SetTotalBitrateAdaptations) (THIS_
  168.                                            UINT32 ulTotalBitrateAdaptations) PURE;
  169.     STDMETHOD_(UINT32, GetCurrentBitrate) (THIS) PURE;
  170.     STDMETHOD(SetCurrentBitrate) (THIS_
  171.                                   UINT32 ulCurrentBitrate) PURE;
  172.     STDMETHOD_(UINT32, GetTotalUpshifts)    (THIS) PURE;
  173.     STDMETHOD(SetTotalUpshifts)             (THIS_
  174.                                             UINT32 ulTotalUpshifts) PURE;
  175.     STDMETHOD_(UINT32, GetTotalDownshifts)  (THIS) PURE;
  176.     STDMETHOD(SetTotalDownshifts)           (THIS_
  177.                                             UINT32 ulTotalDownshifts) PURE;
  178.     STDMETHOD_(UINT32, GetASMSubscribes)    (THIS) PURE;
  179.     STDMETHOD(SetASMSubscribes)             (THIS_
  180.                                             UINT32 ulASMSubscribes) PURE;
  181.     STDMETHOD_(UINT32, GetASMUnsubscribes)  (THIS) PURE;
  182.     STDMETHOD(SetASMUnsubscribes)           (THIS_
  183.                                             UINT32 ulASMUnsubscribes) PURE;
  184. };
  185. #endif //defined HXQOSINFO_H