|
1 /* |
|
2 * Copyright (c) 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 #ifndef CCALLREMOTEPARTYINFORMATIONIMPL_H |
|
19 #define CCALLREMOTEPARTYINFORMATIONIMPL_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "ctelsrvbase.h" |
|
24 |
|
25 |
|
26 class MCallRemotePartyInfo; |
|
27 class CCallRemotePartyInfos; |
|
28 class MCallRemotePartyInformationObserver; |
|
29 class CCallRemotePartyInfoIter; |
|
30 |
|
31 /** |
|
32 * Implementation for CCallRemotePartyInformation API. |
|
33 * |
|
34 * @lib TelephonyService |
|
35 * @since S60 5.2 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CCallRemotePartyInformationImpl ) : public CTelSrvBase |
|
38 { |
|
39 public: |
|
40 static CCallRemotePartyInformationImpl* NewL(); |
|
41 static CCallRemotePartyInformationImpl* NewLC(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CCallRemotePartyInformationImpl(); |
|
47 |
|
48 /** |
|
49 * Sets the observer for changes in remote party info. |
|
50 * |
|
51 * @since S60 v5.2 |
|
52 * @param aObserver Observer for notifications. |
|
53 */ |
|
54 void NotifyChanges( MCallRemotePartyInformationObserver& aObserver ); |
|
55 |
|
56 /** |
|
57 * Used to cancel previously placed NotifyChanges call. |
|
58 * |
|
59 * @since S60 v5.2 |
|
60 */ |
|
61 void CancelNotification(); |
|
62 |
|
63 /** |
|
64 * Gets the snapshot of remote party information of ongoing calls. |
|
65 * |
|
66 * @since S60 v5.2 |
|
67 * @return Remote party info of ongoing calls. |
|
68 */ |
|
69 CCallRemotePartyInfoIter& GetRemotePartyInformationL( ); |
|
70 |
|
71 /** |
|
72 * Gets the remote party information of a call. |
|
73 * |
|
74 * @since S60 v5.2 |
|
75 * @param aCallIndex Specifies a call. |
|
76 * @return Remote party information. NULL if the remote party information |
|
77 * is not available for call. Ownership not given. |
|
78 */ |
|
79 const MCallRemotePartyInfo* GetRemotePartyInformationL( TInt aCallIndex ); |
|
80 |
|
81 // from base class CTelSrvBase |
|
82 |
|
83 /** |
|
84 * From CTelSrvBase. |
|
85 * A response to a Mediator Service command. |
|
86 * |
|
87 * @since S60 v5.1 |
|
88 * @param aData The parameters of the response. |
|
89 */ |
|
90 void DoHandleCommandResponseL( const TDesC8& aData ); |
|
91 |
|
92 |
|
93 /** |
|
94 * From CTelSrvBase. |
|
95 * A Mediator Service event. |
|
96 * |
|
97 * @since S60 v5.1 |
|
98 * @param aData The parameters of the event. |
|
99 * @return None. |
|
100 */ |
|
101 void DoHandleMediatorEventL( const TDesC8& aData ); |
|
102 |
|
103 protected: |
|
104 |
|
105 CCallRemotePartyInformationImpl(); |
|
106 |
|
107 void ConstructL(CMediatorService* aMediatorService); |
|
108 |
|
109 private: // data |
|
110 |
|
111 /** |
|
112 * Observer to be notified when call information changes |
|
113 * Not own. |
|
114 */ |
|
115 MCallRemotePartyInformationObserver* iObserver; |
|
116 |
|
117 |
|
118 CCallRemotePartyInfos* iRemotePartyInfos; |
|
119 CCallRemotePartyInfoIter* iRemotePartyInfoIter; |
|
120 }; |
|
121 |
|
122 #endif // CCALLREMOTEPARTYINFORMATIONIMPL_H |