meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrvieweralarmfield.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 __CESMRVIEWERALARMFIELD_H__
       
    20 #define __CESMRVIEWERALARMFIELD_H__
       
    21 
       
    22 #include "cesmrfield.h"
       
    23 
       
    24 // Forwar declarations
       
    25 class CMRImage;
       
    26 class CMRLabel;
       
    27 
       
    28 /**
       
    29  * This class is a custom field control that shows the alarms of calendar events
       
    30  */
       
    31 NONSHARABLE_CLASS( CESMRViewerAlarmField ) : public CESMRField
       
    32     {
       
    33 public:
       
    34     /**
       
    35      * Creates new CESMRViewerAlarmField object. Ownership
       
    36      * is transferred to caller.
       
    37      * @return Pointer to created object,
       
    38      */
       
    39     static CESMRViewerAlarmField* NewL();
       
    40 
       
    41     /**
       
    42      * C++ Destructor.
       
    43      */
       
    44     ~CESMRViewerAlarmField();
       
    45 
       
    46 public: // From CESMRField
       
    47     void InternalizeL( MESMRCalEntry& aEntry );
       
    48     void InitializeL();
       
    49     void SetOutlineFocusL( TBool aFocus );
       
    50     
       
    51 public: // From CCoeControl
       
    52     void SizeChanged();
       
    53     TInt CountComponentControls() const;
       
    54     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    55     
       
    56 private: // Implementation
       
    57     CESMRViewerAlarmField();
       
    58     void ConstructL();
       
    59 
       
    60 private: // members
       
    61     // Owned: Field icon
       
    62     CMRImage* iIcon;
       
    63     // Owned: Field text label
       
    64     CMRLabel* iLabel;
       
    65     
       
    66     };
       
    67     
       
    68 
       
    69 #endif // __CESMRVIEWERALARMFIELD_H__