|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * CSecObsNotify - starts and cancels notifier plug-ins. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __SECOBSNOTIFY_H |
|
22 #define __SECOBSNOTIFY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <e32property.h> |
|
27 #include "SecPhoneObserver.h" |
|
28 #include "SecurityObserver.hrh" |
|
29 |
|
30 class CSecurityObserver; |
|
31 |
|
32 // CLASS DEFINITIONS |
|
33 class CSecObsNotify : public CActive |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Creates instance of the CSecObsNotify class. |
|
38 * |
|
39 * @param aObserver CSecurityObserver* pointer to securityobserver |
|
40 * @return Returns the instance just created. |
|
41 */ |
|
42 static CSecObsNotify* NewL(CSecurityObserver* aObserver); |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CSecObsNotify(); |
|
47 public: |
|
48 /** |
|
49 * Starts given notifier asyncronously |
|
50 * |
|
51 * @param aNotifierToStart TSecurityNotifier |
|
52 */ |
|
53 void StartNotifier(TSecurityNotifier aNotifierToStart); |
|
54 /** |
|
55 * Cancels active notifier. |
|
56 */ |
|
57 void CancelActiveNotifier(); |
|
58 private: |
|
59 /** |
|
60 * C++ default constructor. |
|
61 * |
|
62 * @param aObserver CSecurityObserver* pointer to securityobserver |
|
63 */ |
|
64 CSecObsNotify(CSecurityObserver* aObserver); |
|
65 /** |
|
66 * Symbian OS constructor. |
|
67 */ |
|
68 void ConstructL(); |
|
69 private: // from CActive |
|
70 /** @see CActive::RunL() */ |
|
71 void RunL(); |
|
72 /** @see CActive::DoCancel() */ |
|
73 void DoCancel(); |
|
74 private: // data |
|
75 RNotifier iNotifier; |
|
76 RProperty iProperty; |
|
77 CPhoneObserver* iPhoneObserver; |
|
78 TBuf8<1> iDummy; |
|
79 CSecurityObserver* iObserver; |
|
80 TSecurityNotifier iActiveNotifier; |
|
81 TSecurityNotifier iPendingNotifier; |
|
82 }; |
|
83 #endif |
|
84 |
|
85 // End of File |