1 /* |
|
2 * Copyright (c) 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: Registers mediator command to get the initial |
|
15 * remote party information. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CPEREMOTEPARTYINFOMEDIATOR_H_ |
|
20 #define CPEREMOTEPARTYINFOMEDIATOR_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "mpemediator.h" |
|
25 |
|
26 class CMediatorCommandResponder; |
|
27 class CMediatorEventProvider; |
|
28 class MPEPhoneModelInternal; |
|
29 class CPERemotePartyInfoProxy; |
|
30 class TPERemotePartyInfoMediatorUpdater; |
|
31 |
|
32 |
|
33 /** |
|
34 * Registers mediator command to get the initial remote party information. |
|
35 * |
|
36 * @lib phonemodel.lib |
|
37 * @since S60 5.2 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CPERemotePartyInfoMediator ) : |
|
40 public CBase, |
|
41 public MPEMediator |
|
42 { |
|
43 public: |
|
44 |
|
45 static CPERemotePartyInfoMediator* NewL( MPEPhoneModelInternal& aModel ); |
|
46 static CPERemotePartyInfoMediator* NewLC( MPEPhoneModelInternal& aModel ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CPERemotePartyInfoMediator(); |
|
52 |
|
53 /** |
|
54 * Updates remote party info information to mediator clients. |
|
55 * |
|
56 * @since S60 5.2 |
|
57 */ |
|
58 void UpdateRemotePartyInfo(); |
|
59 |
|
60 /** |
|
61 * From base class MPEMediator. |
|
62 * @see MPEMediator. |
|
63 */ |
|
64 virtual void SendResponse( TUid aCategory, |
|
65 TInt aCommandId, |
|
66 const TDesC8& aData ); |
|
67 |
|
68 /** |
|
69 * From base class MPEMediator |
|
70 * @see MPEMediator. |
|
71 */ |
|
72 virtual void RaiseEvent( TUid aCategory, |
|
73 TInt aEventId, |
|
74 const TDesC8& aData ); |
|
75 |
|
76 private: |
|
77 |
|
78 CPERemotePartyInfoMediator( ); |
|
79 |
|
80 void ConstructL( MPEPhoneModelInternal& aModel ); |
|
81 |
|
82 private: // data |
|
83 |
|
84 /** |
|
85 * To register and respond commands. |
|
86 * Own. |
|
87 */ |
|
88 CMediatorCommandResponder* iResponder; |
|
89 |
|
90 /** |
|
91 * To register and raise events. |
|
92 * Own. |
|
93 */ |
|
94 CMediatorEventProvider* iEventProvider; |
|
95 |
|
96 /** |
|
97 * To filter events that contain unchanged data. |
|
98 * Own. |
|
99 */ |
|
100 CPERemotePartyInfoProxy* iProxy; |
|
101 |
|
102 /** |
|
103 * To update the call info to mediator clients. |
|
104 * Own. |
|
105 */ |
|
106 TPERemotePartyInfoMediatorUpdater* iUpdater; |
|
107 |
|
108 }; |
|
109 |
|
110 |
|
111 #endif /* CPEREMOTEPARTYINFOMEDIATOR_H_ */ |
|