codhandler/codeng/inc/HttpSessionBase.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 CHttpSessionBase.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef HTTP_SESSION_BASE_H
       
    22 #define HTTP_SESSION_BASE_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <http.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * HTTP Session base class. Abstraction of the two derived class of sessions,
       
    33 * WAP and TCP.
       
    34 */
       
    35 NONSHARABLE_CLASS( CHttpSessionBase ): public CBase
       
    36     {
       
    37     public:     // Constructors and destructor.
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         virtual ~CHttpSessionBase();
       
    43 
       
    44     public:     // new methods
       
    45 
       
    46         /**
       
    47         * Connect session.
       
    48         * @param aStatus Completes when done.
       
    49         */
       
    50         virtual void ConnectL( TRequestStatus* aStatus ) = 0;
       
    51 
       
    52         /**
       
    53         * Disconnect session. Safe to call if not connected. Use this to
       
    54         * cancel an outstanding ConnectL.
       
    55         */
       
    56         virtual void Disconnect() = 0;
       
    57 
       
    58         /**
       
    59         * Get underlying HTTP session.
       
    60         */
       
    61         inline RHTTPSession& Sess();
       
    62 
       
    63     protected:    // Constructors and destructor.
       
    64 
       
    65         /**
       
    66         * Constructor.
       
    67         */
       
    68         CHttpSessionBase();
       
    69 
       
    70     protected:  // data
       
    71 
       
    72         RHTTPSession iSess;    ///< HTTP Session handle.
       
    73 
       
    74     };
       
    75 
       
    76 #include "HttpSessionBase.inl"
       
    77 
       
    78 #endif /* def HTTP_SESSION_BASE_H */