examples/ForumNokia/BluetoothPMPExample/inc/BluetoothPMPExampleRTEContainer.h

00001 /*
00002  * Copyright © 2009 Nokia Corporation.
00003  */
00004 
00005 #ifndef BLUETOOTH_EXAMPLE_RTE_CONTAINER_H
00006 #define BLUETOOTH_EXAMPLE_RTE_CONTAINER_H
00007 
00008 // INCLUDES
00009 #include <coecntrl.h>
00010 
00011 // FORWARD DECLARATIONS
00012 class CRichTextEditorRTE;
00013 
00014 // CLASS DECLARATION
00015 
00020 class CBluetoothPMPExampleRTEContainer : public CCoeControl
00021     {
00022     public: // Constructors and destructor
00023 
00030         static CBluetoothPMPExampleRTEContainer* NewL(const TRect& aRect);
00031 
00035         static CBluetoothPMPExampleRTEContainer* NewLC(const TRect& aRect);
00036 
00041         void ConstructL(const TRect& aRect);
00042 
00046         ~CBluetoothPMPExampleRTEContainer();
00047 
00048     public: // New functions
00049 
00054         void DrawTextL( const TDesC& aText );
00055 
00060         void DrawTextWithoutCarriageL( const TDesC& aText );
00061 
00066         void DrawUnderlinedTextL( const TDesC& aText );
00067 
00071         void DrawLineL();
00072 
00076         void AddCarriageReturnL();
00077 
00081         void ShowMessageL(const TDesC& aMsg);
00082 
00086         void SizeChanged();
00087                 
00091         void ClearScreenL();
00092         
00093     private: // Functions from base classes
00094 
00098         TInt CountComponentControls() const;
00099 
00103         CCoeControl* ComponentControl(TInt aIndex) const;
00104 
00108         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
00109 
00110         void Draw( const TRect& aRect ) const;
00111         
00112     private:
00113         TInt GetScrollbarWidth() const;
00114         
00115     private: //data
00116 
00117         // Editor
00118         CRichTextEditorRTE* iRte;
00119     };
00120 
00121 #endif // BLUETOOTH_EXAMPLE_RTE_CONTAINER

Generated by  doxygen 1.6.2