clientprovisioning/cpqtsp/inc/CWPStringPair.h
changeset 45 0f9fc722d255
equal deleted inserted replaced
44:137912d1a556 45:0f9fc722d255
       
     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 "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 *     Sortable string pair.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CWPSTRINGPAIR_H
       
    21 #define CWPSTRINGPAIR_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  * Sortable string pair
       
    30  */
       
    31 class CWPStringPair : public CBase
       
    32 	{
       
    33 	public:
       
    34         /**
       
    35         * C++ default constructor.
       
    36         */
       
    37 		CWPStringPair();
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42 		~CWPStringPair();
       
    43 
       
    44 	public:
       
    45 		/**
       
    46 		* Sets the values for string pair.
       
    47 		* @param aName The name of the string
       
    48 		* @param aValue The value of the string
       
    49 		*/
       
    50 		void SetL( const TDesC& aName, const TDesC& aValue );
       
    51 
       
    52 	public:
       
    53 		// Points to iName. Use for constructing TKeyArrayFixPtr.
       
    54 		TPtrC iNamePtr;
       
    55 
       
    56 		// Points to iValue. Use for constructing TKeyArrayFixPtr.
       
    57 		TPtrC iValuePtr;
       
    58 
       
    59 	private:
       
    60 		// The name of the pair. Owns.
       
    61 		HBufC* iName;
       
    62 
       
    63 		// The value of the pair. Owns.
       
    64 		HBufC* iValue;
       
    65 	};
       
    66 
       
    67 #endif // CWPSTRINGPAIR_H
       
    68 
       
    69 // End of File