hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/MProtocolObserver.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Callback functions for TCP protocol observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPROTOCOLOBSERVER_H
       
    21 #define MPROTOCOLOBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Events for protocol.
       
    30 */
       
    31 NONSHARABLE_CLASS( MProtocolObserver )
       
    32     {
       
    33 
       
    34     public: // Abstract functions
       
    35 
       
    36         /**
       
    37         * Frame has started.
       
    38         */
       
    39         virtual void FrameStarted() = 0;
       
    40 
       
    41         /**
       
    42         * Error occurred when parsing data.
       
    43         * @param aErrorCode Error code.
       
    44         * @param aReceivedData Whole frame that failed to be parsed.
       
    45         */
       
    46         virtual void ProtocolErrorL(
       
    47             TInt aErrorCode,
       
    48             const TDesC8& aReceivedData ) = 0;
       
    49 
       
    50     };
       
    51 
       
    52 #endif      // MPROTOCOLOBSERVER_H
       
    53 
       
    54 // End of File