meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerstopdatefield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  ESMR viewer end date field for CESMRListComponent
    14 * Description:  ESMR viewer end date field.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #ifndef __CESMRVIEWERSTOPDATEFIELD_H__
    19 #ifndef __CESMRVIEWERSTOPDATEFIELD_H__
    30 /**
    30 /**
    31  * This class shows the end date of meeting or meeting request
    31  * This class shows the end date of meeting or meeting request
    32  */
    32  */
    33 NONSHARABLE_CLASS( CESMRViewerStopDateField ) : public CESMRField
    33 NONSHARABLE_CLASS( CESMRViewerStopDateField ) : public CESMRField
    34     {
    34     {
    35     public:
    35 public:
    36         /**
    36     /**
    37          * Creates new CESMRViewerStopDateField object. Ownership
    37      * Creates new CESMRViewerStopDateField object. Ownership
    38          * is transferred to caller.
    38      * is transferred to caller.
    39          * @return Pointer to created object,
    39      * @return Pointer to created object,
    40          */
    40      */
    41         static CESMRViewerStopDateField* NewL();
    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();
    42     
    64     
    43         /**
    65 private: // Data
    44          * C++ destructor
    66     // Owned: Field icon
    45          */
    67     CMRImage* iIcon;
    46         ~CESMRViewerStopDateField();
    68     /// Own: lock icon
    47         
    69     CMRImage* iLockIcon;
    48     public: // From CESMRField
    70     // Not own: Field text label
    49         void InternalizeL( MESMRCalEntry& aEntry );
    71     CMRLabel* iLabel;
    50         void InitializeL();
    72     /// Own: Meeting stop time
    51         void SetOutlineFocusL( TBool aFocus );
    73     TTime iStopTime;        
    52         
    74 };
    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 
    75 
    69 #endif // __CESMRVIEWERSTOPDATEFIELD_H__
    76 #endif // __CESMRVIEWERSTOPDATEFIELD_H__