|
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: Proxy for remote party information sending |
|
15 * to Mediator. Proxy checks if data has changed and |
|
16 * only in that case sends update event further. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef CPEREMOTEPARTYINFOPROXY_H_ |
|
21 #define CPEREMOTEPARTYINFOPROXY_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "mpemediator.h" |
|
26 |
|
27 |
|
28 |
|
29 /** |
|
30 * Sends event about remote party information change if data has changed. |
|
31 * |
|
32 * @lib phonemodel.lib |
|
33 * @since S60 5.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CPERemotePartyInfoProxy ) : |
|
36 public CBase, |
|
37 public MPEMediator |
|
38 { |
|
39 public: |
|
40 static CPERemotePartyInfoProxy* NewL( MPEMediator& aMediator ); |
|
41 static CPERemotePartyInfoProxy* NewLC( MPEMediator& aMediator ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CPERemotePartyInfoProxy(); |
|
47 |
|
48 |
|
49 /** |
|
50 * From base class MPEMediator. |
|
51 * @see MPEMediator. |
|
52 */ |
|
53 virtual void SendResponse( TUid aCategory, |
|
54 TInt aCommandId, |
|
55 const TDesC8& aData ); |
|
56 |
|
57 /** |
|
58 * From base class MPEMediator |
|
59 * @see MPEMediator. |
|
60 */ |
|
61 virtual void RaiseEvent( TUid aCategory, |
|
62 TInt aEventId, |
|
63 const TDesC8& aData ); |
|
64 |
|
65 private: |
|
66 |
|
67 CPERemotePartyInfoProxy( MPEMediator& aMediator ); |
|
68 |
|
69 void ConstructL( ); |
|
70 |
|
71 private: // data |
|
72 |
|
73 |
|
74 // Access to mediator service which this class is proxy for |
|
75 MPEMediator& iMediator; |
|
76 |
|
77 // current remote party data |
|
78 HBufC8* iRemotePartyData; |
|
79 |
|
80 }; |
|
81 |
|
82 |
|
83 #endif /* CPEREMOTEPARTYINFOPROXY_H_ */ |