meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerstartdatefield.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 start date field.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CESMRVIEWERSTARTDATEFIELD_H__
       
    20 #define __CESMRVIEWERSTARTDATEFIELD_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include "cesmrfield.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMRImage;
       
    27 class CMRLabel;
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 /**
       
    31  * This field shows the start date of a meeting or a meeting request
       
    32  */
       
    33 NONSHARABLE_CLASS( CESMRViewerStartDateField ) : public CESMRField
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Creates new CESMRViewerStartDateField object. Ownership
       
    38      * is transferred to caller.
       
    39      * @return Pointer to created object,
       
    40      */
       
    41     static CESMRViewerStartDateField* NewL();
       
    42 
       
    43     /**
       
    44      * C++ destructor
       
    45      */
       
    46     ~CESMRViewerStartDateField();
       
    47 
       
    48 public: // From CESMRField
       
    49     void InternalizeL( MESMRCalEntry& aEntry );
       
    50     void SetOutlineFocusL( TBool aFocus );
       
    51     TBool ExecuteGenericCommandL( TInt aCommand );
       
    52     void LockL();
       
    53 
       
    54 public: // From CCoeControl
       
    55     void SizeChanged();
       
    56     TInt CountComponentControls() const;
       
    57     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    58 
       
    59 private: // Implementation
       
    60     CESMRViewerStartDateField();
       
    61     void ConstructL();
       
    62     void FormatDateStringL();
       
    63 
       
    64 private: // Data
       
    65     // Owned: Field icon
       
    66     CMRImage* iIcon;
       
    67     /// Own: lock icon
       
    68     CMRImage* iLockIcon;
       
    69     // Not own: Field text label
       
    70     CMRLabel* iLabel;
       
    71     /// Own: Meeting start time
       
    72     TTime iStartTime;
       
    73     };
       
    74 
       
    75 #endif // __CESMRVIEWERSTARTDATEFIELD_H__