meetingrequest/mrgui/mrfieldbuildercommon/inc/cesmrviewerlabelfield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007-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:  ESMR base field for viewer fields in CESMRListComponent
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRVIEWERLABELFIELD_H
       
    20 #define CESMRVIEWERLABELFIELD_H
       
    21 
       
    22 #include <eikedwin.h>
       
    23 #include <eikrted.h>
       
    24 #include <eikedwob.h>
       
    25 //<cmail>
       
    26 #include "esmrdef.h"
       
    27 //</cmail>
       
    28 
       
    29 #include "cesmrfield.h"
       
    30 #include "cesmrlayoutmgr.h"
       
    31 #include "cesmriconfield.h"
       
    32 
       
    33 class CEikLabel;
       
    34 class CESMREditor;
       
    35 
       
    36 /**
       
    37  * Base class for most of the fields in viewer mode.
       
    38  */
       
    39 class CESMRViewerLabelField : public CESMRIconField
       
    40     {
       
    41 public:
       
    42     /**
       
    43      * Creates new CESMRViewerLabelField object. Ownership
       
    44      * is transferred to caller.
       
    45      * @return Pointer to created object,
       
    46      */
       
    47     IMPORT_C static CESMRViewerLabelField* NewL();
       
    48 
       
    49     /**
       
    50      * C++ destructor
       
    51      */
       
    52     IMPORT_C ~CESMRViewerLabelField();
       
    53 
       
    54 public: //from CESMRField
       
    55     IMPORT_C void InitializeL();
       
    56 
       
    57     IMPORT_C void FocusChanged( TDrawNow aDrawNow );
       
    58 
       
    59 protected: //Implementation
       
    60     IMPORT_C CESMRViewerLabelField();
       
    61     IMPORT_C void ConstructL( TAknsItemID aIconID );
       
    62     IMPORT_C void ConstructL();
       
    63 
       
    64 protected:
       
    65     /// Ref: Label for the text in the field
       
    66     CEikLabel* iLabel;
       
    67     };
       
    68 
       
    69 #endif  // __CESMRVIEWERLABELFIELD_H__