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