meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrtrackingfieldlabel.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c)  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 class is for showing the attendees in tracking mode.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRTRACKINGFIELDLABEL_H_
       
    20 #define CESMRTRACKINGFIELDLABEL_H_
       
    21 
       
    22 #include <caluser.h>
       
    23 #include <eikedwob.h>
       
    24 #include "cesmrfield.h"
       
    25 #include "resmrstatic.h"
       
    26 
       
    27 class CEikLabel;
       
    28 
       
    29 /**
       
    30  * This class shows the label of attendee type in tracking view (viewer-type) mode.
       
    31  */
       
    32 NONSHARABLE_CLASS( CESMRTrackingFieldLabel ) : public CESMRField,
       
    33 public MEikEdwinSizeObserver
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Constructor for the tracking field.
       
    38      * @param CCalAttendee::TCalRole - Information that tells is this
       
    39      *                                 field for optional or for
       
    40      *                                 required attendees.
       
    41      * @return New field object.
       
    42      */
       
    43     static CESMRTrackingFieldLabel* NewL( CCalAttendee::TCalRole );
       
    44 
       
    45     /**
       
    46      * C++ Destructor.
       
    47      */
       
    48     ~CESMRTrackingFieldLabel( );
       
    49 
       
    50 public: // From CCoeControl
       
    51     TInt CountComponentControls( ) const;
       
    52     CCoeControl* ComponentControl( TInt aInd ) const;
       
    53     void SizeChanged( );
       
    54 
       
    55 public: // From CESMRField
       
    56     void InitializeL();
       
    57 
       
    58 public: // From MEikEdwinSizeObserver
       
    59     TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aType,
       
    60             TSize aDesirableEdwinSize );
       
    61 
       
    62 private:
       
    63     CESMRTrackingFieldLabel( CCalAttendee::TCalRole aType );
       
    64     void ConstructL( );
       
    65 
       
    66 private:
       
    67     // Title of this field
       
    68     CEikLabel* iTitle;
       
    69     // Size of the title
       
    70     TSize iTitleSize;
       
    71     // Inofrmation about attendee type
       
    72     CCalAttendee::TCalRole iRole;
       
    73     };
       
    74 
       
    75 #endif /*CESMRTRACKINGFIELDLABEL_H_*/