meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerstopdatefield.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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 viewer end date field for CESMRListComponent
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CESMRVIEWERSTOPDATEFIELD_H__
       
    20 #define __CESMRVIEWERSTOPDATEFIELD_H__
       
    21 
       
    22 // INLCUDES
       
    23 #include "cesmrfield.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMRImage;
       
    27 class CMRLabel;
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 /**
       
    31  * This class shows the end date of meeting or meeting request
       
    32  */
       
    33 NONSHARABLE_CLASS( CESMRViewerStopDateField ) : public CESMRField
       
    34     {
       
    35     public:
       
    36         /**
       
    37          * Creates new CESMRViewerStopDateField object. Ownership
       
    38          * is transferred to caller.
       
    39          * @return Pointer to created object,
       
    40          */
       
    41         static CESMRViewerStopDateField* NewL();
       
    42     
       
    43         /**
       
    44          * C++ destructor
       
    45          */
       
    46         ~CESMRViewerStopDateField();
       
    47         
       
    48     public: // From CESMRField
       
    49         void InternalizeL( MESMRCalEntry& aEntry );
       
    50         void InitializeL();
       
    51         void SetOutlineFocusL( TBool aFocus );
       
    52         
       
    53     public: // From CCoeControl
       
    54         void SizeChanged();
       
    55         TInt CountComponentControls() const;
       
    56         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    57         
       
    58     private: // Implementation
       
    59         CESMRViewerStopDateField();
       
    60         void ConstructL();
       
    61         
       
    62     private: // Data
       
    63         // Owned: Field icon
       
    64         CMRImage* iIcon;
       
    65         // Owned: Field text label
       
    66         CMRLabel* iLabel;
       
    67     };
       
    68 
       
    69 #endif // __CESMRVIEWERSTOPDATEFIELD_H__