terminalsecurity/SCP/SCPClient/inc/SCPQueryDialog.h
branchRCL_3
changeset 61 b183ec05bd8c
parent 59 13d7c31c74e0
child 62 19bba8228ff0
equal deleted inserted replaced
59:13d7c31c74e0 61:b183ec05bd8c
    32 /**
    32 /**
    33 *  Definition for the dialog class
    33 *  Definition for the dialog class
    34 */
    34 */
    35 class CSCPQueryDialog : public CAknTextQueryDialog, public MAknEcsObserver
    35 class CSCPQueryDialog : public CAknTextQueryDialog, public MAknEcsObserver
    36 	{
    36 	{
    37     public:
       
    38         enum TKeypadContext {
       
    39             ENumeric = 0,
       
    40             EAlphaNumeric,
       
    41             EContextSensitive
       
    42         };
       
    43     
       
    44 	public: // Construction and destruction
    37 	public: // Construction and destruction
    45 	
    38 	
    46 		/**
    39 		/**
    47         * C++ Constructor.
    40         * C++ Constructor.
    48         * @param aDataText TDes& (code which is entered in query)
    41         * @param aDataText TDes& (code which is entered in query)
    52 		*/
    45 		*/
    53 		CSCPQueryDialog( TDes& aDataText,
    46 		CSCPQueryDialog( TDes& aDataText,
    54                          RSCPClient::TSCPButtonConfig aButtonsShown, 
    47                          RSCPClient::TSCPButtonConfig aButtonsShown, 
    55                          TInt aMinLength,
    48                          TInt aMinLength,
    56                          TInt aMaxLength,
    49                          TInt aMaxLength,
    57                          TBool aECSSupport,
    50                          TBool aECSSupport
    58                          TKeypadContext aContext = EContextSensitive
       
    59                          );
    51                          );
    60 		/**
    52 		/**
    61         * Destructor.
    53         * Destructor.
    62         */
    54         */
    63 		~CSCPQueryDialog();
    55 		~CSCPQueryDialog();
    64 		
       
    65 	public:
    56 	public:
    66 		/**
    57 		/**
    67 		* Allows dismissing of code queries. Only mandatory requirement is that PIN
    58 		* Allows dismissing of code queries. Only mandatory requirement is that PIN
    68 		* queries are dismissed by the # 
    59 		* queries are dismissed by the # 
    69 		*
    60 		*
    98         */
    89         */
    99 		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    90 		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
   100 		
    91 		
   101 		void HandleEcsEvent(CAknEcsDetector* aDetector, CAknEcsDetector::TState aUpdatedState);
    92 		void HandleEcsEvent(CAknEcsDetector* aDetector, CAknEcsDetector::TState aUpdatedState);
   102 		void ShowWarningNoteL();
    93 		void ShowWarningNoteL();
   103 		
       
   104 		void PostLayoutDynInitL();
       
   105 
    94 
   106 	private:
    95 	private:
   107 		
    96 		
   108 	    /*
    97 	    /*
   109 	    * SetIncallBubbleAllowedInUsualL
    98 	    * SetIncallBubbleAllowedInUsualL
   129         TBuf<KSCPPasscodeMaxLength+1>   iTextBuffer;
   118         TBuf<KSCPPasscodeMaxLength+1>   iTextBuffer;
   130         TBuf<KSCPPasscodeMaxLength+1>   iTmpBuffer;
   119         TBuf<KSCPPasscodeMaxLength+1>   iTmpBuffer;
   131         TBool                           iPrioritySet;
   120         TBool                           iPrioritySet;
   132         TBool                           iPriorityDropped;
   121         TBool                           iPriorityDropped;
   133         TBool							isCallSoftkeyAdded;
   122         TBool							isCallSoftkeyAdded;
   134         TKeypadContext                  iContextSensitive;
       
   135         /** An integer variable to define the input mode of the lock code query */
   123         /** An integer variable to define the input mode of the lock code query */
   136         TInt def_mode;
   124         TInt def_mode;
   137         TInt iKeyUsed;
   125         TInt iKeyUsed;
   138         CSCPLockObserver* iDeviceLockStatusObserver;
   126         CSCPLockObserver* iDeviceLockStatusObserver;
   139 		CSCPLockObserver* iCallStatusObserver;
   127 		CSCPLockObserver* iCallStatusObserver;
   140 		TBool iLockedByLawMo;
       
   141 	};
   128 	};
   142 #endif
   129 #endif
   143 
   130 
   144 // End of file
   131 // End of file