terminalsecurity/SCP/SCPServer/inc/SCPLockNotificationEventHandler.h
changeset 22 19fb38abab1d
parent 0 b497e44ab2fc
child 24 bf47f3b79154
--- a/terminalsecurity/SCP/SCPServer/inc/SCPLockNotificationEventHandler.h	Tue Feb 02 00:44:00 2010 +0200
+++ b/terminalsecurity/SCP/SCPServer/inc/SCPLockNotificationEventHandler.h	Fri Apr 16 15:52:47 2010 +0300
@@ -22,6 +22,7 @@
 #include <bldvariant.hrh>
 #include "SCPLockEventHandler.h"
 
+class CSCPSession;
 // CLASS DECLARATION
 
 /**
@@ -36,18 +37,20 @@
         /**
         * Static constructor.
         */
-   	    static CSCPLockNotificationEventHandler* NewL( CSCPServer* aServer );
+   	    static CSCPLockNotificationEventHandler* NewL( CSCPServer* aServer, CSCPSession* aSession );
         
         /**
         * Static constructor, that leaves the pointer to the cleanup stack.
         */
-        static CSCPLockNotificationEventHandler* NewLC( CSCPServer* aServer );
+        static CSCPLockNotificationEventHandler* NewLC( CSCPServer* aServer, CSCPSession* aSession );
 
         /**
         * Destructor.
         */
         virtual ~CSCPLockNotificationEventHandler();
        
+		// Ack from session after queryadmincmd
+		void AckReceived();
     protected:  // Methods   
         
         // Methods from base classes
@@ -68,12 +71,14 @@
         */
         void DoCancel();
 
+        // send passcode to ISA
+        void VerifyPass();
     private: //Methods
     
         /**
         * C++ default constructor.
         */
-        CSCPLockNotificationEventHandler( CSCPServer* aServer );    
+        CSCPLockNotificationEventHandler( CSCPServer* aServer, CSCPSession* aSession );
 
         /**
         * By default Symbian 2nd phase constructor is private.
@@ -86,13 +91,18 @@
         enum TSCPLNQueryState
             {
             ESCPLNQueryStateNotification,
-            ESCPLNQueryStateVerification
+            ESCPLNQueryStateVerification,
+            ESCPLNQueryStateQueryAdmin
             };
                         
         /** The current processing state. */
         TSCPLNQueryState                        iQueryState;                 
         /** A placeholder for the event received from the TSY */
         RMobilePhone::TMobilePhoneSecurityEvent iEvent;        
+        // Ack from queryadmin
+        TBool iAckReceived;
+        /** The parent session pointer */
+        CSCPSession* iSession;
     };
 
 #endif      // SCPLOCKNOTIFICATIONEVENTHANDLER_H