codhandler/codeng/inc/HttpTcpSession.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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: 
       
    15 *      Declaration of class CHttpTcpSession.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef HTTP_TCP_SESSION_H
       
    22 #define HTTP_TCP_SESSION_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 #include "HttpSessionBase.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * TCP Session.
       
    33 */
       
    34 NONSHARABLE_CLASS( CHttpTcpSession ): public CHttpSessionBase
       
    35     {
       
    36     public:     // Constructors and destructor.
       
    37 
       
    38         /**
       
    39         * Two phased constructor. Leaves on failure.
       
    40         * @return The created session.
       
    41         */      
       
    42         static CHttpTcpSession* NewL();
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CHttpTcpSession();
       
    48 
       
    49     public:     // from CHttpSessionBase
       
    50 
       
    51         /**
       
    52         * Connect session. Does nothing.
       
    53         * @param aStatus Completes immediately with KErrNone..
       
    54         */
       
    55         virtual void ConnectL( TRequestStatus* aStatus );
       
    56 
       
    57         /**
       
    58         * Disconnect session. Does nothing.
       
    59         */
       
    60         virtual void Disconnect();
       
    61 
       
    62     protected:    // Constructors and destructor.
       
    63 
       
    64         /**
       
    65         * Constructor.
       
    66         */
       
    67         CHttpTcpSession();
       
    68 
       
    69         /**
       
    70         * Second phase constructor. Leaves on failure.
       
    71         */      
       
    72         void ConstructL();
       
    73         
       
    74     };
       
    75 
       
    76 #endif /* def HTTP_TCP_SESSION_H */