equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 * CallBack class for notification of RProperty changes |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MCEPROPERTYSUBSCRIBER_H |
|
22 #define MCEPROPERTYSUBSCRIBER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <e32property.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 class CMcePropertySubscriber : public CActive |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CMcePropertySubscriber* NewL( TCallBack aCallBack, RProperty& aProperty ); |
|
38 ~CMcePropertySubscriber(); |
|
39 |
|
40 public: // New functions |
|
41 |
|
42 /** |
|
43 * Subscribes notification if input mode has changed |
|
44 */ |
|
45 void SubscribeL(); |
|
46 |
|
47 /** |
|
48 * Stop Subscribe notificatios |
|
49 */ |
|
50 void StopSubscribe(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * C++ constructor. |
|
56 */ |
|
57 CMcePropertySubscriber( TCallBack aCallBack, RProperty& aProperty ); |
|
58 |
|
59 /** |
|
60 * Symbian OS constructor. |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 private: // from CActive |
|
65 void RunL(); |
|
66 void DoCancel(); |
|
67 |
|
68 private: |
|
69 TCallBack iCallBack; |
|
70 RProperty& iProperty; |
|
71 }; |
|
72 |
|
73 #endif //MCEPROPERTYSUBSCRIBER_H |
|
74 |
|
75 // End of file |
|
76 |