equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMIDQWERTYWATCH_H |
|
20 #define CMIDQWERTYWATCH_H |
|
21 |
|
22 // basic api using (CActive, CleanupStack ...) |
|
23 #include <e32base.h> |
|
24 // RProperty iProperty |
|
25 #include <e32property.h> |
|
26 |
|
27 /** An observer of CMIDQwertyWatch */ |
|
28 class MMIDQwertyObserver |
|
29 { |
|
30 public: |
|
31 virtual void NewQwertyValueL(TInt aNewValue) = 0; |
|
32 }; |
|
33 |
|
34 /** Active object that tracks changes to the qwerty property */ |
|
35 NONSHARABLE_CLASS(CMIDQwertyWatch) : public CActive |
|
36 { |
|
37 enum {EPriority=0}; |
|
38 public: |
|
39 static CMIDQwertyWatch* NewL(MMIDQwertyObserver* aObserver); |
|
40 ~CMIDQwertyWatch(); |
|
41 |
|
42 private: |
|
43 CMIDQwertyWatch(MMIDQwertyObserver* aObserver); |
|
44 void ConstructL(); |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 private: |
|
49 RProperty iProperty; |
|
50 MMIDQwertyObserver* iObserver; |
|
51 }; |
|
52 |
|
53 #endif // CMIDQWERTYWATCH_H |