xdmprotocols/XcapProtocol/XcapHttpTransport/inc/XcapHttpHeaderModel.h
branchRCL_3
changeset 35 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
34:2669f8761a99 35:fbd2e7cec7ef
       
     1 /*
       
     2 * Copyright (c) 2003 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:  CXcapHttpHeaderModel 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPHTTPHEADERMODEL__
       
    22 #define __XCAPHTTPHEADERMODEL__
       
    23 
       
    24 // INCLUDES
       
    25 #include "XcapHttpRequest.h"
       
    26 
       
    27 //FORWARD DECLARATIONS
       
    28 class CXcapHttpResponse;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 NONSHARABLE_CLASS( CXcapHttpHeaderModel ) : public CBase
       
    32     {
       
    33     public:
       
    34 
       
    35         /**
       
    36         * C++ default constructor is private.
       
    37         */      
       
    38         static CXcapHttpHeaderModel* NewL( const TDesC8& aHeaderName,
       
    39                                            const TDesC8& aHeaderValue,
       
    40                                            CXcapHttpTransport& aTransportMain );
       
    41         
       
    42         /**
       
    43         * C++ default constructor is private.
       
    44         */      
       
    45         TPtrC8 HeaderValue() const; 
       
    46         
       
    47         /**
       
    48         * C++ default constructor is private.
       
    49         */      
       
    50         TPtrC8 HeaderName() const; 
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */      
       
    55         virtual ~CXcapHttpHeaderModel();
       
    56     
       
    57     private:
       
    58         
       
    59         /**
       
    60         * C++ default constructor is private.
       
    61         */     
       
    62         CXcapHttpHeaderModel( CXcapHttpTransport& aTransportMain );
       
    63         
       
    64         /**
       
    65         * C++ default constructor is private.
       
    66         */     
       
    67         void ConstructL( const TDesC8& aHeaderName,
       
    68                          const TDesC8& aHeaderValue );
       
    69 
       
    70     protected: //Data
       
    71 
       
    72     private: //Data
       
    73         
       
    74         HBufC8*                         iHeaderName;
       
    75         HBufC8*                         iHeaderValue;
       
    76         CXcapHttpTransport&             iTransportMain; 
       
    77 
       
    78     };
       
    79 
       
    80 #endif
       
    81 
       
    82 // End of File