|
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: A VoIP line |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BTMCVOIPLINE_H_ |
|
19 #define BTMCVOIPLINE_H_ |
|
20 |
|
21 #include "btmccallstatus.h" |
|
22 #include <mcallinformationobserver.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "btmcactive.h" |
|
26 #include "btmccallactive.h" |
|
27 #include "btmcline.h" |
|
28 #include <mcallinformationobserver.h> |
|
29 #include <ccallinformation.h> |
|
30 #include <ccpdefs.h> |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CBtmcCallStatus; |
|
34 class MCCPCall; |
|
35 class MCCPObserver; |
|
36 |
|
37 NONSHARABLE_CLASS(CBtmcVoIPLine) : public CBase , public MBtmcLine, public MCallInformationObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CBtmcVoIPLine* NewL(CBtmcCallStatus& aParent, RMobilePhone& aPhone); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CBtmcVoIPLine* NewLC(CBtmcCallStatus& aParent, RMobilePhone& aPhone); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CBtmcVoIPLine(); |
|
55 |
|
56 public: //From MBtmcLine |
|
57 |
|
58 /* From MBtmcLine; Returns the current call status |
|
59 * @return Bit mask |
|
60 */ |
|
61 TInt CallStatusL() const; |
|
62 |
|
63 /* From MBtmcLine; method which returns array of active calls |
|
64 * @return Array of active calls |
|
65 */ |
|
66 const RPointerArray<CBtmcCallActive>& ActiveCalls() const; |
|
67 |
|
68 /* From MBtmcLine; method which returns reference |
|
69 * to RMobilePhone. Used only by MobileLine |
|
70 * @return Reference to RMobilePhone |
|
71 */ |
|
72 RMobilePhone& Phone(); |
|
73 |
|
74 /* From MBtmcLine; method which returns reference |
|
75 * to the call of type: ECallTypePS. Used only by VoipLine |
|
76 * @return Reference to MCall |
|
77 */ |
|
78 const MCall& CallInformationL(); |
|
79 |
|
80 /* From MBtmcLine |
|
81 * Returns the type of line |
|
82 * @return ETrue for Voip and EFalse otherwise |
|
83 * |
|
84 */ |
|
85 TBool IsVoip(); |
|
86 |
|
87 private: |
|
88 |
|
89 // From MCallInformationObserver |
|
90 |
|
91 /** |
|
92 * Signals that there are changes in ongoing calls. |
|
93 * |
|
94 * @return void |
|
95 */ |
|
96 void CallInformationChanged(); |
|
97 |
|
98 private: |
|
99 /** |
|
100 * C++ default constructor. |
|
101 */ |
|
102 CBtmcVoIPLine(CBtmcCallStatus& aParent, RMobilePhone& aPhone); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 /** |
|
110 * Leavable version of CallInformationChanged |
|
111 * |
|
112 * @return void |
|
113 */ |
|
114 void CallInformationChangedL(); |
|
115 |
|
116 //Members |
|
117 private: |
|
118 CBtmcCallStatus& iParent; |
|
119 CCallInformation* iInfo; |
|
120 RPointerArray<CBtmcCallActive> iCallActives; |
|
121 RMobilePhone& iPhone; // |
|
122 }; |
|
123 |
|
124 #endif /* BTMCVOIPLINE_H_ */ |