@@ -30,35 +30,35 @@ namespace WPEFramework
30
30
{
31
31
enum { ID = ID_MIRACAST_SERVICE };
32
32
33
- enum ErrorCode : uint8_t
33
+ enum ReasonCode : uint8_t
34
34
{
35
- ERROR_CODE_SUCCESS = 100 /* @text SUCCESS */ ,
36
- ERROR_CODE_P2P_CONNECT_FAILURE = 101 /* @text P2P_CONNECT_FAILURE */ ,
37
- ERROR_CODE_P2P_GROUP_NEGOTIATION_FAILURE = 102 /* @text P2P_GROUP_NEGOTIATION_FAILURE */ ,
38
- ERROR_CODE_P2P_GROUP_FORMATION_FAILURE = 103 /* @text P2P_GROUP_FORMATION_FAILURE */ ,
39
- ERROR_CODE_GENERIC_FAILURE = 104 /* @text GENERIC_FAILURE */
35
+ REASON_CODE_SUCCESS = 100 /* @text SUCCESS */ ,
36
+ REASON_CODE_P2P_CONNECT_FAILURE = 101 /* @text P2P_CONNECT_FAILURE */ ,
37
+ REASON_CODE_P2P_GROUP_NEGOTIATION_FAILURE = 102 /* @text P2P_GROUP_NEGOTIATION_FAILURE */ ,
38
+ REASON_CODE_P2P_GROUP_FORMATION_FAILURE = 103 /* @text P2P_GROUP_FORMATION_FAILURE */ ,
39
+ REASON_CODE_GENERIC_FAILURE = 104 /* @text GENERIC_FAILURE */
40
40
};
41
41
42
42
enum PlayerState : uint8_t
43
43
{
44
- STATE_IDLE = 0 /* @text IDLE */ ,
45
- STATE_INITIATED = 1 /* @text INITIATED */ ,
46
- STATE_INPROGRESS = 2 /* @text INPROGRESS */ ,
47
- STATE_PLAYING = 3 /* @text PLAYING */ ,
48
- STATE_STOPPED = 4 /* @text STOPPED */
44
+ PLAYER_STATE_IDLE = 0 /* @text IDLE */ ,
45
+ PLAYER_STATE_INITIATED = 1 /* @text INITIATED */ ,
46
+ PLAYER_STATE_INPROGRESS = 2 /* @text INPROGRESS */ ,
47
+ PLAYER_STATE_PLAYING = 3 /* @text PLAYING */ ,
48
+ PLAYER_STATE_STOPPED = 4 /* @text STOPPED */
49
49
};
50
50
51
- enum PlayerErrorCode : uint8_t
51
+ enum PlayerReasonCode : uint8_t
52
52
{
53
- ERROR_CODE_SUCCESS = 200 /* @text SUCCESS */ ,
54
- ERROR_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */ ,
55
- ERROR_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */ ,
56
- ERROR_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */ ,
57
- ERROR_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */ ,
58
- ERROR_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */ ,
59
- ERROR_CODE_GST_ERROR = 206 /* @text GST_FAILURE */ ,
60
- ERROR_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */ ,
61
- ERROR_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */ ,
53
+ PLAYER_REASON_CODE_SUCCESS = 200 /* @text SUCCESS */ ,
54
+ PLAYER_REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */ ,
55
+ PLAYER_REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */ ,
56
+ PLAYER_REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */ ,
57
+ PLAYER_REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */ ,
58
+ PLAYER_REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */ ,
59
+ PLAYER_REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */ ,
60
+ PLAYER_REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */ ,
61
+ PLAYER_REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */ ,
62
62
};
63
63
64
64
enum LogLevel : uint8_t
@@ -108,7 +108,7 @@ namespace WPEFramework
108
108
// @param clientName: Name of the client device
109
109
// @param errorCode: Error code for the connection failure
110
110
// @param reason: Reason for the connection failure
111
- virtual void OnClientConnectionError (const string &clientMac /* @text mac */ , const string &clientName /* @text name */ , const ErrorCode &reason /* @text reason */ , const string &errorCodeStr /* @text error_code */ ) {};
111
+ virtual void OnClientConnectionError (const string &clientMac /* @text mac */ , const string &clientName /* @text name */ , const ReasonCode &reason /* @text reason */ , const string &reasonCodeStr /* @text error_code */ ) {};
112
112
113
113
// @brief Miracast Service Plugin raises this Event to request RA or MiracastWidget to launch the Miracast Player
114
114
// @text onLaunchRequest
@@ -157,7 +157,7 @@ namespace WPEFramework
157
157
// @param reasonCode: Reason code for the player state update
158
158
// @param reason: Reason for the player state update
159
159
// @param success: Is the operation successful or not
160
- virtual Core::hresult UpdatePlayerState (const string &clientMac /* @in @text mac */ , const PlayerState &playerState /* @in @text state */ , const PlayerErrorCode &reasonCode /* @in @text reason_code */ , Result &returnPayload /* @out */ ) = 0;
160
+ virtual Core::hresult UpdatePlayerState (const string &clientMac /* @in @text mac */ , const PlayerState &playerState /* @in @text state */ , const PlayerReasonCode &reasonCode /* @in @text reason_code */ , Result &returnPayload /* @out */ ) = 0;
161
161
162
162
// @brief Enable or Disable or Reduce the Logging level for Miracast
163
163
// @text setLogging
0 commit comments