realtimenetprots/sipfw/SIP/Codec/src/CSIPHeaderNameValue.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-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:
       
    15 * Name          : CSIPHeaderNameValue.h
       
    16 * Part of       : SIP Codec
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef CSIPHEADERNAMEVALUE_H
       
    30 #define CSIPHEADERNAMEVALUE_H
       
    31 
       
    32 #include <e32base.h>
       
    33 #include <stringpool.h>
       
    34 #include "_sipcodecdefs.h"
       
    35 
       
    36 
       
    37 class CSIPHeaderNameValue : public CBase
       
    38 	{
       
    39 public:
       
    40     
       
    41 	static CSIPHeaderNameValue* NewL (const TDesC8& aName, 
       
    42 		                              const TPtrC8 aValue);
       
    43 
       
    44 	static CSIPHeaderNameValue* NewLC (const TDesC8& aName, 
       
    45 		                               const TPtrC8 aValue);    
       
    46     
       
    47 	RStringF Name ();
       
    48 	const TDesC8& Value ();
       
    49 
       
    50 	~CSIPHeaderNameValue ();
       
    51 
       
    52 private:
       
    53 
       
    54 	void ConstructL (const TDesC8& aName);
       
    55     CSIPHeaderNameValue (const TPtrC8 aValue);
       
    56 
       
    57 	TPtrC8 ParseNameL (const TDesC8& aName);
       
    58 
       
    59 private: // Data
       
    60 
       
    61 	RStringF iName;
       
    62 	TPtrC8  iValue;
       
    63 
       
    64 private: // For testing purposes
       
    65 	
       
    66 	UNIT_TEST(CSIPHeaderNameValueTest)
       
    67 	};
       
    68 
       
    69 #endif // CSIPHEADERNAMEVALUE_H
       
    70 
       
    71 // End of File