meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrvieweralarmtimefield.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-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 for CESMRListComponent
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRVIEWERALARMTIMEFIELD_H
       
    20 #define CESMRVIEWERALARMTIMEFIELD_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "cesmrfield.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMRImage;
       
    27 class CMRLabel;
       
    28 
       
    29 /**
       
    30  * This class is a custom field control that shows the alarm time of calendar events
       
    31  */
       
    32 NONSHARABLE_CLASS( CESMRViewerAlarmTimeField ) : public CESMRField
       
    33     {
       
    34 public:
       
    35     /**
       
    36      * Creates new CESMRViewerAlarmTimeField object. Ownership
       
    37      * is transferred to caller.
       
    38      * @return Pointer to created object,
       
    39      */
       
    40     static CESMRViewerAlarmTimeField* NewL();
       
    41     
       
    42     /**
       
    43      * C++ Destructor.
       
    44      */
       
    45     ~CESMRViewerAlarmTimeField();
       
    46     
       
    47 public: // From CESMRField
       
    48     void InternalizeL( MESMRCalEntry& aEntry );
       
    49     void InitializeL();
       
    50     void SetOutlineFocusL( TBool aFocus );
       
    51 
       
    52 public: // From CCoeControl
       
    53     void SizeChanged();
       
    54     TInt CountComponentControls() const;
       
    55     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    56 
       
    57 private: // Implementation
       
    58     CESMRViewerAlarmTimeField();
       
    59     void ConstructL();
       
    60     
       
    61 private:
       
    62     // Owned: Field icon
       
    63     CMRImage* iIcon;
       
    64     // Owned: Field text label
       
    65     CMRLabel* iLabel;
       
    66     };
       
    67 
       
    68 #endif // CESMRVIEWERALARMTIMEFIELD_H