contextframework/cfwplugins/PSStateSourcePlugIn/inc/textpair.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  Encapsulates uid and name.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TEXTPAIR_H
       
    20 #define C_TEXTPAIR_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 /**
       
    26 *  Encapsulates text-text pair definition.
       
    27 *
       
    28 *  @lib
       
    29 *  @since S60 v4.0
       
    30 */
       
    31 class CTextPair : public CBase
       
    32     {
       
    33     public:
       
    34 
       
    35         static CTextPair* NewL(
       
    36             const TDesC& aText1,
       
    37             const TDesC& aText2 );
       
    38         static CTextPair* NewLC(
       
    39             const TDesC& aText1,
       
    40             const TDesC& aText2 );
       
    41 
       
    42         virtual ~CTextPair();
       
    43 
       
    44     public:
       
    45 
       
    46         const TDesC& Text1() const;
       
    47 
       
    48         const TDesC& Text2() const;
       
    49 
       
    50     private:
       
    51 
       
    52         CTextPair( );
       
    53 
       
    54         void ConstructL( const TDesC& aText1, const TDesC& aText2 );
       
    55 
       
    56     private: // Data
       
    57 
       
    58         HBufC* iText1;
       
    59 
       
    60         HBufC* iText2;
       
    61     };
       
    62 
       
    63 typedef RPointerArray< CTextPair > RTextPairPointerArray;
       
    64 
       
    65 #endif // C_TEXTPAIR_H