|
1 /* |
|
2 * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of terminalsecurity components |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SCPLOCKNOTIFICATIONEVENTHANDLER_H |
|
19 #define SCPLOCKNOTIFICATIONEVENTHANDLER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <bldvariant.hrh> |
|
23 #include "SCPLockEventHandler.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * A class, which handles the notification and verification event in phone locking |
|
29 */ |
|
30 class CSCPLockNotificationEventHandler : public CSCPLockEventHandler |
|
31 { |
|
32 public: // Methods |
|
33 |
|
34 // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Static constructor. |
|
38 */ |
|
39 static CSCPLockNotificationEventHandler* NewL( CSCPServer* aServer ); |
|
40 |
|
41 /** |
|
42 * Static constructor, that leaves the pointer to the cleanup stack. |
|
43 */ |
|
44 static CSCPLockNotificationEventHandler* NewLC( CSCPServer* aServer ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CSCPLockNotificationEventHandler(); |
|
50 |
|
51 protected: // Methods |
|
52 |
|
53 // Methods from base classes |
|
54 |
|
55 /** |
|
56 * Registration method for reveiving notifications |
|
57 * @return TInt: A generic status code |
|
58 */ |
|
59 TInt RegisterListener(); |
|
60 |
|
61 /** |
|
62 * From CActive The active object working method. |
|
63 */ |
|
64 void RunL(); |
|
65 |
|
66 /** |
|
67 * From CActive The active object request cancellation method. |
|
68 */ |
|
69 void DoCancel(); |
|
70 |
|
71 private: //Methods |
|
72 |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CSCPLockNotificationEventHandler( CSCPServer* aServer ); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 private: // Data |
|
84 |
|
85 // Possible processing states |
|
86 enum TSCPLNQueryState |
|
87 { |
|
88 ESCPLNQueryStateNotification, |
|
89 ESCPLNQueryStateVerification |
|
90 }; |
|
91 |
|
92 /** The current processing state. */ |
|
93 TSCPLNQueryState iQueryState; |
|
94 /** A placeholder for the event received from the TSY */ |
|
95 RMobilePhone::TMobilePhoneSecurityEvent iEvent; |
|
96 }; |
|
97 |
|
98 #endif // SCPLOCKNOTIFICATIONEVENTHANDLER_H |
|
99 |
|
100 // End of File |
|
101 |