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

Symbian

开发平台:

Visual C++

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Source last modified: $Id: defslice.h,v 1.4.8.3 2004/07/09 01:45:08 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 _DEFSLICE_H
  50. #define _DEFSLICE_H
  51. #include "hxtypes.h"
  52. //
  53. // Default license values
  54. //
  55. // License Section
  56. const INT32     LICENSE_EVALUATION          = 0;
  57. const INT32     LICENSE_PRODUCT_ID          = 0;
  58. const INT32     LICENSE_MAJOR_VERSION       = 6;
  59. const INT32     LICENSE_MINOR_VERSION       = 0;
  60. #define         LICENSE_STARTDATE             "None"
  61. #define         LICENSE_ENDDATE               "None"
  62. #define         LICENSE_OEM                   "RealNetworks"
  63. #define         LICENSE_MANUFACTURER          "RealNetworks"
  64. #define         LICENSE_DISTRIBUTION          "Online"
  65. #define         LICENSE_LICENSE_ID            "0"
  66. // Security Section
  67. const INT32     LICENSE_SEC_IPRESTRICTION   = 0;
  68. #define         LICENSE_SEC_FORCEPLATCHECK    "All"
  69. // General Section
  70. const INT32     LICENSE_CLIENT_CONNECTIONS  = 10;
  71. const INT32     LICENSE_MOBILE_DOWNLOAD     = 0;
  72. const INT32     LICENSE_ON_DEMAND           = 1;
  73. const INT32     LICENSE_LIVE                = 1;
  74. const INT32     LICENSE_VALID_PLAYERS_ONLY  = 0;
  75. const INT32     LICENSE_INTRANET_SYSTEM     = 0;
  76. const INT32     LICENSE_WINDOWS_MEDIA_LIVE  = 0;
  77. const INT32     LICENSE_MMS_V_HTTP          = 0;
  78. // Multicast Section
  79. const INT32     LICENSE_SCALABLE_MULTICAST  = 0;
  80. const INT32     LICENSE_GENERAL_MULTICAST   = 0;
  81. const INT32     LICENSE_WINDOWS_MEDIA_MULTICAST = 0;
  82. // Datatypes Section
  83. const INT32     LICENSE_REALEVENTS_ENABLED  = 1;
  84. const INT32     LICENSE_REALAUDIO_ENABLED   = 1;
  85. const INT32     LICENSE_REALVIDEO_ENABLED   = 1;
  86. const INT32     LICENSE_MULTIRATE_ENABLED   = 1;
  87. const INT32     LICENSE_REALTEXT_ENABLED    = 1;
  88. const INT32     LICENSE_REALFLASH_ENABLED   = 0;
  89. const INT32     LICENSE_REALPIX_ENABLED     = 1;
  90. const INT32     LICENSE_REALMPA_ENABLED     = 1;
  91. const INT32     LICENSE_QUICKTIME_ENABLED   = 1;
  92. const INT32     LICENSE_REALMPV1_ENABLED    = 1;
  93. const INT32     LICENSE_REALMPV2_ENABLED    = 0;
  94. const INT32     LICENSE_REALMP4_ENABLED     = 0;
  95. const INT32     LICENSE_WINDOWSMEDIAASF_ENABLED = 0;
  96. // Packetizers
  97. const INT32 LICENSE_3GPPPACKETIZER_ENABLED = 0;
  98. //proxy
  99. const INT32     LICENSE_RTSPPROXY_ENABLED          = 0;
  100. const INT32     LICENSE_RTSPPROXY_REDIRECT_ENABLED = 0;
  101. const INT32     LICENSE_PNAPROXY_ENABLED           = 0;
  102. const INT32     LICENSE_PNAPPROXY_REDIRECT_ENABLED = 0;
  103. const INT32     LICENSE_PROXYMII_ENABLED           = 1;
  104. //Edge
  105. const INT32     LICENSE_CONTENTREDIR_ENABLED       = 0;
  106. const INT32     LICENSE_MULTICAST_RECEIVER    = 0;
  107. // Cache Section
  108. const INT32     LICENSE_CACHE_ALLOWSTREAMS  = 0;
  109. const INT32     LICENSE_CACHE_PROXY         = 0;
  110. // Authentication Section
  111. const INT32     LICENSE_AUTH_PPV_ACCESS     = 0;
  112. const INT32     LICENSE_AUTH_PPV_PERMS      = 0;
  113. const INT32     LICENSE_AUTH_BASIC          = 1;
  114. const INT32     LICENSE_AUTH_MSQL           = 0;
  115. const INT32     LICENSE_AUTH_ODBC           = 0;
  116. // Splitting Section
  117. const INT32     LICENSE_SPLITTER_PULL_SOURCE_ENABLED  = 1;
  118. const INT32     LICENSE_SPLITTER_PULL_RECEIVER_ENABLED  = 0;
  119. const INT32     LICENSE_SPLITTER_PUSH_SOURCE_ENABLED  = 0;
  120. const INT32     LICENSE_SPLITTER_PUSH_RECEIVER_ENABLED  = 0;
  121. // BroadcastNG Section
  122. const INT32     LICENSE_BROADCAST_PULL_SOURCE_ENABLED  = 0;
  123. const INT32     LICENSE_BROADCAST_PULL_RECEIVER_ENABLED  = 0;
  124. const INT32     LICENSE_BROADCAST_PROXY_PULL_RECEIVER_ENABLED = 0;
  125. const INT32     LICENSE_BROADCAST_PUSH_SOURCE_ENABLED  = 0;
  126. const INT32     LICENSE_BROADCAST_PUSH_RECEIVER_ENABLED  = 0;
  127. const INT32     LICENSE_BROADCAST_MULTICAST_ENABLED = 0;
  128. // Broadcast Redundancy Section
  129. const INT32     LICENSE_BROADCAST_REDUNDANCY_ENABLED = 1;
  130. // ISP Hosting Section
  131. const INT32     LICENSE_ISP_HOST_ENABLED    = 0;
  132. // Administration Section
  133. const INT32     LICENSE_ADMIN_REMOTE        = 1;
  134. const INT32     LICENSE_ADMIN_ADVANCED      = 1;
  135. // Ad Serving Section
  136. const INT32     LICENSE_ADS_ENABLED     = 0;
  137. const INT32     LICENSE_ADS_FLEXIBLE     = 0;
  138. const INT32     LICENSE_ADS_DISABLE_SPONS   = 0;
  139. const INT32     LICENSE_ADS_ALLOW_EMBEDDED  = 0;
  140. // Distributed Licensing Section
  141. const INT32 LICENSE_DISTLIC_PUBLISHER_ENABLED = 0;
  142. const INT32 LICENSE_DISTLIC_SUBSCRIBER_ENABLED = 1;
  143. // DataConversion
  144. const INT32 LICENSE_DATA_CONVERT_ENABLED = 1;
  145. // Content Distribution
  146. const INT32 LICENSE_CDIST_PUBLISHER = 0;
  147. const INT32 LICENSE_CDIST_SUBSCRIBER = 0;
  148. //
  149. // Registry path defines
  150. //
  151. // Special license paths
  152. #define REGISTRY_NUM_LICENSES "license.NumLicenses"
  153. #define REGISTRY_SERVER_ID    "license.License%ld.License.Definition.LicenseID"
  154. // General Section
  155. #define REGISTRY_CLIENT_CONNECTIONS "license.Summary.General.ClientConnections"
  156. #define REGISTRY_BANDWIDTH_CAPACITY "license.Summary.General.BandwidthCapacity"
  157. #define REGISTRY_MOBILE_DOWNLOAD    "license.Summary.General.MobileDownload"
  158. #define REGISTRY_ON_DEMAND          "license.Summary.General.On-Demand"
  159. #define REGISTRY_LIVE               "license.Summary.General.Live"
  160. #define REGISTRY_VALID_PLAYERS_ONLY "license.Summary.General.ValidPlayersOnly"
  161. #define REGISTRY_INTRANET_SYSTEM    "license.Summary.General.IntranetSystem"
  162. #define REGISTRY_ADDTAG_SMILGEN     "license.Summary.General.AddTag-SmilGen"
  163. #define REGISTRY_WINDOWS_MEDIA_LIVE "license.Summary.General.WindowsMediaLive"
  164. #define REGISTRY_MMS_V_HTTP         "license.Summary.General.MMSvHTTP"
  165. // Multicast Section
  166. #define REGISTRY_SCALABLE_MULTICAST "license.Summary.Multicast.Scalable"
  167. #define REGISTRY_GENERAL_MULTICAST  "license.Summary.Multicast.General"
  168. #define REGISTRY_WINDOWS_MEDIA_MULTICAST "license.Summary.Multicast.WindowsMedia"
  169. // Datatypes Section
  170. #define REGISTRY_REALEVENTS_ENABLED "license.Summary.Datatypes.RealEvents.Enabled"
  171. #define REGISTRY_REALAUDIO_ENABLED  "license.Summary.Datatypes.RealAudio.Enabled"
  172. #define REGISTRY_REALVIDEO_ENABLED  "license.Summary.Datatypes.RealVideo.Enabled"
  173. #define REGISTRY_MULTIRATE_ENABLED  "license.Summary.Datatypes.MultiRateContainer.Enabled"
  174. #define REGISTRY_REALTEXT_ENABLED   "license.Summary.Datatypes.RealText.Enabled"
  175. #define REGISTRY_QUICKTIME_ENABLED  "license.Summary.Datatypes.QuickTime.Enabled"
  176. #define REGISTRY_REALFLASH_ENABLED  "license.Summary.Datatypes.RealFlash.Enabled"
  177. #define REGISTRY_REALPIX_ENABLED    "license.Summary.Datatypes.RealPix.Enabled"
  178. #define REGISTRY_REALMPA_ENABLED    "license.Summary.Datatypes.RealMPA.Enabled"
  179. #define REGISTRY_QUICKTIME_ENABLED  "license.Summary.Datatypes.QuickTime.Enabled"
  180. #define REGISTRY_REALMPV1_ENABLED   "license.Summary.Datatypes.RealMPEG1.Enabled"
  181. #define REGISTRY_REALMPV2_ENABLED   "license.Summary.Datatypes.RealMPEG2.Enabled"
  182. #define REGISTRY_REALMPV1_OLD_ENABLED   "license.Summary.realmpeg1.Enabled"
  183. #define REGISTRY_REALMPV2_OLD_ENABLED   "license.Summary.realmpeg2.Enabled"
  184. #define REGISTRY_REALMP4_ENABLED    "license.Summary.Datatypes.RealMPEG4.Enabled"
  185. #define REGISTRY_WINDOWSMEDIAASF_ENABLED  "license.Summary.Datatypes.WindowsMediaASF.Enabled"
  186. // Packeizers
  187. #define REGISTRY_3GPPPACKETIZER_ENABLED    "license.Summary.Datatypes.3GPPPacketizer.Enabled"
  188. //Proxy
  189. #define REGISTRY_RTSPPROXY_ENABLED  "license.Summary.Proxy.RTSP.Enabled"
  190. #define REGISTRY_RTSPPROXY_REDIRECT_ENABLED  "license.Summary.Proxy.RTSP.Redirect.Enabled"
  191. #define REGISTRY_PNAPROXY_ENABLED   "license.Summary.Proxy.PNA.Enabled"
  192. #define REGISTRY_PNAPROXY_REDIRECT_ENABLED  "license.Summary.Proxy.PNA.Redirect.Enabled"
  193. #define REGISTRY_PROXYMII_ENABLED   "license.Summary.Proxy.MediaImport.Enabled"
  194. //Edge
  195. #define REGISTRY_CONTENTREDIR_ENABLED  "license.Summary.EdgeServer.ContentRedirector.Enabled"
  196. #define REGISTRY_MULTICAST_RECEIVER    "license.Summary.EdgeServer.MulticastReceiver.Enabled"
  197. // Authentication Section
  198. #define REGISTRY_AUTH_PPV_ACCESS    "license.Summary.Authentication.Commerce.Access"
  199. #define REGISTRY_AUTH_PPV_PERMS     "license.Summary.Authentication.Commerce.Permissions"
  200. #define REGISTRY_AUTH_BASIC         "license.Summary.Authentication.Storage.Basic"
  201. #define REGISTRY_AUTH_MSQL          "license.Summary.Authentication.Storage.Msql"
  202. #define REGISTRY_AUTH_ODBC          "license.Summary.Authentication.Storage.Odbc"
  203. #define REGISTRY_AUTH_CONN          "license.Summary.Authentication.Commerce.ClientConnections"
  204. // Splitting Section
  205. #define REGISTRY_SPLITTER_PULL_SOURCE   
  206.                         "license.Summary.Splitter.Pull.Source"
  207. #define REGISTRY_SPLITTER_PULL_RECEIVER 
  208.                         "license.Summary.Splitter.Pull.Receiver"
  209. #define REGISTRY_SPLITTER_PUSH_SOURCE   
  210.                         "license.Summary.Splitter.Push.Source"
  211. #define REGISTRY_SPLITTER_PUSH_RECEIVER 
  212.                         "license.Summary.Splitter.Push.Receiver"
  213. // Splitting NG Section
  214. #define REGISTRY_BROADCAST_PULL_SOURCE   
  215. "license.Summary.BroadcastDistribution.PullTransmissionEnabled"
  216. #define REGISTRY_BROADCAST_PULL_RECEIVER 
  217. "license.Summary.BroadcastDistribution.PullReceiveEnabled"
  218. #define REGISTRY_BROADCAST_PROXY_PULL_RECEIVER 
  219. "license.Summary.BroadcastDistribution.ProxyPullSplitReceiveEnabled"
  220. #define REGISTRY_BROADCAST_PUSH_SOURCE   
  221. "license.Summary.BroadcastDistribution.PushTransmissionEnabled"
  222. #define REGISTRY_BROADCAST_PUSH_RECEIVER 
  223. "license.Summary.BroadcastDistribution.PushReceiveEnabled"
  224. #define REGISTRY_BROADCAST_MULTICAST 
  225. "license.Summary.BroadcastDistribution.EnableMulticastTransport"
  226. // Broadcast Redunancy Section
  227. #define REGISTRY_BROADCAST_REDUNDANCY   
  228. "license.Summary.BroadcastRedunancy.Enabled"
  229. // ISP Hosting Section
  230. #define REGISTRY_ISP_HOST_ENABLED   "license.Summary.ISP-Hosting.Enabled"
  231. // Ad Serving Section
  232. #define REGISTRY_ADS_ENABLED     "license.Summary.Ad Serving.Enabled"
  233. #define REGISTRY_ADS_FLEXIBLE     "license.Summary.Ad Serving.FlexibleAdInsertion"
  234. #define REGISTRY_ADS_DISABLE_SPONS  "license.Summary.Ad Serving.DisableTetheredAds"
  235. #define REGISTRY_ADS_ALLOW_EMBEDDED "license.Summary.Ad Serving.EmbeddedPlayersAllowed"
  236. #define REGISTRY_ADS_CONN "license.Summary.Ad Serving.ClientConnections"
  237. // Distributed Licensing
  238. #define REGISTRY_DISTLIC_PUBLISHER_ENABLED "license.Summary.DistributedLicensing.Publisher.Enabled"
  239. #define REGISTRY_DISTLIC_SUBSCRIBER_ENABLED "license.Summary.DistributedLicensing.Subscriber.Enabled"
  240. // Distributed Licensing
  241. #define REGISTRY_DATA_CONVERT_ENABLED "license.Summary.DataConversion.Enabled"
  242. // Content Distribution
  243. #define REGISTRY_CDIST_PUBLISHER "license.Summary.ContentDistribution.Publisher"
  244. #define REGISTRY_CDIST_SUBSCRIBER "license.Summary.ContentDistribution.Subscriber"
  245. // Templatized Logging
  246. #define REGISTRY_TEMPLATIZED_LOGGING_ENABLED "license.Summary.TemplateLogging.Enabled"
  247. // RTSP Event Logging
  248. #define REGISTRY_RTSP_EVENTSTATS_ENABLED    "license.Summary.RTSPEventStats.Enabled"
  249. // SDPGen Plugin
  250. #define REGISTRY_SDPGEN_ENABLED             "license.Summary.SDPFileGen.Enabled"
  251. /* File:
  252.  * Used by licrequest.cpp(servutil)
  253.  *
  254.  * Description:
  255.  *
  256.  *  IHXLicenseRequestResponse - Response interface for async license 
  257.  *  request
  258.  */
  259. #ifdef GUID_DEFINED
  260. // {b8676e90-625c-11d4-968500c0f031f80f}
  261. DEFINE_GUID( IID_IHXLicenseRequestResponse, 
  262.     0xb8676e90, 0x625c, 0x11d4, 0x96, 0x85, 0x00, 0xc0, 0xf0, 0x31, 0xf8, 0x0f);
  263. #undef  INTERFACE
  264. #define INTERFACE IHXLicenseRequestResponse
  265. DECLARE_INTERFACE(IHXLicenseRequestResponse)
  266. {
  267.     // *** IUnknown methods ***
  268.     STDMETHOD (QueryInterface )     (THIS_ 
  269.     REFIID ID,
  270.     void** ppInterfaceObj) PURE;
  271.     STDMETHOD_(UINT32, AddRef )     (THIS) PURE;
  272.     STDMETHOD_(UINT32, Release)     (THIS) PURE;
  273.     STDMETHOD(RequestComplete)(THIS_ HX_RESULT status) PURE;
  274. };
  275. #endif
  276. #endif // _DEFSLICE_H