videditor/SimpleCutVideo/inc/VeiSimpleCutVideoAppUi.h
changeset 9 d87d32eab1a9
parent 0 951a5db380a0
equal deleted inserted replaced
0:951a5db380a0 9:d87d32eab1a9
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef VEDSIMPLECUTVIDEOAPPUI_H
       
    22 #define VEDSIMPLECUTVIDEOAPPUI_H
       
    23 
       
    24 // INCLUDES
       
    25 // System includes
       
    26 #include <eikapp.h>
       
    27 #include <eikdoc.h>
       
    28 #include <e32std.h>
       
    29 #include <coeccntx.h>
       
    30 #include <aknviewappui.h>
       
    31 #include <akntabgrp.h>
       
    32 #include <aknnavide.h>
       
    33 #include "VeiSettings.h"
       
    34 #include "VideoEditorDebugUtils.h"
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CVeiSimpleCutVideoView;
       
    38 class CEikAppUi;
       
    39 
       
    40 
       
    41 /**
       
    42 * Application UI class.
       
    43 * Provides support for the following features:
       
    44 * - EIKON control architecture
       
    45 * - view architecture
       
    46 * - status pane
       
    47 * 
       
    48 */
       
    49 class CVeiSimpleCutVideoAppUi : public CAknViewAppUi
       
    50 
       
    51     {
       
    52     public: // // Constructors and destructor
       
    53 
       
    54         /**
       
    55         * Default constructor.
       
    56         */      
       
    57         void ConstructL();
       
    58 
       
    59         /**
       
    60         * Destructor.
       
    61         */      
       
    62         ~CVeiSimpleCutVideoAppUi();
       
    63 
       
    64     public: // New functions
       
    65 		inline TInt GetVolumeLevel() { return iVolume; };
       
    66 		
       
    67 		inline void SetVolumeLevel( TInt aVolume ) { iVolume=aVolume; };
       
    68 
       
    69 		void CutVideoL( TBool aDoOpen, const RFile& aFile );
       
    70 
       
    71 		CVeiSimpleCutVideoAppUi();
       
    72 		
       
    73 		void Exit();
       
    74 
       
    75 		/**
       
    76 		 * Reads application settings data from ini-file. 
       
    77 		 *
       
    78 		 * @param aSettings Settings data where values are read.
       
    79 		 */		
       
    80 		void ReadSettingsL( TVeiSettings& aSettings ) const;
       
    81 		
       
    82 		/**
       
    83 		 * Writes application settings data to ini-file.
       
    84 		 *
       
    85 		 * @param aSettings Settings data where values are written.
       
    86 		 */
       
    87 		void WriteSettingsL( const TVeiSettings& aSettings );
       
    88 		
       
    89 		inline TBool AppIsOnTheWayToDestruction() { return iOnTheWayToDestruction; };
       
    90 
       
    91     private:
       
    92         /**
       
    93         * From CEikAppUi, takes care of command handling.
       
    94         * @param aCommand command to be handled
       
    95         */
       
    96         void HandleCommandL(TInt aCommand);
       
    97 
       
    98         /**
       
    99         * From CEikAppUi, handles key events.
       
   100         * @param aKeyEvent Event to handled.
       
   101         * @param aType Type of the key event. 
       
   102         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
   103         */
       
   104         virtual TKeyResponse HandleKeyEventL(
       
   105             const TKeyEvent& aKeyEvent,TEventCode aType);
       
   106 
       
   107         /**
       
   108         * From CAknAppUiBase.   
       
   109 	    * Calls CAknViewAppUi::HandleScreenDeviceChangedL().
       
   110         */
       
   111 		virtual void HandleScreenDeviceChangedL();	
       
   112 
       
   113 		/**
       
   114 	    * From @c CEikAppUi. Handles a change to the application's resources which
       
   115 	    * are shared across the environment. This function calls 
       
   116 	    * @param aType The type of resources that have changed. 
       
   117 	    */
       
   118 		virtual void HandleResourceChangeL(TInt aType);
       
   119 
       
   120 		/** 
       
   121 		* From CAknAppUi, HandleForegroundEventL( TBool aForeground )
       
   122 		* @param aForeground
       
   123 		*/
       
   124 		virtual void HandleForegroundEventL( TBool aForeground );
       
   125 		
       
   126 		// From MMGXFileNotificationObserver
       
   127 		virtual void HandleFileNotificationEventL();
       
   128 
       
   129     private: //Data
       
   130     
       
   131     	CVeiSimpleCutVideoView*	iSimpleCutVideoView;
       
   132         
       
   133         /**
       
   134          * Common volume setting.
       
   135          */
       
   136 		TInt				iVolume;
       
   137 
       
   138 		TProcessPriority 	iOriginalProcessPriority;
       
   139 		TBool 				iProcessPriorityAltered;
       
   140 		
       
   141 		TBool 				iOnTheWayToDestruction;
       
   142 	};
       
   143 
       
   144 #endif
       
   145 
       
   146 // End of File