equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 #ifndef CIRPROPERTYCHANGEAO_H |
|
19 #define CIRPROPERTYCHANGEAO_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <e32property.h> |
|
23 |
|
24 class MIRPropertyChangeObserverInterface; |
|
25 |
|
26 class CIRPropertyChangeAO : public CActive |
|
27 { |
|
28 |
|
29 public: |
|
30 |
|
31 //only two-phase constructor is permit to use |
|
32 static CIRPropertyChangeAO* NewL( MIRPropertyChangeObserverInterface* aObserver, const TUid& aCategory, const TUint aKey); |
|
33 ~CIRPropertyChangeAO(); |
|
34 void ActivateL(); |
|
35 TBool ValueInt(TInt& aValue); |
|
36 |
|
37 private: |
|
38 |
|
39 CIRPropertyChangeAO(MIRPropertyChangeObserverInterface* aObserver,const TUid& aCategory,const TUint aKey); |
|
40 void ConstructL(); |
|
41 |
|
42 protected: |
|
43 |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 private: |
|
48 |
|
49 TInt iValueInt; |
|
50 RProperty iProperty; |
|
51 MIRPropertyChangeObserverInterface* iObserver; |
|
52 TUid iCategory; |
|
53 TUint iKey; |
|
54 }; |
|
55 #endif // CIRPROPERTYCHANGEAO_H |
|
56 |