meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewerrecurrencefield.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:  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         void LockL();
       
    51         TBool ExecuteGenericCommandL( TInt aCommand );
       
    52 
       
    53     public: // From CCoeControl
       
    54         void SizeChanged();
       
    55         TInt CountComponentControls() const;
       
    56         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    57 
       
    58     private: // Implementation
       
    59         CESMRViewerRecurrenceField();
       
    60         void ConstructL();
       
    61 
       
    62     private: // Data
       
    63         /// Not own: The recurrence topic field
       
    64         CMRLabel* iLabel;
       
    65         /// Owned: Recurrence icon (default)
       
    66         CMRImage* iIcon;
       
    67         // Own: lock icon
       
    68         CMRImage* iLockIcon;
       
    69     };
       
    70 
       
    71 #endif // __CESMRVIEWERRECURRENCEFIELD_H__