|
1 /* |
|
2 * Copyright (c) 2009-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 #include <ccallremotepartyinformation.h> |
|
19 #include <mcallremotepartyinfo.h> |
|
20 |
|
21 #include "ccallremotepartyinformationimpl.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // Constructor |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CCallRemotePartyInformation::CCallRemotePartyInformation() |
|
30 { |
|
31 } |
|
32 |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // 2nd phase constructor |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 void CCallRemotePartyInformation::ConstructL() |
|
39 { |
|
40 iImpl = CCallRemotePartyInformationImpl::NewL(); |
|
41 } |
|
42 |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // Static constructor |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C CCallRemotePartyInformation* CCallRemotePartyInformation::NewL() |
|
49 { |
|
50 CCallRemotePartyInformation* self = |
|
51 new( ELeave ) CCallRemotePartyInformation; |
|
52 CleanupStack::PushL( self ); |
|
53 self->ConstructL(); |
|
54 CleanupStack::Pop( self ); |
|
55 return self; |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // Destructor |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 CCallRemotePartyInformation::~CCallRemotePartyInformation() |
|
63 { |
|
64 delete iImpl; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C void CCallRemotePartyInformation::NotifyChanges( |
|
72 MCallRemotePartyInformationObserver& aObserver ) |
|
73 { |
|
74 iImpl->NotifyChanges( aObserver ); |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 EXPORT_C void CCallRemotePartyInformation::CancelNotification() |
|
82 { |
|
83 iImpl->CancelNotification( ); |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // |
|
88 // --------------------------------------------------------------------------- |
|
89 // |
|
90 EXPORT_C CCallRemotePartyInfoIter& CCallRemotePartyInformation:: |
|
91 GetRemotePartyInformationL( ) |
|
92 { |
|
93 return iImpl->GetRemotePartyInformationL( ); |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 EXPORT_C const MCallRemotePartyInfo* |
|
101 CCallRemotePartyInformation::GetRemotePartyInformationL( |
|
102 TInt aCallIndex ) |
|
103 { |
|
104 return iImpl->GetRemotePartyInformationL( aCallIndex ); |
|
105 } |
|
106 |