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

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