meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerrecurrencefield.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:  This field shows the text part of recurrence information
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CESMRVIEWERRECURRENCEFIELD_H__
       
    19 #define __CESMRVIEWERRECURRENCEFIELD_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include "cesmrfield.h"
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CMRLabel;
       
    26 class CMRImage;
       
    27 
       
    28 /**
       
    29  * This class is responsible of showing the recurrence text e.g. "Daily"
       
    30  */
       
    31 NONSHARABLE_CLASS( CESMRViewerRecurrenceField ): public CESMRField
       
    32     {
       
    33     public:
       
    34         /**
       
    35          * Creates new CESMRViewerRecurrenceField object. Ownership
       
    36          * is transferred to caller.
       
    37          * @return Pointer to created object,
       
    38          */
       
    39         static CESMRViewerRecurrenceField* NewL();
       
    40     
       
    41         /**
       
    42          * C++ destructor
       
    43          */
       
    44         ~CESMRViewerRecurrenceField();
       
    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         CESMRViewerRecurrenceField();
       
    58         void ConstructL();
       
    59         
       
    60     private: // Data
       
    61         /// Own: The recurrence topic field
       
    62         CMRLabel* iLabel;
       
    63         /// Own: Recurrence icon (default)
       
    64         CMRImage* iIcon;
       
    65     };
       
    66 
       
    67 #endif // __CESMRVIEWERRECURRENCEFIELD_H__