hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/MBPExpression.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:  MExpression interface, defines basics for all the protocol
       
    15 *                expressions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MBPEXPRESSION_H
       
    22 #define MBPEXPRESSION_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32def.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 class MExpressionObserver;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  MProtocol interface.
       
    34 */
       
    35 NONSHARABLE_CLASS( MBPExpression )
       
    36     {
       
    37 
       
    38     public: // Abstract functions
       
    39 
       
    40         /**
       
    41         * Tries to handle the message, and informs if the msg does
       
    42         * not belong to it.
       
    43         *
       
    44         * @param aData Message to parse
       
    45         * @param aStartPos The index from where the message frame begins
       
    46         * @param aLength Length of the message
       
    47         * @return ETrue if the expression can handle the message,
       
    48         *         EFalse if not.
       
    49         */
       
    50         virtual TBool HandleRecievedMsgL(  TDes8& aData,
       
    51                                            TInt& aStartPos,
       
    52                                            TInt& aLength ) = 0;
       
    53 
       
    54         /** Virtual destructor
       
    55         *
       
    56         */
       
    57         virtual ~MBPExpression() {};
       
    58     };
       
    59 
       
    60 #endif      // MBPEXPRESSION_H
       
    61 
       
    62 // End of File