hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/CExprTCPCloseAll.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:  IP-Proxy TCP protocol expression for closing all phone side
       
    15 *                sockets.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CBPEXPRTCPCLOSEALL_H
       
    22 #define CBPEXPRTCPCLOSEALL_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 closing all socket ports
       
    40 */
       
    41 NONSHARABLE_CLASS( CExprTCPCloseAll ) : public CBase, public MBPExpression
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Factory function.
       
    47         * @param aObserver Pointer to observer.
       
    48         * @return New CBPExpression instance.
       
    49         */
       
    50         static CExprTCPCloseAll* NewL( MExpressionObserverTCP* aObserver );
       
    51 
       
    52         /**
       
    53         * Factory function.
       
    54         * @param aObserver Pointer to observer.
       
    55         * @return New CBPExpression instance.
       
    56         */
       
    57         static CExprTCPCloseAll* NewLC( MExpressionObserverTCP* aObserver );
       
    58 
       
    59         /**
       
    60         * Destructor.
       
    61         */
       
    62         ~CExprTCPCloseAll();
       
    63 
       
    64     public: // from MBPExpression
       
    65 
       
    66         TBool HandleRecievedMsgL( TDes8& aData, TInt& aStartPos, TInt& aLength );
       
    67 
       
    68     public: // new functions
       
    69 
       
    70         TInt TryParsing( TDes8& aData, TInt& aLength );
       
    71 
       
    72     private:
       
    73 
       
    74         /**
       
    75         * Default constructor.
       
    76         * @param aObserver Pointer to observer.
       
    77         */
       
    78         CExprTCPCloseAll( MExpressionObserverTCP* aObserver );
       
    79 
       
    80     private:    // Data
       
    81 
       
    82         MExpressionObserverTCP* iObserver;
       
    83     };
       
    84 
       
    85 #endif      // CBPEXPRTCPCLOSEALL_H
       
    86 
       
    87 // End of File