srcerrs.h
来自「symbian 下的helix player源代码」· C头文件 代码 · 共 308 行 · 第 1/2 页
H
308 行
/* ***** BEGIN LICENSE BLOCK *****
* Source last modified: $Id: srcerrs.h,v 1.3.26.3 2004/07/09 01:45:13 hubbe Exp $
*
* Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file,
* are subject to the current version of the RealNetworks Public
* Source License (the "RPSL") available at
* http://www.helixcommunity.org/content/rpsl unless you have licensed
* the file under the current version of the RealNetworks Community
* Source License (the "RCSL") available at
* http://www.helixcommunity.org/content/rcsl, in which case the RCSL
* will apply. You may also obtain the license terms directly from
* RealNetworks. You may not use this file except in compliance with
* the RPSL or, if you have a valid RCSL with RealNetworks applicable
* to this file, the RCSL. Please see the applicable RPSL or RCSL for
* the rights, obligations and limitations governing use of the
* contents of the file.
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL") in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your version of
* this file only under the terms of the GPL, and not to allow others
* to use your version of this file under the terms of either the RPSL
* or RCSL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient may
* use your version of this file under the terms of any one of the
* RPSL, the RCSL or the GPL.
*
* This file is part of the Helix DNA Technology. RealNetworks is the
* developer of the Original Code and owns the copyrights in the
* portions it created.
*
* This file, and the files included with this file, is distributed
* and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
* ENJOYMENT OR NON-INFRINGEMENT.
*
* Technology Compatibility Kit Test Suite(s) Location:
* http://www.helixcommunity.org/content/tck
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** */
#ifndef _SRCERRS_H_
#define _SRCERRS_H_
/*
NOTE: When modifying the list of ServerAlerts (adding/subtracting messages)
you also have to update the following files:
client/resources/pub/saerrs.h
-Add/Remove unique IDS_
client/core/hxresmgr.cpp
-Add/Remove HXR_ to IDX_ mapping in ErrorStringTable[]
common/include/hxresult.h
-Add/Remove unique HXR_SE
*/
enum StreamError {
SE_NO_ERROR = 0, // No Error!
SE_INVALID_VERSION, // PNA Specific Error
SE_INVALID_FORMAT, // Reported as `Request Failed'
SE_INVALID_BANDWIDTH, // PNA Specific Error
SE_INVALID_PATH, // Reported as `Request Failed'
SE_UNKNOWN_PATH, // Reported as `Request Failed'
SE_INVALID_PROTOCOL, // Reported as `Request Failed'
SE_INVALID_PLAYER_ADDR, // Reported as `Request Failed'
SE_LOCAL_STREAMS_PROHIBITED, // XXXSMP Not Implemented Yet!
SE_SERVER_FULL, // Maximum Capacity Reached
SE_REMOTE_STREAMS_PROHIBITED, // XXXSMP Not Implemented Yet!
SE_EVENT_STREAMS_PROHIBITED, // XXXSMP Not Implemented Yet!
SE_INVALID_HOST, // XXXSMP Not Implemented Yet!
SE_NO_CODEC, // PNA Specific Error
SE_LIVEFILE_INVALID_BWN, // XXXSMP Should be Deprecated
SE_UNABLE_TO_FULFILL, // XXXSMP Should be Deprecated
SE_MULTICAST_DELIVERY_ONLY, // XXXSMP Not Implemented Yet!
SE_LICENSE_EXCEEDED, // XXXSMP Not Implemented Yet!
SE_LICENSE_UNAVAILABLE, // XXXSMP Not Implemented Yet!
SE_INVALID_LOSS_CORRECTION, // PNA Specific Error
SE_PROTOCOL_FAILURE, // Reported as update player
SE_REALVIDEO_STREAMS_PROHIBITED,
SE_REALAUDIO_STREAMS_PROHIBITED,
SE_DATATYPE_UNSUPPORTED,
SE_DATATYPE_UNLICENSED,
SE_RESTRICTED_PLAYER,
SE_STREAM_INITIALIZING,
SE_INVALID_PLAYER, // Not RealNetworks Player
SE_PLAYER_PLUS_ONLY, // Player Plus only content
SE_NO_EMBEDDED_PLAYERS, // Embedded players prohibited
SE_PNA_PROHIBITED, // PNA unsupported
// authentication
SE_AUTHENTICATION_UNSUPPORTED,
SE_MAX_FAILED_AUTHENTICATIONS,
SE_AUTH_ACCESS_DENIED,
SE_AUTH_UUID_READ_ONLY,
SE_AUTH_UUID_NOT_UNIQUE,
SE_AUTH_NO_SUCH_USER,
SE_AUTH_REGISTRATION_SUCCEEDED,
SE_AUTH_REGISTRATION_FAILED,
SE_AUTH_REGISTRATION_GUID_REQUIRED,
SE_AUTH_UNREGISTERED_PLAYER,
SE_AUTH_TIME_EXPIRED,
SE_AUTH_NO_TIME_LEFT,
SE_AUTH_ACCOUNT_LOCKED,
SE_AUTH_INVALID_SERVER_CFG,
SE_NO_MOBILE_DOWNLOAD,
// XXXGo
SE_NO_MORE_MULTI_ADDR,
// "PE_XXXX" are Proxy alerts
PE_PROXY_MAX_CONNECTIONS,
PE_PROXY_MAX_GW_BANDWIDTH,
PE_PROXY_MAX_BANDWIDTH,
SE_BAD_LOADTEST_PASSWORD,
SE_PNA_NOT_SUPPORTED,
PE_PROXY_ORIGIN_DISCONNECTED,
/* Make sure you add new error codes *ABOVE* this line */
SE_INTERNAL_ERROR
};
static const char* const error_description_table[] =
{
"", // SE_NO_ERROR
"Invalid version", // SE_INVALID_VERSION
"", // SE_INVALID_FORMAT
"Insuffient bandwidth", // SE_INVALID_BANDWIDTH
"Invalid path", // SE_INVALID_PATH
"Invalid path", // SE_UNKNOWN_PATH
"Invalid protocol", // SE_INVALID_PROTOCOL
"Invalid player IP Address", // SE_INVALID_PLAYER_ADDR
"Not configured for local streams", // SE_LOCAL_STREAMS_PROHIBITED
"Server full", // SE_SERVER_FULL
"Not configured for remote streams", // SE_REMOTE_STREAMS_PROHIBITED
"Not configured for events", // SE_EVENT_STREAMS_PROHIBITED
"Invalid host", // SE_INVALID_HOST
"Codec error", // SE_NO_CODEC
"Livefile codec/bandwidth error", // SE_LIVEFILE_INVALID_BWN
"Licensing error", // SE_UNABLE_TO_FULFILL
"Multicast delivery only", // SE_MULTICAST_DELIVERY_ONLY
"License exceeded", // SE_LICENSE_EXCEEDED
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?