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