SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / protocol / IProtocolListener.java
1 package com.smartdevicelink.protocol;\r
2 \r
3 import com.smartdevicelink.protocol.enums.*;\r
4 \r
5 public interface IProtocolListener {\r
6         // Called to indicate that these bytes are to be sent as part of a message.\r
7         // This call includes the part of the message.\r
8         void onProtocolMessageBytesToSend(byte[] msgBytes, int offset, int length);\r
9 \r
10         // Called to indicate that a complete message (RPC, BULK, etc.) has been\r
11         // received.  This call includes the message.\r
12         void onProtocolMessageReceived(ProtocolMessage msg);\r
13 \r
14         // Called to indicate that a protocol session has been started (from either side)\r
15         void onProtocolSessionStarted(SessionType sessionType, byte sessionID, byte version, String correlationID);\r
16 \r
17         // Called to indicate that a protocol session has ended (from either side)\r
18         void onProtocolSessionEnded(SessionType sessionType, byte sessionID, String correlationID /*, String info, Exception ex*/);\r
19 \r
20         // Called to indicate that a protocol error was detected in received data.\r
21         void onProtocolError(String info, Exception e);\r
22 } // end-interfCe