hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/CExprTCPOpen.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:  IPProxy TCP protocol expression for opening phone side TCP
       
    15 *                connection.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CBPEXPRTCPOPEN_H
       
    22 #define CBPEXPRTCPOPEN_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 #include "MBPExpression.h"
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 
       
    34 class MExpressionObserverTCP;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  TCP protocol expression for opening a new TCP connection from PC-side
       
    40 *  to phone side port
       
    41 */
       
    42 NONSHARABLE_CLASS( CExprTCPOpen ) : public CBase, public MBPExpression
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Factory function.
       
    48         * @param aObserver Pointer to observer.
       
    49         * @return New CBPExpression instance.
       
    50         */
       
    51         static CExprTCPOpen* NewL( MExpressionObserverTCP* aObserver );
       
    52 
       
    53         /**
       
    54         * Factory function.
       
    55         * @param aObserver Pointer to observer.
       
    56         * @return New CBPExpression instance.
       
    57         */
       
    58         static CExprTCPOpen* NewLC( MExpressionObserverTCP* aObserver );
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         ~CExprTCPOpen();
       
    64 
       
    65     public: // from MBPExpression
       
    66 
       
    67         TBool HandleRecievedMsgL( TDes8& aData, TInt& aStartPos, TInt& aLength );
       
    68 
       
    69     public: // new functions
       
    70 
       
    71         TInt TryParsingL( TDes8& aData, TInt& aLength );
       
    72 
       
    73     private:
       
    74 
       
    75         /**
       
    76         * Default constructor.
       
    77         * @param aObserver Pointer to observer.
       
    78         */
       
    79         CExprTCPOpen( MExpressionObserverTCP* aObserver );
       
    80 
       
    81     private:    // Data
       
    82 
       
    83         MExpressionObserverTCP* iObserver;
       
    84     };
       
    85 
       
    86 #endif      // CBPEXPRTCPOPEN_H
       
    87 
       
    88 // End of File