terminalsecurity/SCP/SCPServer/inc/SCPLockNotificationEventHandler.h
changeset 22 19fb38abab1d
parent 0 b497e44ab2fc
child 24 bf47f3b79154
equal deleted inserted replaced
5:3f7d9dbe57c8 22:19fb38abab1d
    20 
    20 
    21 //  INCLUDES
    21 //  INCLUDES
    22 #include <bldvariant.hrh>
    22 #include <bldvariant.hrh>
    23 #include "SCPLockEventHandler.h"
    23 #include "SCPLockEventHandler.h"
    24 
    24 
       
    25 class CSCPSession;
    25 // CLASS DECLARATION
    26 // CLASS DECLARATION
    26 
    27 
    27 /**
    28 /**
    28 *  A class, which handles the notification and verification event in phone locking
    29 *  A class, which handles the notification and verification event in phone locking
    29 */
    30 */
    34         // Constructors and destructor                
    35         // Constructors and destructor                
    35 
    36 
    36         /**
    37         /**
    37         * Static constructor.
    38         * Static constructor.
    38         */
    39         */
    39    	    static CSCPLockNotificationEventHandler* NewL( CSCPServer* aServer );
    40    	    static CSCPLockNotificationEventHandler* NewL( CSCPServer* aServer, CSCPSession* aSession );
    40         
    41         
    41         /**
    42         /**
    42         * Static constructor, that leaves the pointer to the cleanup stack.
    43         * Static constructor, that leaves the pointer to the cleanup stack.
    43         */
    44         */
    44         static CSCPLockNotificationEventHandler* NewLC( CSCPServer* aServer );
    45         static CSCPLockNotificationEventHandler* NewLC( CSCPServer* aServer, CSCPSession* aSession );
    45 
    46 
    46         /**
    47         /**
    47         * Destructor.
    48         * Destructor.
    48         */
    49         */
    49         virtual ~CSCPLockNotificationEventHandler();
    50         virtual ~CSCPLockNotificationEventHandler();
    50        
    51        
       
    52 		// Ack from session after queryadmincmd
       
    53 		void AckReceived();
    51     protected:  // Methods   
    54     protected:  // Methods   
    52         
    55         
    53         // Methods from base classes
    56         // Methods from base classes
    54         
    57         
    55         /**
    58         /**
    66         /**
    69         /**
    67         * From CActive The active object request cancellation method.
    70         * From CActive The active object request cancellation method.
    68         */
    71         */
    69         void DoCancel();
    72         void DoCancel();
    70 
    73 
       
    74         // send passcode to ISA
       
    75         void VerifyPass();
    71     private: //Methods
    76     private: //Methods
    72     
    77     
    73         /**
    78         /**
    74         * C++ default constructor.
    79         * C++ default constructor.
    75         */
    80         */
    76         CSCPLockNotificationEventHandler( CSCPServer* aServer );    
    81         CSCPLockNotificationEventHandler( CSCPServer* aServer, CSCPSession* aSession );
    77 
    82 
    78         /**
    83         /**
    79         * By default Symbian 2nd phase constructor is private.
    84         * By default Symbian 2nd phase constructor is private.
    80         */
    85         */
    81         void ConstructL();          
    86         void ConstructL();          
    84         
    89         
    85         // Possible processing states
    90         // Possible processing states
    86         enum TSCPLNQueryState
    91         enum TSCPLNQueryState
    87             {
    92             {
    88             ESCPLNQueryStateNotification,
    93             ESCPLNQueryStateNotification,
    89             ESCPLNQueryStateVerification
    94             ESCPLNQueryStateVerification,
       
    95             ESCPLNQueryStateQueryAdmin
    90             };
    96             };
    91                         
    97                         
    92         /** The current processing state. */
    98         /** The current processing state. */
    93         TSCPLNQueryState                        iQueryState;                 
    99         TSCPLNQueryState                        iQueryState;                 
    94         /** A placeholder for the event received from the TSY */
   100         /** A placeholder for the event received from the TSY */
    95         RMobilePhone::TMobilePhoneSecurityEvent iEvent;        
   101         RMobilePhone::TMobilePhoneSecurityEvent iEvent;        
       
   102         // Ack from queryadmin
       
   103         TBool iAckReceived;
       
   104         /** The parent session pointer */
       
   105         CSCPSession* iSession;
    96     };
   106     };
    97 
   107 
    98 #endif      // SCPLOCKNOTIFICATIONEVENTHANDLER_H   
   108 #endif      // SCPLOCKNOTIFICATIONEVENTHANDLER_H   
    99             
   109             
   100 // End of File
   110 // End of File