diff -r 000000000000 -r 8466d47a6819 meetingrequest/mrgui/mrfieldbuildercommon/inc/cesmrviewerlabelfield.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrgui/mrfieldbuildercommon/inc/cesmrviewerlabelfield.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ESMR base field for viewer fields in CESMRListComponent +* +*/ + + +#ifndef CESMRVIEWERLABELFIELD_H +#define CESMRVIEWERLABELFIELD_H + +#include +#include +#include +// +#include "esmrdef.h" +// + +#include "cesmrfield.h" +#include "cesmrlayoutmgr.h" +#include "cesmriconfield.h" + +class CEikLabel; +class CESMREditor; + +/** + * Base class for most of the fields in viewer mode. + */ +class CESMRViewerLabelField : public CESMRIconField + { +public: + /** + * Creates new CESMRViewerLabelField object. Ownership + * is transferred to caller. + * @return Pointer to created object, + */ + IMPORT_C static CESMRViewerLabelField* NewL(); + + /** + * C++ destructor + */ + IMPORT_C ~CESMRViewerLabelField(); + +public: //from CESMRField + IMPORT_C void InitializeL(); + + IMPORT_C void FocusChanged( TDrawNow aDrawNow ); + +protected: //Implementation + IMPORT_C CESMRViewerLabelField(); + IMPORT_C void ConstructL( TAknsItemID aIconID ); + IMPORT_C void ConstructL(); + +protected: + /// Ref: Label for the text in the field + CEikLabel* iLabel; + }; + +#endif // __CESMRVIEWERLABELFIELD_H__