|
1 /* |
|
2 * Copyright (c) 2007-2009 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 * Name : strtsecuritynoteobserver.h |
|
16 * Part of : System Startup / Starter |
|
17 * Interface : None |
|
18 * Declaration of CStrtSecurityNoteObserver class. |
|
19 * Version : %version: ou1s60rt#4 % |
|
20 * This material, including documentation and any related computer |
|
21 * programs, is protected by copyright controlled by Nokia. All |
|
22 * rights are reserved. Copying, including reproducing, storing, |
|
23 * adapting or translating, any or all of this material requires the |
|
24 * prior written consent of Nokia. This material also contains |
|
25 * confidential information which may not be disclosed to others |
|
26 * without the prior written consent of Nokia. |
|
27 * Template version: 4.0 |
|
28 * Nokia Core OS * |
|
29 * File renamed from strtsecuritynoteobserver.h to securitynoteobserver.h as part of Core OS transfer. |
|
30 * |
|
31 */ |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 /** |
|
37 @file |
|
38 @test |
|
39 @internalComponent - Internal Symbian test code |
|
40 */ |
|
41 |
|
42 |
|
43 #ifndef __SECURITYNOTEOBSERVER_H__ |
|
44 #define __SECURITYNOTEOBSERVER_H__ |
|
45 |
|
46 #include <e32base.h> |
|
47 |
|
48 NONSHARABLE_CLASS(CSecurityNoteObserver) : public CActive |
|
49 { |
|
50 public: |
|
51 static CSecurityNoteObserver* NewL(); |
|
52 ~CSecurityNoteObserver(); |
|
53 |
|
54 private: |
|
55 //from CBase |
|
56 CSecurityNoteObserver(const TUid& aCategory, const TUint aKey); |
|
57 TBool PropertyChanged(const TInt aCurrentValue); |
|
58 void StartL(); |
|
59 |
|
60 //from CActive |
|
61 void DoCancel(); |
|
62 void RunL(); |
|
63 void Activate(); |
|
64 |
|
65 private: |
|
66 // Category of the P&S key to observe. |
|
67 TUid iCategory; |
|
68 |
|
69 // Identifies the P&S key to observe. |
|
70 TUint iKey; |
|
71 |
|
72 // Publish & subscribe interface for the SIM indicator flag key. |
|
73 RProperty iProperty; |
|
74 }; |
|
75 |
|
76 #endif //__SECURITYNOTEOBSERVER_H__ |