phoneapp/phoneuiview/inc/cphoneviewcontroller.h
branchRCL_3
changeset 6 38529f706030
parent 5 2a26698d78ba
child 9 91c2fb4b78df
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
    32 #include "aknkeylock.h"
    32 #include "aknkeylock.h"
    33 #include "tphonecmdparamtranseffect.h"
    33 #include "tphonecmdparamtranseffect.h"
    34 
    34 
    35 #include "mphoneviewblockingdialogobserver.h"
    35 #include "mphoneviewblockingdialogobserver.h"
    36 #include "mnumberentry.h"
    36 #include "mnumberentry.h"
       
    37 #include "mphonesecuritymodechangeobserver.h"
    37 
    38 
    38 // FORWARD DECLARATIONS
    39 // FORWARD DECLARATIONS
    39 class CPhoneButtonsController;
    40 class CPhoneButtonsController;
    40 class CLogsClient;
    41 class CLogsClient;
    41 class CPhoneView;
    42 class CPhoneView;
    82 class CPhoneViewController :
    83 class CPhoneViewController :
    83     public CBase,
    84     public CBase,
    84     public MPhoneViewCommandHandle,
    85     public MPhoneViewCommandHandle,
    85     public MPhoneStatusPaneObserver,
    86     public MPhoneStatusPaneObserver,
    86     public MPhoneViewBlockingDialogObserver,
    87     public MPhoneViewBlockingDialogObserver,
    87     public MNumberEntryObserver
    88     public MNumberEntryObserver,
       
    89 	public MPhoneSecurityModeChangeObserver
    88     {
    90     {
    89     public:  // Constructors and destructor
    91     public:  // Constructors and destructor
    90 
    92 
    91         IMPORT_C static CPhoneViewController* NewL( TRect aRect );
    93         IMPORT_C static CPhoneViewController* NewL( TRect aRect );
    92 
    94 
   252          * From base class MNumberEntryObserver
   254          * From base class MNumberEntryObserver
   253          * Indication that numberentry state changed
   255          * Indication that numberentry state changed
   254          */
   256          */
   255         void NumberEntryStateChanged( TBool aEntryHasText );    
   257         void NumberEntryStateChanged( TBool aEntryHasText );    
   256 
   258 
       
   259 // From MPhoneSecurityModeChangeObserver
       
   260 
       
   261 		IMPORT_C void HandleSecurityModeChanged( TBool aIsEnabled );
       
   262 
   257     private:     // New functions
   263     private:     // New functions
   258 
   264 
       
   265 		/**
       
   266 		 * Set security mode
       
   267 		 *
       
   268 		 * @param aMode ETrue if mode should be set enabled.
       
   269 		 */
       
   270     	void SetSecurityMode( TBool aMode );
       
   271     	
   259         /**
   272         /**
   260         * read IdleApplicationUid from PubSub
   273         * read IdleApplicationUid from PubSub
   261         */
   274         */
   262         TInt IdleAppUid();
   275         TInt IdleAppUid();
   263 
   276 
   502         /**
   515         /**
   503         * Open the Unified message editor and get
   516         * Open the Unified message editor and get
   504         * number from number entry
   517         * number from number entry
   505         */
   518         */
   506         void SendMessageL();
   519         void SendMessageL();
   507 
       
   508         /**
       
   509         * Set security mode to view and statuspane
       
   510         */
       
   511         void SetSecurityMode( TPhoneCommandParam* aCommandParam );
       
   512 
       
   513         /**
       
   514         * Get security mode status
       
   515         */
       
   516         void GetSecurityModeStatus ( TPhoneCommandParam* aCommandParam );
       
   517 
   520 
   518         /**
   521         /**
   519         * Set security mode to view and statuspane
   522         * Set security mode to view and statuspane
   520         */
   523         */
   521         void SetStatusPaneVisible( TPhoneCommandParam* aCommandParam );
   524         void SetStatusPaneVisible( TPhoneCommandParam* aCommandParam );
   757         TBool iDialerSendKeyActivation;
   760         TBool iDialerSendKeyActivation;
   758 
   761 
   759         TInt iPrevious;
   762         TInt iPrevious;
   760 
   763 
   761         TBool iPriotityChanged;
   764         TBool iPriotityChanged;
       
   765 		
       
   766 		/**
       
   767 		 * Internal flag to define if security mode is enabled.
       
   768 		 */
       
   769         TBool iSecurityMode;
   762         
   770         
   763         // Boolean flag. ETrue if the application needs to return
   771         // Boolean flag. ETrue if the application needs to return
   764         // to the foreground after call ended
   772         // to the foreground after call ended
   765         TBool iNeedToReturnToForegroundAppAfterCall;
   773         TBool iNeedToReturnToForegroundAppAfterCall;
   766     };
   774     };