landmarksui/uicontrols/inc/CLmkMfneSeparator.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 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:    LandmarksUi Content File -    Separator field for CEikMfne
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef CLmkMfneSeparator_H
       
    24 #define CLmkMfneSeparator_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <eikmfne.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /** Reimplementation of CEikMfneSeparator
       
    32  *  Allows run-time changing of text
       
    33  */
       
    34 class CLmkMfneSeparator : public CEikMfneField
       
    35     {
       
    36     private:
       
    37         CLmkMfneSeparator();
       
    38 
       
    39     public:
       
    40         virtual ~CLmkMfneSeparator();
       
    41         static CLmkMfneSeparator* NewL(const TDesC& aText);
       
    42         void SetTextL(const TDesC& aText);
       
    43         const TDesC& Text() const;
       
    44 
       
    45     private: // from CEikMfneField
       
    46         TInt MaximumWidthInPixels(
       
    47             const CFont& aFont,
       
    48             TBool aShrinkToMinimumSize);
       
    49 
       
    50         TCoeInputCapabilities InputCapabilities() const;
       
    51 
       
    52     private:
       
    53         HBufC* iText;
       
    54     };
       
    55 
       
    56 #endif