|
1 /* |
|
2 * Copyright (c) 2006-2009 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 |
|
20 #ifndef CMMFAXLINETSY_H |
|
21 #define CMMFAXLINETSY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cmmlinetsy.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * CMmFaxLineTsy implements mode dependent Fax Line based functionality |
|
30 * (defined by Symbian) |
|
31 */ |
|
32 NONSHARABLE_CLASS( CMmFaxLineTsy ) : public CMmLineTsy |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * @param aMmPhone Pointer to the Phone object |
|
39 * @param aMode Line mode |
|
40 * @param aName Name of this line |
|
41 * @param aMessageManager Pointer to the MessageManager |
|
42 * @return CMmFaxLineTsy* Created line object |
|
43 */ |
|
44 static CMmFaxLineTsy* NewL( CMmPhoneTsy* aMmPhone, |
|
45 RMobilePhone::TMobileService aMode, const TDesC& aName, |
|
46 CMmMessageManagerBase* aMessageManager ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CMmFaxLineTsy(); |
|
52 |
|
53 // Functions from base classes |
|
54 |
|
55 /** |
|
56 * This method is used for notifying a client about an incoming call. |
|
57 * |
|
58 * |
|
59 * @param aDataPackage Package containing information about the |
|
60 * incoming call |
|
61 */ |
|
62 void CompleteNotifyIncomingCall( CMmDataPackage* aDataPackage ); |
|
63 |
|
64 /** |
|
65 * This method is used for notifying a line of a call entering Dialling |
|
66 * state |
|
67 * |
|
68 * |
|
69 * @param aDataPackage Package containing information about the call |
|
70 */ |
|
71 void CompleteNotifyDiallingStatus( CMmDataPackage* aDataPackage ); |
|
72 |
|
73 /** |
|
74 * This function creates a new name for a call and opens a new call. |
|
75 * |
|
76 * |
|
77 * @param aName Name of the new call. |
|
78 * @return CTelObject* Call object that was opened. |
|
79 */ |
|
80 CTelObject* OpenNewObjectL( TDes& aNewName ); |
|
81 |
|
82 /** |
|
83 * This function sets iLastIncomingCall to NULL. |
|
84 * |
|
85 */ |
|
86 void ResetLastIncomingCall(); |
|
87 |
|
88 private: // Constructors and destructor |
|
89 |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 CMmFaxLineTsy(); |
|
94 |
|
95 private: // Functions from base classes |
|
96 |
|
97 /** |
|
98 * Creates a call object for the call that has been initiated bypassing |
|
99 * TSY |
|
100 * |
|
101 * |
|
102 * @param aCallId: Call id of the new call |
|
103 * @param aCallMode: Call mode |
|
104 * @param aCallStatus: Call status |
|
105 * @return Pointer to created call object |
|
106 */ |
|
107 CMmCallTsy* CreateGhostCallObject( |
|
108 TInt aCallId, |
|
109 RMobilePhone::TMobileService /*aCallMode*/, |
|
110 RMobileCall::TMobileCallStatus aCallStatus ); |
|
111 |
|
112 /** |
|
113 * Initialises miscellaneous internal attributes |
|
114 * |
|
115 * |
|
116 */ |
|
117 void InitInternalAttributesL(); |
|
118 |
|
119 /** |
|
120 * Creates and stores a Call object for incoming call |
|
121 * |
|
122 * |
|
123 * @return TInt Success/failure value |
|
124 */ |
|
125 TInt CreateCallObjectForIncomingCall(); |
|
126 |
|
127 public: // Data |
|
128 |
|
129 /** |
|
130 * For that a CMmCallTsy instance knows whether another |
|
131 * CMmCallTsy has opened a CMmTsyFax object |
|
132 */ |
|
133 TBool iFaxOpened; |
|
134 |
|
135 /** |
|
136 * mmfax: so that OpenNewCall 'knows' which call to open! |
|
137 */ |
|
138 CMmCallTsy* iLastIncomingFaxCall; |
|
139 |
|
140 }; |
|
141 |
|
142 #endif // CMMFAXLINETSY_H |
|
143 |
|
144 // End of File |