|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : AudioStreamAppUi.h 00004 * Part of : AudioStream 00005 * Created : April 28, 2006 by Forum Nokia 00006 * Description : Declares UI class for AudioStream application 00007 * Version : 2.0 00008 * 00009 * Copyright (c) 2006 - 2007 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef AUDIOSTREAMAPPUI_H 00017 #define AUDIOSTREAMAPPUI_H 00018 00019 // INCLUDES 00020 #include <eikapp.h> 00021 #include <eikdoc.h> 00022 #include <e32std.h> 00023 #include <coeccntx.h> 00024 #include <aknappui.h> 00025 00026 // FORWARD DECLARATIONS 00027 class CAudioStreamEngine; 00028 class CAudioStreamView; 00029 00030 00031 // CLASS DECLARATION 00032 00033 /** 00034 * CAudioStreamAppUi Application UI class. 00035 * 00036 */ 00037 class CAudioStreamAppUi : public CAknAppUi 00038 { 00039 public: // // Constructors and destructor 00040 00041 /** 00042 * EPOC AudioStreamault constructor. 00043 */ 00044 void ConstructL(); 00045 00046 /** 00047 * Destructor. 00048 */ 00049 ~CAudioStreamAppUi(); 00050 00051 public: // New functions 00052 00053 CAudioStreamView* GetView() const; 00054 00055 public: // Functions from base classes 00056 00057 private: 00058 // From MEikMenuObserver 00059 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); 00060 00061 private: 00062 /** 00063 * From CEikAppUi, takes care of command handling. 00064 * param aCommand command to be handled 00065 */ 00066 void HandleCommandL(TInt aCommand); 00067 00068 /** 00069 * From CEikAppUi, handles key events. 00070 * param aKeyEvent Event to handled. 00071 * param aType Type of the key event. 00072 * return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 00073 */ 00074 virtual TKeyResponse HandleKeyEventL( 00075 const TKeyEvent& aKeyEvent,TEventCode aType); 00076 00077 private: // data 00078 CAudioStreamView* iView; 00079 CAudioStreamEngine* iEngine; 00080 00081 }; 00082 00083 #endif 00084 00085 // End of File
|
© Nokia 2009 |