voicerecorder/AppSrc/CVRAppUi.h
branchRCL_3
changeset 13 4e5b531d23cb
parent 10 bb90e4148332
child 19 2f5c9ee7098c
equal deleted inserted replaced
11:a2fdc35b8f46 13:4e5b531d23cb
    25 // INCLUDES
    25 // INCLUDES
    26 #include <aknViewAppUi.h>
    26 #include <aknViewAppUi.h>
    27 #include <apparc.h>			// MApaEmbeddedDocObserver
    27 #include <apparc.h>			// MApaEmbeddedDocObserver
    28 
    28 
    29 #include "MVREmbeddedObserver.h"
    29 #include "MVREmbeddedObserver.h"
    30 
    30 #include "VRUSBStateHanlder.h"
    31 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    32 class MVRSelectionProvider;
    32 class MVRSelectionProvider;
    33 class CErrorUI;
    33 class CErrorUI;
    34 class MVRLayoutChangeObserver;
    34 class MVRLayoutChangeObserver;
       
    35 class CAknWaitDialog;
    35 
    36 
    36 // CLASS DECLARATION
    37 // CLASS DECLARATION
    37 /**
    38 /**
    38 * This class is a part of the standard application framework.
    39 * This class is a part of the standard application framework.
    39 * It instantiates the application views.
    40 * It instantiates the application views.
   102 		* Handles events from window group  
   103 		* Handles events from window group  
   103 		* @param aType The type of event
   104 		* @param aType The type of event
   104 		*/
   105 		*/
   105 		
   106 		
   106 		void HandleApplicationSpecificEventL(TInt aType, const TWsEvent& aEvent);
   107 		void HandleApplicationSpecificEventL(TInt aType, const TWsEvent& aEvent);
   107 		
   108 
       
   109 	private: // from MVRUSBEventObserver
       
   110 		void HandleUSBEventL();
       
   111 	
   108 	private: // new methods
   112 	private: // new methods
   109 
   113 
   110 		/**
   114 		/**
   111 		* Provides access to the current view's MVRSelectionProvider
   115 		* Provides access to the current view's MVRSelectionProvider
   112 		* interface.
   116 		* interface.
   113 		* @return pointer to the active view as MVRSelectionProvider.
   117 		* @return pointer to the active view as MVRSelectionProvider.
   114 		*/
   118 		*/
   115 		MVRSelectionProvider* SelectionProviderL();
   119 		MVRSelectionProvider* SelectionProviderL();
   116 
   120 
   117 		/**
   121        	
   118 		* Check USB connection state
   122        	/**
   119 		* interface.
   123        	* This method show a dialog to warn user to insert the SD card.
   120 		* @return True/False
   124        	* @return if user insert the SD card or not
   121 		*/        
   125        	*/
   122         TBool IsUsbActive();
   126        	static TBool ShowDialogForWaitStorageCardL();
       
   127        	
       
   128         /**
       
   129         * This method show a dialog to warn user to plug the usb cable.
       
   130         * @return if user plug the usb cable or not
       
   131         */
       
   132         static TBool ShowDialogForWaitUSBPluggingOutL();       	
       
   133        	
       
   134        	/**
       
   135        	 * Make user insert the SD card, and choose SD card as the memo storage
       
   136        	 */
       
   137        	void SetDriveL();
   123 
   138 
   124 	private: // data
   139 	private: // data
   125 		/**
   140 		/**
   126 		* CActiveScheduler wrapper object. Owned.
   141 		* CActiveScheduler wrapper object. Owned.
   127 		*/
   142 		*/
   146 		MVREmbeddedObserver* iEmbeddedObserver;
   161 		MVREmbeddedObserver* iEmbeddedObserver;
   147 
   162 
   148 		/*
   163 		/*
   149 		* For help context, whether settings page is active.
   164 		* For help context, whether settings page is active.
   150 		*/
   165 		*/
   151 		TBool iIsSettingsOpen;
   166 		TBool iIsSettingsOpen;		
       
   167 
   152 
   168 
   153 	};
   169 	};
   154 
   170 
   155 #endif // __CVRAPPUI_H__
   171 #endif // __CVRAPPUI_H__