meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerstopdatefield.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 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.
       
    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     TBool ExecuteGenericCommandL( TInt aCommand );
       
    53     void LockL();
       
    54 
       
    55 public: // From CCoeControl
       
    56     void SizeChanged();
       
    57     TInt CountComponentControls() const;
       
    58     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    59 
       
    60 private: // Implementation
       
    61     CESMRViewerStopDateField();
       
    62     void ConstructL();
       
    63     void FormatDateStringL();
       
    64     
       
    65 private: // Data
       
    66     // Owned: Field icon
       
    67     CMRImage* iIcon;
       
    68     /// Own: lock icon
       
    69     CMRImage* iLockIcon;
       
    70     // Not own: Field text label
       
    71     CMRLabel* iLabel;
       
    72     /// Own: Meeting stop time
       
    73     TTime iStopTime;        
       
    74 };
       
    75 
       
    76 #endif // __CESMRVIEWERSTOPDATEFIELD_H__