meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrvieweralarmdatefield.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 alarm field for CESMRListComponent
    14 * Description:  ESMR viewer alarm field.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef __CESMRVIEWERALARMDATEFIELD_H__
    18 #ifndef __CESMRVIEWERALARMDATEFIELD_H__
    19 #define __CESMRVIEWERALARMDATEFIELD_H__
    19 #define __CESMRVIEWERALARMDATEFIELD_H__
    27 
    27 
    28 // CLASS DECLARATIONS
    28 // CLASS DECLARATIONS
    29 /**
    29 /**
    30  * Field for showing the alarm date.
    30  * Field for showing the alarm date.
    31  */
    31  */
    32 NONSHARABLE_CLASS( CESMRViewerAlarmDateField ) : public CESMRField
    32 NONSHARABLE_CLASS( CESMRViewerAlarmDateField ): public CESMRField
    33     {
    33     {
    34 public:
    34 public:
    35     /**
    35     /**
    36      * Creates new CESMRViewerAlarmDateField object. Ownership
    36      * Creates new CESMRViewerAlarmDateField object. Ownership
    37      * is transferred to caller.
    37      * is transferred to caller.
    44      */
    44      */
    45     ~CESMRViewerAlarmDateField();
    45     ~CESMRViewerAlarmDateField();
    46 
    46 
    47 public: // From CESMRField
    47 public: // From CESMRField
    48     void InternalizeL( MESMRCalEntry& aEntry );
    48     void InternalizeL( MESMRCalEntry& aEntry );
    49     void InitializeL();
       
    50     void SetOutlineFocusL( TBool aFocus );
    49     void SetOutlineFocusL( TBool aFocus );
       
    50     TBool ExecuteGenericCommandL( TInt aCommand );
       
    51     void LockL();
    51     
    52     
    52 public: // From CCoeControl
    53 public: // From CCoeControl
    53     void SizeChanged();
    54     void SizeChanged();
    54     TInt CountComponentControls() const;
    55     TInt CountComponentControls() const;
    55     CCoeControl* ComponentControl( TInt aIndex ) const;
    56     CCoeControl* ComponentControl( TInt aIndex ) const;    
    56 
       
    57 private: // Implementation
    57 private: // Implementation
    58     CESMRViewerAlarmDateField();
    58     CESMRViewerAlarmDateField();
    59     void ConstructL();
    59     void ConstructL();
       
    60     void FormatAlarmTimeL();
    60     
    61     
    61 private: // Data
    62 private: // Data
    62     // Owned: Field icon
    63     // Owned: Field icon
    63     CMRImage* iIcon;
    64     CMRImage* iIcon;
    64     // Owned: Field text label
    65     /// Own: lock icon
       
    66     CMRImage* iLockIcon;
       
    67     // Not own: Field text label
    65     CMRLabel* iLabel;
    68     CMRLabel* iLabel;
       
    69     /// Own: Alarm time
       
    70     TTime iAlarmTime;
    66     };
    71     };
    67 
    72 
    68 #endif // __CESMRVIEWERALARMFIELD_H__
    73 #endif // __CESMRVIEWERALARMFIELD_H__