xdmprotocols/XcapProtocol/XcapHttpTransport/inc/XcapHttpReqHead.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     1 /*
       
     2 * Copyright (c) 2008 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:   CXcapHttpReqHead
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __XCAPHTTPREQHEAD__
       
    19 #define __XCAPHTTPREQHEAD__
       
    20 
       
    21 // INCLUDES
       
    22 #include "http.h"
       
    23 #include "XcapHttpRequest.h"
       
    24 
       
    25 //CONSTANTS
       
    26 _LIT8( KXcapRequestHead, "HEAD" );
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 class CXdmHttpResponse;
       
    30 class CXcapHttpAuthManager;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 NONSHARABLE_CLASS( CXcapHttpReqHead ) : public CXcapHttpRequest
       
    34     {
       
    35     public:
       
    36         
       
    37         /**
       
    38         * C++ default constructor is private.
       
    39         */      
       
    40         static CXcapHttpReqHead* NewL( const TDesC& aRequestUri,         
       
    41                                       RHTTPSession& aHttpSession,
       
    42                                       CXcapHttpAuthManager& aAuthManager,
       
    43                                       CXcapHttpTransport& aTransportMain );
       
    44 
       
    45          /**
       
    46         * Destructor.
       
    47         */      
       
    48         virtual ~CXcapHttpReqHead();
       
    49 
       
    50     private:  // Constructors and destructor
       
    51         
       
    52         /**
       
    53         * C++ default constructor is private.
       
    54         */      
       
    55         CXcapHttpReqHead( RHTTPSession& aHttpSession,
       
    56                          CXcapHttpAuthManager& aAuthManager,
       
    57                          CXcapHttpTransport& aTransportMain );
       
    58 
       
    59         /**
       
    60         * Copies the request data
       
    61         * @param aRequestData Data to be sent
       
    62         */
       
    63         virtual void ConstructRequestL();
       
    64 
       
    65         /**
       
    66         * Append data to the response buffer.
       
    67         */
       
    68         virtual RStringF ConstructMethodStringL();
       
    69 
       
    70     private:
       
    71         
       
    72         /**
       
    73         * Second-phase constructor.
       
    74         */ 
       
    75         void ConstructL();
       
    76         
       
    77     private: //Data
       
    78         
       
    79     };
       
    80 
       
    81 #endif
       
    82 
       
    83 // End of File