meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrviewerfromfield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2003-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".
    18 
    18 
    19 #ifndef CESMRVIEWERFROMFIELD_H_
    19 #ifndef CESMRVIEWERFROMFIELD_H_
    20 #define CESMRVIEWERFROMFIELD_H_
    20 #define CESMRVIEWERFROMFIELD_H_
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <fbs.h>
    23 #include <e32cmn.h>
    25 #include <e32cmn.h>
    24 #include <eikedwob.h>
    26 #include <eikedwob.h>
    25 
    27 
    26 #include "cesmrfield.h"
    28 #include "cesmrfield.h"
    27 
    29 
    31 
    33 
    32 /**
    34 /**
    33  * Field for showing the "from" information. In other words this field shows
    35  * Field for showing the "from" information. In other words this field shows
    34  * that who sent/organized this meeting request.
    36  * that who sent/organized this meeting request.
    35  */
    37  */
    36 NONSHARABLE_CLASS( CESMRViewerFromField ) : 
    38 NONSHARABLE_CLASS( CESMRViewerFromField ) : public CESMRField, 
    37     public CESMRField, public MEikEdwinSizeObserver
    39                                                    MEikEdwinSizeObserver
    38     {
    40     {
    39     public:
    41     public:
    40         /**
    42         /**
    41          * Constructor for new From field used in viewer mode.
    43          * Constructor for new From field used in viewer mode.
    42          *
    44          *
    50         ~CESMRViewerFromField( );
    52         ~CESMRViewerFromField( );
    51     
    53     
    52     public: // From CESMRField
    54     public: // From CESMRField
    53         void InternalizeL( MESMRCalEntry& aEntry );
    55         void InternalizeL( MESMRCalEntry& aEntry );
    54         void InitializeL();
    56         void InitializeL();
    55         void ExecuteGenericCommandL( TInt aCommand );
    57         TBool ExecuteGenericCommandL( TInt aCommand );
    56         void SetOutlineFocusL( TBool aFocus );
    58         void SetOutlineFocusL( TBool aFocus );
       
    59         void HandleLongtapEventL( const TPoint& aPosition );
    57     
    60     
    58     public: // From CCoeControl
    61     public: // From CCoeControl
    59         TKeyResponse OfferKeyEventL(
    62         TKeyResponse OfferKeyEventL(
    60                 const TKeyEvent& aEvent, 
    63                 const TKeyEvent& aEvent, 
    61                 TEventCode aType );
    64                 TEventCode aType );
    62         TInt CountComponentControls() const;
    65         TInt CountComponentControls() const;
    63         CCoeControl* ComponentControl( TInt aInd ) const;
    66         CCoeControl* ComponentControl( TInt aInd ) const;
    64         void SizeChanged();
    67         void SizeChanged();
    65         TSize MinimumSize();
    68         TSize MinimumSize();
    66         void SetContainerWindowL(const CCoeControl& aContainer);
    69         void SetContainerWindowL(const CCoeControl& aContainer);
    67         virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    68         
    70         
    69     public: // From MEikEdwinSizeObserver
    71     public: // From MEikEdwinSizeObserver
    70         TBool HandleEdwinSizeEventL( 
    72         TBool HandleEdwinSizeEventL( 
    71                 CEikEdwin* aEdwin, 
    73                 CEikEdwin* aEdwin, 
    72                 TEdwinSizeEvent aType,
    74                 TEdwinSizeEvent aType,
    75     private: // Implementation
    77     private: // Implementation
    76         CESMRViewerFromField( );
    78         CESMRViewerFromField( );
    77         void ConstructL( );
    79         void ConstructL( );
    78     
    80     
    79     private: // data
    81     private: // data
    80         // Own: Actual text of this field, not owned
    82         // Not own: Actual text of this field, not owned
    81         CESMRRichTextViewer* iRichTextViewer;
    83         CESMRRichTextViewer* iRichTextViewer;
    82         // Own: Topic text of this fiels
    84         // Own: Topic text of this fiels
    83         CMRLabel* iFieldTopic;
    85         CMRLabel* iFieldTopic;
    84         // Size of the field when after field has expanded.
    86         // Size of the field when after field has expanded.
    85         TSize iExpandedSize;
    87         TSize iExpandedSize;