|
1 /* |
|
2 * Copyright (c) 2007 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: Forward functionality provider |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "svpforwardprovider.h" |
|
21 #include "svpmosession.h" |
|
22 #include "svplogger.h" |
|
23 |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // CSVPForwardProvider::CSVPForwardProvider |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CSVPForwardProvider::CSVPForwardProvider() |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // CSVPForwardProvider::ConstructL |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 void CSVPForwardProvider::ConstructL( CSVPMoSession& aSession ) |
|
41 { |
|
42 |
|
43 SVPDEBUG1( "CSVPForwardProvider::ConstructL" ); |
|
44 iMoSession = const_cast< CSVPMoSession* >( &aSession ); |
|
45 |
|
46 } |
|
47 |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // CSVPForwardProvider::NewL |
|
51 // --------------------------------------------------------------------------- |
|
52 // |
|
53 CSVPForwardProvider* CSVPForwardProvider::NewL( CSVPMoSession& aSession ) |
|
54 { |
|
55 CSVPForwardProvider* self = new( ELeave ) CSVPForwardProvider; |
|
56 CleanupStack::PushL( self ); |
|
57 self->ConstructL( aSession ); |
|
58 CleanupStack::Pop( self ); |
|
59 return self; |
|
60 } |
|
61 |
|
62 |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // CSVPForwardProvider::~CSVPForwardProvider |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 CSVPForwardProvider::~CSVPForwardProvider() |
|
69 { |
|
70 |
|
71 } |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // From class MCCPForwardProvider. |
|
78 // CSVPForwardProvider::GetForwardAddressChoicesL |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 const CDesC8Array& CSVPForwardProvider::GetForwardAddressChoicesL() |
|
82 { |
|
83 |
|
84 SVPDEBUG1( "CSVPForwardProvider::GetForwardAddressChoicesL" ); |
|
85 return iMoSession->GetForwardAddressChoicesL(); |
|
86 |
|
87 } |
|
88 |
|
89 // --------------------------------------------------------------------------- |
|
90 // From class MCCPForwardProvider. |
|
91 // CSVPForwardProvider::ForwardToAddressL |
|
92 // --------------------------------------------------------------------------- |
|
93 // |
|
94 void CSVPForwardProvider::ForwardToAddressL( const TInt aIndex ) |
|
95 { |
|
96 |
|
97 SVPDEBUG1( "CSVPForwardProvider::ForwardToAddressL" ); |
|
98 iMoSession->ForwardToAddressL( aIndex ); |
|
99 |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // From class MCCPForwardProvider. |
|
104 // CSVPForwardProvider::AddObserverL |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 void CSVPForwardProvider::AddObserverL( const MCCPForwardObserver& aObserver ) |
|
108 { |
|
109 |
|
110 SVPDEBUG1( "CSVPForwardProvider::AddObserverL" ); |
|
111 iMoSession->AddForwardObserverL( aObserver ); |
|
112 |
|
113 } |
|
114 |
|
115 // --------------------------------------------------------------------------- |
|
116 // From class MCCPForwardProvider. |
|
117 // CSVPForwardProvider::RemoveObserver |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 TInt CSVPForwardProvider::RemoveObserver( const MCCPForwardObserver& aObserver ) |
|
121 { |
|
122 |
|
123 SVPDEBUG1( "CSVPForwardProvider::RemoveObserver" ); |
|
124 return iMoSession->RemoveForwardObserver( aObserver ); |
|
125 |
|
126 } |