|
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: Updates remote party information via mediator. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TPEREMOTEPARTYINFOMEDIATORUPDATER_H |
|
19 #define TPEREMOTEPARTYINFOMEDIATORUPDATER_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <MediatorCommandResponder.h> |
|
23 #include <callremotepartyinformation.h> |
|
24 |
|
25 class MPEMediator; |
|
26 class MPEDataStore; |
|
27 |
|
28 /** |
|
29 * Updates remote party information to mediator |
|
30 * |
|
31 * @lib phonemodel.lib |
|
32 * @since S60 5.1 |
|
33 */ |
|
34 NONSHARABLE_CLASS( TPERemotePartyInfoMediatorUpdater ) : public MMediatorCommandObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 TPERemotePartyInfoMediatorUpdater( |
|
39 MPEMediator& aMediator, |
|
40 MPEDataStore& iDataStore ); |
|
41 |
|
42 /** |
|
43 * Updated remote party information to mediator |
|
44 */ |
|
45 void Update(); |
|
46 |
|
47 /** |
|
48 * From base class MMediatorCommandObserver |
|
49 */ |
|
50 virtual void MediatorCommandL( TUid aDomain, |
|
51 TUid aCategory, |
|
52 TInt aCommandId, |
|
53 TVersion aVersion, |
|
54 const TDesC8& aData ); |
|
55 |
|
56 /** |
|
57 * From base class MMediatorCommandObserver |
|
58 */ |
|
59 virtual void CancelMediatorCommand( TUid aDomain, |
|
60 TUid aCategory, |
|
61 TInt aCommandId ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Takes all remote party infos and packages infos to descriptor. |
|
67 * |
|
68 * @return Descriptor containing remote party informations. |
|
69 */ |
|
70 HBufC8* TakeSnapshotOfRemotePartyInfosL(); |
|
71 |
|
72 /** |
|
73 * Resolves remote party identity. |
|
74 * |
|
75 * @return remote party identity. |
|
76 */ |
|
77 MCallRemotePartyInfo::TRemoteIdentityStatus ResolveRemoteIdentity( const TInt aCallId ); |
|
78 |
|
79 /** |
|
80 * Converts remote party identity. |
|
81 * |
|
82 * @return remote party identity. |
|
83 */ |
|
84 MCallRemotePartyInfo::TRemoteIdentityStatus ConvertRemoteIdentity( const TInt aCallId ); |
|
85 |
|
86 private: // data |
|
87 |
|
88 // Access to mediator service |
|
89 MPEMediator& iMediator; |
|
90 |
|
91 // Engine info to gather data |
|
92 MPEDataStore& iDataStore; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // TPEREMOTEPARTYINFOMEDIATORUPDATER_H |