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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef PSPOPERTYOBSERVER_H |
|
17 #define PSPOPERTYOBSERVER_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32property.h> |
|
21 |
|
22 class MPsPropertyObserver |
|
23 { |
|
24 public: |
|
25 virtual void PsPropertyChanged(TInt aKey, TInt aValue) =0; |
|
26 }; |
|
27 |
|
28 class CPsPropertyObserver : public CActive |
|
29 { |
|
30 public: |
|
31 static CPsPropertyObserver* NewL(const TUid& aGroup, TInt aKey, MPsPropertyObserver& aObserver); |
|
32 void Start(); |
|
33 ~CPsPropertyObserver(); |
|
34 |
|
35 protected: |
|
36 CPsPropertyObserver(TInt aKey, MPsPropertyObserver& aObserver); |
|
37 void ConstructL(const TUid& aGroup); |
|
38 |
|
39 protected: |
|
40 void RunL(); |
|
41 void DoCancel(); |
|
42 |
|
43 private: |
|
44 RProperty iProperty; |
|
45 TInt iKey; |
|
46 TInt iValue; |
|
47 MPsPropertyObserver& iObserver; |
|
48 }; |
|
49 |
|
50 #endif |