|
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 * Call active notifier: either for data or voice line |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CLogsCallStatus_H |
|
21 #define __CLogsCallStatus_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <etel.h> |
|
25 #include <etelmm.h> |
|
26 |
|
27 #include "CLogsEtelBase.h" |
|
28 #include "MLogsCallStatus.h" |
|
29 // CONSTANTS |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class MLineStatusObserver; |
|
33 |
|
34 // CLASS DECLARATIONS |
|
35 |
|
36 |
|
37 |
|
38 class CLogsCallStatus: public CLogsEtelBase, public MLogsCallStatus |
|
39 { |
|
40 public: |
|
41 |
|
42 enum TLineStatus |
|
43 { |
|
44 EUnknownLine, |
|
45 ECallAndDataLines, |
|
46 ECallLine, |
|
47 ESecondaryLine, // ALS secondary line |
|
48 EDataLine |
|
49 }; |
|
50 |
|
51 /** |
|
52 * Standard creation function. Creates and returns a new object of |
|
53 * this class. |
|
54 * Parameter: aLine, ETel line |
|
55 * |
|
56 * Return value: The pointer of the CLogsCallStatus |
|
57 */ |
|
58 static CLogsCallStatus* NewLC( const TLineStatus aLine ); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 */ |
|
63 ~CLogsCallStatus(); |
|
64 |
|
65 private: // CActive |
|
66 void RunL(); |
|
67 void DoCancel(); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * Symbian OS Constructor |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 /** |
|
77 * C++ Constructor |
|
78 * |
|
79 */ |
|
80 CLogsCallStatus( const TLineStatus aLine ); |
|
81 |
|
82 public: // from MLogsCallStatus |
|
83 |
|
84 void SetObserver( MLineStatusObserver* aObserver ); |
|
85 TInt CallIsActive( TBool& aCallIsActive ); |
|
86 TInt ActiveCallDuration(TTimeIntervalSeconds& aCallDuration); |
|
87 private: // data |
|
88 /// Ref: observer |
|
89 MLineStatusObserver* iObserver; |
|
90 |
|
91 /// Own: Telephone line |
|
92 RMobileLine iLine; |
|
93 |
|
94 /// Own: status |
|
95 RMobileCall::TMobileCallStatus iLineStatus; |
|
96 |
|
97 /// Own: composite object if both the data and cellular lines are initialised. |
|
98 CLogsCallStatus* iDataLine; |
|
99 |
|
100 /// Own: composite object if also the secondary (ALS) line is initialised. |
|
101 CLogsCallStatus* iSecondaryLine; |
|
102 |
|
103 /// Own: voice or data call |
|
104 TLineStatus iSelectedLine; |
|
105 }; |
|
106 |
|
107 #endif // __AOCCT_CALL_STATUS_H |
|
108 |
|
109 // End of file |