meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrrecurencefield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  ESMR Recurence field for CESMRListComponent
    14 * Description:  ESMR Recurence field.
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #ifndef CESMRRECURENCEFIELD_H
    19 #ifndef CESMRRECURENCEFIELD_H
    20 #define CESMRRECURENCEFIELD_H
    20 #define CESMRRECURENCEFIELD_H
    21 
    21 
    22 #include "cesmriconfield.h"
    22 #include "cesmrfield.h"
    23 
    23 
    24 class CEikLabel;
    24 class CMRLabel;
       
    25 class CMRImage;
    25 class CESMRRecurrence;
    26 class CESMRRecurrence;
    26 class MESMRFieldValidator;
    27 class MESMRFieldValidator;
    27 
    28 
    28 NONSHARABLE_CLASS( CESMRRecurenceField ): public CESMRIconField
    29 NONSHARABLE_CLASS( CESMRRecurenceField ): public CESMRField
    29     {
    30     {
    30 public:
    31 public:
    31     /**
    32     /**
    32      * Creates new CESMRRecurenceField object. Ownership
    33      * Creates new CESMRRecurenceField object. Ownership
    33      * is transferred to caller.
    34      * is transferred to caller.
    39      * Destructor.
    40      * Destructor.
    40      */
    41      */
    41     ~CESMRRecurenceField();
    42     ~CESMRRecurenceField();
    42 
    43 
    43 public: // From CESMRField
    44 public: // From CESMRField
    44     void InitializeL();
       
    45     void InternalizeL( MESMRCalEntry& aEntry );
    45     void InternalizeL( MESMRCalEntry& aEntry );
    46     void SetOutlineFocusL( TBool aFocus );
    46     void SetOutlineFocusL( TBool aFocus );
    47     void ExecuteGenericCommandL( TInt aCommand );
    47     TBool ExecuteGenericCommandL( TInt aCommand );
    48 
    48 
    49 public: // From CCoeControl
    49 public: // From CCoeControl
    50     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    50     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    51     TInt CountComponentControls() const;
       
    52     CCoeControl* ComponentControl( TInt aInd ) const;
       
    53     void SizeChanged();
       
    54     void SetContainerWindowL( const CCoeControl& aContainer );
    51 
    55 
    52 private: // implementation
    56 private: // implementation
    53     /**
    57     /**
    54      * Constructor.
    58      * Constructor.
    55      *
    59      *
    75     *
    79     *
    76     */
    80     */
    77     void ExecuteRecurrenceQueryL();
    81     void ExecuteRecurrenceQueryL();
    78 
    82 
    79 private: // data
    83 private: // data
    80     /**
    84    
    81      * Not owned. Label for current recurrence.
    85     // Not owned. Label for current recurrence.
    82      */
    86     CMRLabel* iRecurrence;
    83     CEikLabel* iRecurence;
    87     
    84 
    88     // Own. Field icon.
    85     /**
    89     CMRImage* iFieldIcon;
    86      * Own. Array of recurrence objects.
    90     
    87      */
    91     // Own. Array of recurrence objects.
    88     RPointerArray< CESMRRecurrence > iArray;
    92     RPointerArray< CESMRRecurrence > iArray;
    89 
    93 
    90     /**
    94     // Index for selected recurrence (index to iArray)
    91      * Not owned. Helper class for sanity and time checks.
       
    92      */
       
    93     MESMRFieldValidator* iValidator;
       
    94 
       
    95     /**
       
    96      * Index for selected recurrence (index to iArray)
       
    97      */
       
    98     TInt iIndex;
    95     TInt iIndex;
    99     };
    96     };
   100 
    97 
   101 #endif  // CESMRRECURENCEFIELD_H
    98 #endif  // CESMRRECURENCEFIELD_H
   102 
    99