meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrviewerfromfield.h
branchRCL_3
changeset 24 b5fbb9b25d57
parent 16 4ce476e64c59
child 60 d620048b4810
equal deleted inserted replaced
19:b13141f05c3d 24:b5fbb9b25d57
    33 
    33 
    34 /**
    34 /**
    35  * 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
    36  * that who sent/organized this meeting request.
    36  * that who sent/organized this meeting request.
    37  */
    37  */
    38 NONSHARABLE_CLASS( CESMRViewerFromField ) : public CESMRField, 
    38 NONSHARABLE_CLASS( CESMRViewerFromField ) : public CESMRField,
    39                                                    MEikEdwinSizeObserver
    39                                                    MEikEdwinSizeObserver
    40     {
    40     {
    41     public:
    41     public:
    42         /**
    42         /**
    43          * Constructor for new From field used in viewer mode.
    43          * Constructor for new From field used in viewer mode.
    44          *
    44          *
    45          * @return New viewer from field object
    45          * @return New viewer from field object
    46          */
    46          */
    47         static CESMRViewerFromField* NewL( );
    47         static CESMRViewerFromField* NewL( );
    48     
    48 
    49         /**
    49         /**
    50          * C++ Destructor.
    50          * C++ Destructor.
    51          */
    51          */
    52         ~CESMRViewerFromField( );
    52         ~CESMRViewerFromField( );
    53     
    53 
    54     public: // From CESMRField
    54     protected: // From CESMRField
    55         void InternalizeL( MESMRCalEntry& aEntry );
    55         void InternalizeL( MESMRCalEntry& aEntry );
    56         void InitializeL();
    56         void InitializeL();
    57         TBool ExecuteGenericCommandL( TInt aCommand );
    57         TBool ExecuteGenericCommandL( TInt aCommand );
    58         void SetOutlineFocusL( TBool aFocus );
    58         void SetOutlineFocusL( TBool aFocus );
    59         void HandleLongtapEventL( const TPoint& aPosition );
    59 
    60     
    60     protected: // From CCoeControl
    61     public: // From CCoeControl
       
    62         TKeyResponse OfferKeyEventL(
    61         TKeyResponse OfferKeyEventL(
    63                 const TKeyEvent& aEvent, 
    62                 const TKeyEvent& aEvent,
    64                 TEventCode aType );
    63                 TEventCode aType );
    65         TInt CountComponentControls() const;
    64         TInt CountComponentControls() const;
    66         CCoeControl* ComponentControl( TInt aInd ) const;
    65         CCoeControl* ComponentControl( TInt aInd ) const;
    67         void SizeChanged();
    66         void SizeChanged();
    68         TSize MinimumSize();
    67         TSize MinimumSize();
    69         void SetContainerWindowL(const CCoeControl& aContainer);
    68         void SetContainerWindowL(const CCoeControl& aContainer);
    70         
    69 
    71     public: // From MEikEdwinSizeObserver
    70     protected: // From MEikEdwinSizeObserver
    72         TBool HandleEdwinSizeEventL( 
    71         TBool HandleEdwinSizeEventL(
    73                 CEikEdwin* aEdwin, 
    72                 CEikEdwin* aEdwin,
    74                 TEdwinSizeEvent aType,
    73                 TEdwinSizeEvent aType,
    75                 TSize aSize );
    74                 TSize aSize );
    76     
    75 
    77     private: // Implementation
    76     private: // Implementation
    78         CESMRViewerFromField( );
    77         CESMRViewerFromField( );
    79         void ConstructL( );
    78         void ConstructL( );
    80     
    79 
    81     private: // data
    80     private: // data
    82         // Not own: Actual text of this field, not owned
    81         // Not own: Actual text of this field, not owned
    83         CESMRRichTextViewer* iRichTextViewer;
    82         CESMRRichTextViewer* iRichTextViewer;
    84         // Own: Topic text of this fiels
    83         // Own: Topic text of this fiels
    85         CMRLabel* iFieldTopic;
    84         CMRLabel* iFieldTopic;