equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: This file defines class CIpsPlgPropertyWatcher. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IPSPLGPROPERTYWATCHER_H_ |
|
20 #define IPSPLGPROPERTYWATCHER_H_ |
|
21 |
|
22 class CIpsPlgEventHandler; |
|
23 |
|
24 /** |
|
25 * CIpsPlgPropertyWatcher |
|
26 * |
|
27 */ |
|
28 class CIpsPlgPropertyWatcher : |
|
29 public CActive |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Symbian OS NewL function |
|
35 * @return CIpsPlgPropertyWatcher*, self pointer |
|
36 */ |
|
37 static CIpsPlgPropertyWatcher* NewL( |
|
38 TInt aPriority, |
|
39 CIpsPlgEventHandler& aEventHandler ); |
|
40 |
|
41 |
|
42 /** |
|
43 * destructor |
|
44 */ |
|
45 virtual ~CIpsPlgPropertyWatcher(); |
|
46 |
|
47 private: |
|
48 |
|
49 /** |
|
50 * Constructor |
|
51 * @param aPriority active object priority |
|
52 */ |
|
53 CIpsPlgPropertyWatcher( |
|
54 TInt aPriority, |
|
55 CIpsPlgEventHandler& aEventHandler ); |
|
56 |
|
57 /** |
|
58 * ConstructL |
|
59 * Symbian OS second phase constructor. |
|
60 */ |
|
61 void ConstructL(); |
|
62 |
|
63 public: |
|
64 |
|
65 /** |
|
66 * |
|
67 */ |
|
68 void StartWatch(); |
|
69 |
|
70 |
|
71 protected: |
|
72 |
|
73 /** |
|
74 * DoCancel |
|
75 * From CActive |
|
76 */ |
|
77 virtual void DoCancel(); |
|
78 |
|
79 /** |
|
80 * RunL |
|
81 * From CActive |
|
82 */ |
|
83 virtual void RunL(); |
|
84 |
|
85 |
|
86 protected: // Data |
|
87 |
|
88 CIpsPlgEventHandler& iEventHandler; |
|
89 |
|
90 RProperty iProperty; |
|
91 }; |
|
92 |
|
93 |
|
94 #endif /*IPSPLGPROPERTYWATCHER_H_*/ |