|
1 /* |
|
2 * Copyright (c) 2007 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 |
|
19 #ifndef VUICCALLDETECTOR_H |
|
20 #define VUICCALLDETECTOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32property.h> |
|
24 |
|
25 class MCallDetectorObserver; |
|
26 |
|
27 /** |
|
28 * Detector for incoming call |
|
29 */ |
|
30 NONSHARABLE_CLASS( CCallDetector ) : public CActive |
|
31 { |
|
32 |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 */ |
|
38 static CCallDetector* NewL( MCallDetectorObserver* aObserver ); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CCallDetector(); |
|
44 |
|
45 public: // New functions |
|
46 |
|
47 /** |
|
48 * Request call notifications |
|
49 * |
|
50 */ |
|
51 void RequestNotification(); |
|
52 |
|
53 private: |
|
54 |
|
55 /** |
|
56 * C++ default constructor. |
|
57 */ |
|
58 CCallDetector( MCallDetectorObserver* aObserver ); |
|
59 |
|
60 /** |
|
61 * Symbian OS 2nd phase constructor. |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 /** |
|
66 * From CActive |
|
67 * @see CActive for more information |
|
68 */ |
|
69 void RunL(); |
|
70 |
|
71 /** |
|
72 * From CActive |
|
73 * @see CActive for more information |
|
74 */ |
|
75 void DoCancel(); |
|
76 |
|
77 private: |
|
78 |
|
79 // Call observer |
|
80 MCallDetectorObserver* iObserver; |
|
81 |
|
82 RProperty iTsyProperty; |
|
83 }; |
|
84 |
|
85 #endif // VUICCALLDETECTOR_H |