equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // cmsgtestpropertwatcher.h |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef __CMSGTESTPROPERTYWATCHER_H__ |
|
27 #define __CMSGTESTPROPERTYWATCHER_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <e32property.h> |
|
31 |
|
32 class MMsgTestPropertyWatcher; |
|
33 |
|
34 class CMsgTestPropertyWatcher : public CActive |
|
35 { |
|
36 public: |
|
37 IMPORT_C static CMsgTestPropertyWatcher* NewL(TUid aCategory, TUint aKey, MMsgTestPropertyWatcher& aCallback); |
|
38 IMPORT_C virtual ~CMsgTestPropertyWatcher(); |
|
39 |
|
40 IMPORT_C RProperty& Property(); |
|
41 |
|
42 protected: |
|
43 void ConstructL(TUid aCategory, TUint aKey, MMsgTestPropertyWatcher& aCallback); |
|
44 CMsgTestPropertyWatcher(); |
|
45 |
|
46 private: |
|
47 void RunL(); |
|
48 void DoCancel(); |
|
49 |
|
50 public: |
|
51 //TBD: these should be private. |
|
52 TUid iCategory; |
|
53 TUint iKey; |
|
54 |
|
55 private: |
|
56 MMsgTestPropertyWatcher* iCallback; |
|
57 |
|
58 protected: |
|
59 RProperty iProperty; |
|
60 }; |
|
61 |
|
62 #endif //__CMSGTESTPROPERTYWATCHER_H__ |