applayerprotocols/httptransportfw/Test/T_HttpIntegration/CLabeledText.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // $Header$
       
    15 // CCatalogue.h
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __CLABELEDTEXT_H__
       
    20 #define __CLABELEDTEXT_H__
       
    21 
       
    22 //-----------------------------------------------------------------------------
       
    23 //  Include Files  
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 //-----------------------------------------------------------------------------
       
    28 //	CLabeledText class carrying a labeled text value.
       
    29 
       
    30 class CLabeledText : public CBase
       
    31 {
       
    32 
       
    33 public:     // Constructors and destructors
       
    34 
       
    35 	// Note: the Label and the Value are copied.
       
    36 	static CLabeledText* NewL ( const TDesC& aLabel, const TDesC& aValue );
       
    37 	static CLabeledText* NewLC( const TDesC& aLabel, const TDesC& aValue );
       
    38 	~CLabeledText();
       
    39 
       
    40 private:    // Constructors and destructors
       
    41 
       
    42 	void ConstructL( const TDesC& aLabel, const TDesC& aValue );
       
    43 	CLabeledText() {};
       
    44 
       
    45 public:     // New functions
       
    46 
       
    47 	// Get Label.
       
    48 	TPtrC Label() const;
       
    49 
       
    50 	// Get Value.
       
    51 	TPtrC Value() const;
       
    52 
       
    53 	// Set Value.
       
    54 	void SetL(const TDesC &);
       
    55 
       
    56 private:    // Data
       
    57 
       
    58 	HBufC *iLabel;
       
    59 	HBufC *iValue;
       
    60 
       
    61 };
       
    62 
       
    63 //-----------------------------------------------------------------------------
       
    64 
       
    65 #endif  // __CLABELEDTEXT_H__
       
    66 
       
    67 //-----------------------------------------------------------------------------
       
    68 // End of File
       
    69 //-----------------------------------------------------------------------------
       
    70