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

Symbian

开发平台:

C/C++

  1. //////////////////////////////////////////////////////////////////////////
  2. // Simpified Error Mapping from HX_RESULT to handful of error resources
  3. // See chxavplayer.rss for Resource ID's.
  4. // See chxavplayerr.h (this file) for HX_RESULT -> Resource ID's.
  5. // All resource text for localisation reside in this module for this
  6. // Player.
  7. //////////////////////////////////////////////////////////////////////////
  8. #ifndef HXPLAYERR_H_
  9. #define HXPLAYERR_H_
  10. static struct errorStringTable
  11. {
  12.     HX_RESULT    m_ulErrorTag;
  13.     UINT32       m_ulErrorStringID;
  14. } const ErrorStringTable[] =
  15. {
  16.     {HXR_FAILED,                R_ERR_FAILURE},                 // 1 "General error. An error occurred"
  17.     {HXR_OUTOFMEMORY,           R_ERR_NO_MEMORY},                  // 2 "Out of memory."
  18.     {HXR_INVALID_OPERATION,     R_ERR_FAILURE},             // 3 "Invalid Operation."
  19.     // state errors/return values
  20.     {HXR_INVALID_PARAMETER,     R_ERR_FAILURE},             // 8 "Invalid parameter. Unable to process request."
  21.     {HXR_NOT_INITIALIZED,       R_ERR_FAILURE},         // 10 "Not initialized."
  22.     // file errors
  23.     {HXR_INVALID_FILE,          R_ERR_UNRECOGNIZED_FORMAT},                  // 11 "This document is not a RealAudio document."
  24.     {HXR_INVALID_VERSION,       R_ERR_UNRECOGNIZED_FORMAT},               // 12 "Invalid RealAudio file version number."
  25.     {HXR_DOC_MISSING,           R_ERR_FILE_NOT_FOUND},             // 14 "Requested file not found. The link you followed may be outdated or inaccurate."
  26.     {HXR_BAD_FORMAT,            R_ERR_UNRECOGNIZED_FORMAT},                  // 15 "Unknown data format."
  27.     {HXR_CORRUPT_FILE,          R_ERR_CORRUPT_FILE}, //"File header or data size is corrupt
  28.     {HXR_REQUEST_UPGRADE,       R_ERR_MISSING_COMPONENT},                 // "A decoder or other necessary renderer component is missing."
  29.     // server errors
  30.     {HXR_NET_SOCKET_INVALID,    R_ERR_NETWORK},            // 18 "Invalid socket error."
  31.     {HXR_NET_CONNECT,           R_ERR_FAILED_TO_CONNECT},             // 19 "An error occurred while trying to connect to the RealAudio Server."
  32.     {HXR_BIND,                  R_ERR_FAILED_TO_CONNECT},                    // 20 "An error occurred binding to network socket."
  33.     {HXR_SOCKET_CREATE,         R_ERR_NETWORK},           // 21 "An error occurred while creating a network socket."
  34.     {HXR_INVALID_HOST,          R_ERR_INVALID_URL},                  // 22 "Requested server is not valid."
  35.     {HXR_INVALID_PATH,          R_ERR_INVALID_URL},                  // 23 "Requested URL is not valid."
  36.     {HXR_NET_READ,              R_ERR_NETWORK},                // 24 "An error occurred while reading data from the network."
  37.     {HXR_NET_WRITE,             R_ERR_NETWORK},               // 25 "An error occurred while writing data to the network."
  38.     {HXR_NET_UDP,               R_ERR_NETWORK},                 // 26 "Player cannot receive UDP data packets. You may wish to try the TCP data
  39.     {HXR_HTTP_CONNECT,          R_ERR_FAILED_TO_CONNECT},            // 25
  40.     //     option in the Network Preferences. You may also want to configure your player
  41.     //     to use a firewall proxy. Please contact your system adminstrator for more information."
  42.     {HXR_SERVER_TIMEOUT,        R_ERR_CONNECTION_TIMEOUT},                // 28 "Server timeout. Server not responding."
  43.     {HXR_SERVER_DISCONNECTED,   R_ERR_SERVER_DISCONNECT},           // 29 "Server disconnected. The server may be too busy or not available at this time."
  44.     {HXR_DNR,                   R_ERR_CANNOT_RESOLVE},                     // 30 "Cannot resolve the requested network address."
  45.     {HXR_OPEN_DRIVER,           R_ERR_CRITICAL_ERROR},             // 31 "Cannot open the network drivers."
  46.     {HXR_BAD_SERVER,            R_ERR_PROTOCOL_ERROR},              // 34 "This server is not using a recognized protocol."
  47.     {HXR_ADVANCED_SERVER,       R_ERR_UNRECOGNIZED_FORMAT},         // 35 "You need a newer client to access this server. Please upgrade."
  48.     {HXR_OLD_SERVER,            R_ERR_UNRECOGNIZED_FORMAT},              // 36 "Connection closed. The host's version of the RealAudio Server is too old for this client."
  49.     {HXR_SERVER_ALERT,          R_ERR_SERVER_ERROR},                  // 45 "Server alert"
  50.     // decoder errors
  51.     {HXR_DEC_NOT_FOUND,         R_ERR_CODEC_FAILURE},                 // 38 "File compression not supported. Cannot locate the requested RealAudio decoder."
  52.     {HXR_DEC_INVALID,           R_ERR_CODEC_FAILURE},                   // 39 "Invalid decoder."
  53.     {HXR_DEC_TYPE_MISMATCH,     R_ERR_CODEC_FAILURE},             // 40 "Decoder type mismatch. Cannot load the requested decoder."
  54.     {HXR_DEC_INIT_FAILED,       R_ERR_CODEC_FAILURE},               // 41 "Requested RealAudio Decoder cannot be found or cannot be used on this machine."
  55.     {HXR_DEC_NOT_INITED,        R_ERR_CODEC_FAILURE},                // 42 "RealAudio Decoder was not initialized before attempting to use it."
  56.     {HXR_DEC_DECOMPRESS,        R_ERR_CODEC_FAILURE},          // 43 "An error occurred during decoding."
  57.     {HXR_NO_CODECS,             R_ERR_UNRECOGNIZED_FORMAT},                     // 87 "No RealAudio Codecs have been installed on your system."
  58.     // proxy errors
  59.     {HXR_PROXY,                 R_ERR_PROXY_ERROR},                   // 46 "Proxy status error"
  60.     {HXR_PROXY_RESPONSE,        R_ERR_PROXY_ERROR},          // 47 "Proxy invalid response error"
  61.     {HXR_ADVANCED_PROXY,        R_ERR_PROXY_ERROR},          // 48 "You need a newer client to access this proxy. Please upgrade."
  62.     {HXR_OLD_PROXY,             R_ERR_PROXY_ERROR},               // 49 "Connection closed. The proxy is too old for this client."
  63.     // audio errors
  64.     {HXR_AUDIO_DRIVER,          R_ERR_AUDIO_DEV_OPEN_FAIL},            // 50 "Cannot open audio device."
  65.     // parsing errors
  66.     {HXR_INVALID_PROTOCOL,      R_ERR_INVALID_URL},        // 51 "Invalid protocol specified in URL."
  67.     {HXR_INVALID_URL_OPTION,    R_ERR_INVALID_URL},      // 52 "Invalid option specified in URL."
  68.     {HXR_INVALID_URL_HOST,      R_ERR_INVALID_URL},              // 53 "Invalid host string in requested URL."
  69.     {HXR_INVALID_URL_PATH,      R_ERR_INVALID_URL},              // 54 "Invalid resource path string in requested URL."
  70.     {HXR_GENERAL_NONET,         R_ERR_NETWORK},                 // 55 "Error locating Winsock Services."
  71.     // More errors
  72.     {HXR_PERFECTPLAY_NOT_SUPPORTED,     R_ERR_PROTOCOL_ERROR},     // 75, Requested server does not support PerfectPlay.
  73.     {HXR_NO_LIVE_PERFECTPLAY,           R_ERR_PROTOCOL_ERROR},           // 76, PerfectPlay not supported for live streams.
  74.     {HXR_PERFECTPLAY_NOT_ALLOWED,       R_ERR_PROTOCOL_ERROR},       // 78, PerfectPlay not allowed on this clip.
  75.     {HXR_MULTICAST_JOIN,                R_ERR_PROTOCOL_ERROR},          // 84, An error occured attempting to join multicast session.
  76.     {HXR_GENERAL_MULTICAST,             R_ERR_PROTOCOL_ERROR},       // 85, An error occured accessing a multicast session.
  77.     {HXR_MULTICAST_UDP,                 R_ERR_PROTOCOL_ERROR},           // 86 "Player cannot receive UDP data packets from multicast session.
  78.                                                                                 // You may wish to try the TCP data option in the Network Preferences.
  79.                                                                                 // You may also want to configure your player to use a firewall proxy.
  80.                                                                                 // Please contact your system adminstrator for more information."
  81.     {HXR_SLOW_MACHINE,                  R_ERR_CLIP_NOT_PLAYABLE},                  // 88 "Your machine does not have enough CPU power to play this file in real time."
  82.     {HXR_INVALID_HTTP_PROXY_HOST,       R_ERR_PROXY_ERROR},       // 90 Invalid hostname for HTTP proxy.
  83.     {HXR_INVALID_METAFILE,              R_ERR_UNRECOGNIZED_FORMAT},              // 90 Invalid hostname for HTTP proxy.
  84.     {HXR_NO_FILEFORMAT,                 R_ERR_UNRECOGNIZED_FORMAT},            // Missing components
  85.     {HXR_NO_RENDERER,                   R_ERR_UNRECOGNIZED_FORMAT},            // Missing components
  86.     {HXR_MISSING_COMPONENTS,            R_ERR_UNRECOGNIZED_FORMAT},            // Missing components
  87.     {HXR_BAD_TRANSPORT,                 R_ERR_SYSTEM_ERROR},                 // 94 Transport not recognized
  88.     {HXR_NOT_AUTHORIZED,                R_ERR_NOT_AUTHORIZED },
  89.     {HXR_NOTENOUGH_BANDWIDTH,           R_ERR_NOT_ENOUGH_BW},
  90.     {HXR_RIGHTS_EXPIRED,                R_ERR_NO_RESOURCE},                // 1082 Digital Rights have expired.
  91.     {HXR_RESTORATION_COMPLETE,          R_ERR_NO_RESOURCE},          // restoration done.
  92.     {HXR_BACKUP_COMPLETE,               R_ERR_NO_RESOURCE},               // backup done.
  93.     {HXR_TLC_NOT_CERTIFIED,             R_ERR_NO_RESOURCE},             // tlc not certified
  94.     {HXR_CORRUPTED_BACKUP_FILE,         R_ERR_NO_RESOURCE},         // corrupted backup file
  95.     {HXR_CHECK_RIGHTS,                  R_ERR_NO_RESOURCE},                  // Check for more Rights
  96.     {HXR_RESTORE_SERVER_DENIED,         R_ERR_NO_RESOURCE},         // Restoration Denial from server.
  97.     {HXR_DEBUGGER_DETECTED,             R_ERR_FAILURE},             // Debugger detected.
  98.     {HXR_RESTORE_SERVER_CONNECT,        R_ERR_SERVER_ERROR},        // Cannot connect to Restore server .
  99.     {HXR_RESTORE_SERVER_TIMEOUT,        R_ERR_SERVER_ERROR},        // Restore server timeout.
  100.     {HXR_REVOKE_SERVER_CONNECT,         R_ERR_SERVER_ERROR},         // Cannot connect to Revoke server.
  101.     {HXR_REVOKE_SERVER_TIMEOUT,         R_ERR_CONNECTION_TIMEOUT},         // Revoke server timeout.
  102.     {HXR_UNSUPPORTED_VIDEO,             R_ERR_UNRECOGNIZED_FORMAT},             // 105 "The file contains an unsupported video format"
  103.     {HXR_UNSUPPORTED_AUDIO,             R_ERR_UNRECOGNIZED_FORMAT},             // 106 "The file contains an unsupported audio format"
  104.     {HXR_TRY_AUTOCONFIG,                R_ERR_FAILURE},                // 107 "AutoConfig needs to be performed"
  105.     {HXR_PROXY_DNR,                     R_ERR_PROXY_ERROR},               // 108 "Unable to locate proxy server. This proxy server does not have a DNS entry. Please check the proxy server name and try again"
  106.     {HXR_PROXY_NET_CONNECT,             R_ERR_PROXY_ERROR},       // 109 "Connection to proxy server could not be established. You may be experiencing network problems."
  107.     {HXR_VIEW_SOURCE_NOCLIP,            R_ERR_NO_RESOURCE},            // 80 "No clip is avalible."
  108.     {HXR_VIEW_SOURCE_DISSABLED,         R_ERR_NO_RESOURCE},         // 81 "The provider of this content has not granted permission to view the source."
  109.     {HXR_VSRC_DISABLED,                 R_ERR_NO_RESOURCE},                 // "Select More Info to learn about viewing clip source."
  110.     {HXR_VSRC_NOCLIP,                   R_ERR_NO_RESOURCE},                   // "Select More Info to learn about viewing clip source."
  111.     {HXR_WINDRAW_EXCEPTION,             R_ERR_NO_RESOURCE},             // 98 "A windraw operation crashed."
  112.     {HXR_VIEW_RIGHTS_NODRM,             R_ERR_NO_RESOURCE},
  113.     {HXR_VSRC_NODRM,                    R_ERR_NO_RESOURCE},
  114.     // server alerts
  115.     {HXR_SE_NO_ERROR,                     R_ERR_SERVER_ERROR},
  116.     {HXR_SE_INVALID_VERSION,              R_ERR_SERVER_ERROR},
  117.     {HXR_SE_INVALID_FORMAT,               R_ERR_SERVER_ERROR},
  118.     {HXR_SE_INVALID_BANDWIDTH,            R_ERR_SERVER_ERROR},
  119.     {HXR_SE_INVALID_PATH,                 R_ERR_SERVER_ERROR},
  120.     {HXR_SE_UNKNOWN_PATH,                 R_ERR_SERVER_ERROR},
  121.     {HXR_SE_INVALID_PROTOCOL,             R_ERR_SERVER_ERROR},
  122.     {HXR_SE_INVALID_PLAYER_ADDR,          R_ERR_SERVER_ERROR},
  123.     {HXR_SE_LOCAL_STREAMS_PROHIBITED,     R_ERR_SERVER_ERROR},
  124.     {HXR_SE_SERVER_FULL,                  R_ERR_SERVER_ERROR},
  125.     {HXR_SE_REMOTE_STREAMS_PROHIBITED,    R_ERR_SERVER_ERROR},
  126.     {HXR_SE_EVENT_STREAMS_PROHIBITED,     R_ERR_SERVER_ERROR},
  127.     {HXR_SE_INVALID_HOST,                 R_ERR_SERVER_ERROR},
  128.     {HXR_SE_NO_CODEC,                     R_ERR_SERVER_ERROR},
  129.     {HXR_SE_LIVEFILE_INVALID_BWN,         R_ERR_SERVER_ERROR},
  130.     {HXR_SE_UNABLE_TO_FULFILL,            R_ERR_SERVER_ERROR},
  131.     {HXR_SE_MULTICAST_DELIVERY_ONLY,      R_ERR_SERVER_ERROR},
  132.     {HXR_SE_LICENSE_EXCEEDED,             R_ERR_SERVER_ERROR},
  133.     {HXR_SE_LICENSE_UNAVAILABLE,          R_ERR_SERVER_ERROR},
  134.     {HXR_SE_INVALID_LOSS_CORRECTION,      R_ERR_SERVER_ERROR},
  135.     {HXR_SE_PROTOCOL_FAILURE,             R_ERR_SERVER_ERROR},
  136.     {HXR_SE_REALVIDEO_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
  137.     {HXR_SE_REALAUDIO_STREAMS_PROHIBITED, R_ERR_SERVER_ERROR},
  138.     {HXR_SE_DATATYPE_UNSUPPORTED,         R_ERR_SERVER_ERROR},
  139.     {HXR_SE_DATATYPE_UNLICENSED,          R_ERR_SERVER_ERROR},
  140.     {HXR_SE_RESTRICTED_PLAYER,            R_ERR_SERVER_ERROR},
  141.     {HXR_SE_STREAM_INITIALIZING,          R_ERR_SERVER_ERROR},
  142.     {HXR_SE_INVALID_PLAYER,               R_ERR_SERVER_ERROR},
  143.     {HXR_SE_PLAYER_PLUS_ONLY,             R_ERR_SERVER_ERROR},
  144.     {HXR_SE_NO_EMBEDDED_PLAYERS,          R_ERR_SERVER_ERROR},
  145.     {HXR_SE_PNA_PROHIBITED,               R_ERR_SERVER_ERROR},
  146.     {HXR_SE_AUTHENTICATION_UNSUPPORTED,   R_ERR_SERVER_ERROR},
  147.     {HXR_SE_MAX_FAILED_AUTHENTICATIONS,   R_ERR_SERVER_ERROR},
  148.     {HXR_SE_AUTH_ACCESS_DENIED,           R_ERR_SERVER_ERROR},
  149.     {HXR_SE_AUTH_UUID_READ_ONLY,          R_ERR_SERVER_ERROR},
  150.     {HXR_SE_AUTH_UUID_NOT_UNIQUE,         R_ERR_SERVER_ERROR},
  151.     {HXR_SE_AUTH_NO_SUCH_USER,            R_ERR_SERVER_ERROR},
  152.     {HXR_SE_AUTH_REGISTRATION_SUCCEEDED,  R_ERR_SERVER_ERROR},
  153.     {HXR_SE_AUTH_REGISTRATION_FAILED,     R_ERR_SERVER_ERROR},
  154.     {HXR_SE_AUTH_REGISTRATION_GUID_REQUIRED, R_ERR_SERVER_ERROR},
  155.     {HXR_SE_AUTH_UNREGISTERED_PLAYER,     R_ERR_SERVER_ERROR},
  156.     {HXR_SE_AUTH_TIME_EXPIRED,            R_ERR_SERVER_ERROR},
  157.     {HXR_SE_AUTH_NO_TIME_LEFT,            R_ERR_SERVER_ERROR},
  158.     {HXR_SE_AUTH_ACCOUNT_LOCKED,          R_ERR_SERVER_ERROR},
  159.     {HXR_SE_AUTH_INVALID_SERVER_CFG,      R_ERR_SERVER_ERROR},
  160.     {HXR_SE_NO_MOBILE_DOWNLOAD,           R_ERR_SERVER_ERROR},
  161.     {HXR_SE_NO_MORE_MULTI_ADDR,           R_ERR_SERVER_ERROR},
  162.     {HXR_PE_PROXY_MAX_CONNECTIONS,        R_ERR_SERVER_ERROR},
  163.     {HXR_PE_PROXY_MAX_GW_BANDWIDTH,       R_ERR_SERVER_ERROR},
  164.     {HXR_PE_PROXY_MAX_BANDWIDTH,          R_ERR_SERVER_ERROR},
  165.     {HXR_SE_BAD_LOADTEST_PASSWORD,        R_ERR_SERVER_ERROR},
  166.     {HXR_SE_PNA_NOT_SUPPORTED,            R_ERR_SERVER_ERROR},
  167.     {HXR_PE_PROXY_ORIGIN_DISCONNECTED,    R_ERR_SERVER_ERROR},
  168.     {HXR_SE_INTERNAL_ERROR,               R_ERR_SERVER_ERROR}
  169. };
  170. #endif