meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrcheckbox.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 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".
    19 #ifndef CESMRCHECKBOX_H
    19 #ifndef CESMRCHECKBOX_H
    20 #define CESMRCHECKBOX_H
    20 #define CESMRCHECKBOX_H
    21 
    21 
    22 #include "cesmrfield.h"
    22 #include "cesmrfield.h"
    23 
    23 
    24 class CEikLabel;
    24 class CMRLabel;
    25 class CEikImage;
    25 class CMRImage;
    26 class MESMRFieldValidator;
    26 class MESMRFieldValidator;
    27 
    27 
    28 /**
    28 /**
    29  * CESMRCheckBox implements the All Day Event checkbox field.
    29  * CESMRCheckBox implements the All Day Event checkbox field.
    30  * When the checkbox is checked, all day event time and date fields
    30  * When the checkbox is checked, all day event time and date fields
    49 public: // From CCoeControl
    49 public: // From CCoeControl
    50     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
    50     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
    51     TInt CountComponentControls() const;
    51     TInt CountComponentControls() const;
    52     CCoeControl* ComponentControl( TInt aInd ) const;
    52     CCoeControl* ComponentControl( TInt aInd ) const;
    53     void SizeChanged();
    53     void SizeChanged();
       
    54     void SetContainerWindowL( const CCoeControl& aContainer );
    54 
    55 
    55 public: // From CESMRField
    56 public: // From CESMRField
    56     void InitializeL();
       
    57     void InternalizeL( MESMRCalEntry& aEntry );
    57     void InternalizeL( MESMRCalEntry& aEntry );
    58     void ExternalizeL( MESMRCalEntry& aEntry );
    58     void ExternalizeL( MESMRCalEntry& aEntry );
    59     void SetOutlineFocusL( TBool aFocus );
    59     void SetOutlineFocusL( TBool aFocus );
    60     void ExecuteGenericCommandL( TInt aCommand );
    60     TBool ExecuteGenericCommandL( TInt aCommand );
    61 
    61 
    62 private: // Implemenation
    62 private: // Implemenation
    63     /**
    63     /**
    64      * Set checked or unchecked icon.
    64      * Set checked or unchecked icon.
    65      *
    65      *
    89      * Changes msk label from mark to unmark
    89      * Changes msk label from mark to unmark
    90      * and other way around.
    90      * and other way around.
    91      *
    91      *
    92      */
    92      */
    93     void SwitchMSKLabelL();
    93     void SwitchMSKLabelL();
       
    94     void SendFieldChangeEventL( TESMREntryFieldId aFieldId );
       
    95 private:
       
    96     
       
    97     //Not owned. Checkbox text label
       
    98     CMRLabel* iLabel;
       
    99     
       
   100     // Owned. checkbox_mark/checkbox_unmark
       
   101     CMRImage* iFieldIcon;
    94 
   102 
    95 private:
   103     // If checkbox is marked or unmarked.
    96     /**
       
    97      * Not owned. Checkbox text label
       
    98      */
       
    99     CEikLabel* iLabel;
       
   100 
       
   101     /**
       
   102      * Owned. checkbox_mark/checkbox_unmark
       
   103      */
       
   104     CEikImage* iIcon;
       
   105 
       
   106     // Pointer to the bitmap. iIcon is created by using this bitmap
       
   107     CFbsBitmap* iBitmap;
       
   108 
       
   109     // Pointer to the bitmap mask. iIcon is created by using this bitmap mask
       
   110     CFbsBitmap* iBitmapMask;
       
   111 
       
   112     /**
       
   113      * Not owned. Validator class for time and sanity checks.
       
   114      */
       
   115     MESMRFieldValidator* iValidator;
       
   116 
       
   117     /**
       
   118      * If checkbox is marked or unmarked.
       
   119      */
       
   120     TBool iChecked;
   104     TBool iChecked;
   121     };
   105     };
   122 
   106 
   123 #endif  // CESMRCHECKBOX_H
   107 #endif  // CESMRCHECKBOX_H
   124 
   108