meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrrepeatuntil.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 repeat until field implementation
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRREPEATUNTIL_H
       
    20 #define CESMRREPEATUNTIL_H
       
    21 
       
    22 #include "cesmrfield.h"
       
    23 
       
    24 #include <AknsControlContext.h>
       
    25 
       
    26 class CEikLabel;
       
    27 class CEikDateEditor;
       
    28 class MESMRFieldValidator;
       
    29 class CAknsFrameBackgroundControlContext;
       
    30 
       
    31 NONSHARABLE_CLASS( CESMRRepeatUntilField ) : public CESMRField
       
    32     {
       
    33 public:
       
    34     /**
       
    35      * Creates new CESMRRepeatUntilField object. Ownership
       
    36      * is transferred to caller.
       
    37      * @return Pointer to created object,
       
    38      */
       
    39     static CESMRRepeatUntilField* NewL( MESMRFieldValidator* aValidator );
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     ~CESMRRepeatUntilField();
       
    45 
       
    46 public: // From CESMRField
       
    47     void InitializeL();
       
    48     TBool OkToLoseFocusL( TESMREntryFieldId aNextItem );
       
    49     void SetOutlineFocusL( TBool aFocus );
       
    50     
       
    51 public: // From CCoeControl
       
    52     TInt CountComponentControls() const;
       
    53     CCoeControl* ComponentControl( TInt aInd ) const;
       
    54     void SizeChanged();
       
    55     void ActivateL();
       
    56     void PositionChanged();
       
    57     TKeyResponse OfferKeyEventL(
       
    58             const TKeyEvent& aEvent,
       
    59             TEventCode aType );
       
    60     void CheckIfValidatingNeededL(
       
    61             TInt aStartFieldIndex );
       
    62 
       
    63 private:
       
    64     /**
       
    65      * Constructor.
       
    66      * @param aValidator validator object
       
    67      */
       
    68     CESMRRepeatUntilField(MESMRFieldValidator* aValidator);
       
    69 
       
    70     /**
       
    71      * Second phase constructor.
       
    72      */
       
    73     void ConstructL();
       
    74 
       
    75 private:
       
    76     /**
       
    77      * Own. Repeat until field label.
       
    78      */
       
    79     CEikLabel* iLabel;
       
    80 
       
    81     /**
       
    82      * Not owned. Repeat until field editor.
       
    83      */
       
    84     CEikDateEditor* iDate;
       
    85 
       
    86     /**
       
    87      * Not owned. Validator object.
       
    88      */
       
    89     MESMRFieldValidator* iValidator;
       
    90 
       
    91     /**
       
    92      * Background control context
       
    93      */
       
    94     MAknsControlContext* iBackground;
       
    95 
       
    96     /**
       
    97      * Actual background for the editor.
       
    98      */
       
    99     CAknsFrameBackgroundControlContext* iFrameBgContext;
       
   100     };
       
   101 
       
   102 #endif  // CESMRREPEATUNTIL_H