examples/ForumNokia/AudioStreamExample/inc/AudioStreamView.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 #ifndef AUDIOSTREAMVIEW_H
00006 #define AUDIOSTREAMVIEW_H
00007 
00008 // INCLUDES
00009 #include <coecntrl.h>
00010 #include "AudioStreamEngine.h"
00011 #include <eikrted.h>
00012 
00013 // FORWARD DECLARATIONS
00014 class CAudioStreamEngine;
00015 
00016 // CLASS DECLARATION
00017 
00022 class CAudioStreamView : public CCoeControl
00023 {
00024 public: 
00025 
00036     static CAudioStreamView* NewL(const TRect& aRect, 
00037         CAudioStreamEngine* aEngine);
00038 
00049     static CAudioStreamView* NewLC(const TRect& aRect, 
00050         CAudioStreamEngine* aEngine);
00051 
00052 
00058     ~CAudioStreamView();
00059         
00060 public: // New functions
00061 
00069     void ShowMessageL(const TDesC& /* aMsg */);
00070 
00071 public: // Functions from base classes
00072 
00073 private: // Basic two-phase EPOC constructors
00074 
00083     void ConstructL(const TRect& aRect, CAudioStreamEngine* aEngine);
00084  
00090     CAudioStreamView();
00091 
00092 private: // Functions from base classes
00093 
00097     void SizeChanged();
00098 
00102     void HandleResourceChange(TInt aType);
00103 
00107     TInt CountComponentControls() const;
00108 
00112     CCoeControl* ComponentControl(TInt aIndex) const;
00113 
00117     void Draw(const TRect& aRect) const;
00118     
00119 private: // New functions
00120     
00121         
00122 private: // data members
00123 
00124     // Reference for engine object
00125     CAudioStreamEngine* iEngine;        
00126 
00127     // Displaying the application messages to user
00128     CEikRichTextEditor* iLogComponent;
00129     
00130 };
00131 
00132 #endif
00133 
00134 // End of File
00135 
00136 

Generated by  doxygen 1.6.2