1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
84 iVmbxServiceId = aVmbxServiceId; |
84 iVmbxServiceId = aVmbxServiceId; |
85 VMBLOGSTRING( "VMBX: CVmbxEngineBase::SetCurrentServiceId <=" ); |
85 VMBLOGSTRING( "VMBX: CVmbxEngineBase::SetCurrentServiceId <=" ); |
86 } |
86 } |
87 |
87 |
88 // ---------------------------------------------------------------------------- |
88 // ---------------------------------------------------------------------------- |
89 // CVmbxEngineBase::CheckConfiguration() |
89 // CVmbxCsVideoEngine::CheckConfiguration() |
90 // ---------------------------------------------------------------------------- |
90 // ---------------------------------------------------------------------------- |
91 // |
91 // |
92 TBool CVmbxEngineBase::CheckConfiguration( |
92 TBool CVmbxEngineBase::CheckConfiguration( |
93 const TVoiceMailboxParams& /*aParams*/, const TInt aFlags ) |
93 const TVoiceMailboxParams& /*aParams*/, const TInt aFlags ) |
94 { |
94 { |
95 VMBLOGSTRING( "VMBX: CVmbxEngineBase::CheckConfiguration =>" ); |
95 VMBLOGSTRING( "VMBX: CVmbxEngineBase::CheckConfiguration =>" ); |
96 TBool conf( EFalse ); |
96 TBool conf( EFalse ); |
97 if ( EVmbxChangeNbrNotAllowedOnUi & aFlags ) |
97 if ( EVmbxChangeNbrAllowedOnUi & aFlags ) |
98 { |
98 { |
99 conf = iProvider.VmbxCenRepHandler().IsAllowedUserEdit(); |
99 // NOT suppported as default |
|
100 } |
|
101 else if ( EVmbxVideoMailboxSupported & aFlags ) |
|
102 { |
|
103 // NOT suppported as default |
|
104 } |
|
105 else |
|
106 { |
|
107 // default |
100 } |
108 } |
101 VMBLOGSTRING2( "VMBX: CVmbxEngineBase::CheckConfiguration: conf%I <=", |
109 VMBLOGSTRING2( "VMBX: CVmbxEngineBase::CheckConfiguration: conf%I <=", |
102 conf ); |
110 conf ); |
103 return conf; |
111 return conf; |
104 } |
112 } |
132 { |
140 { |
133 VMBLOGSTRING( "VMBX: CVmbxEngineBase::QueryChangeNumberL =>" ); |
141 VMBLOGSTRING( "VMBX: CVmbxEngineBase::QueryChangeNumberL =>" ); |
134 TInt err( KErrNone ); |
142 TInt err( KErrNone ); |
135 TPtrC vmbxNumber( KNullDesC ); |
143 TPtrC vmbxNumber( KNullDesC ); |
136 err = aEntry.GetVmbxNumber( vmbxNumber ); |
144 err = aEntry.GetVmbxNumber( vmbxNumber ); |
137 |
145 |
138 if ( KErrNone == err ) |
146 if ( KErrNone == err ) |
139 { |
147 { |
140 HBufC* changeNumber = HBufC::NewLC( KVmbxMaxNumberLength ); |
148 HBufC* changeNumber = HBufC::NewLC( KVmbxMaxNumberLength ); |
141 TPtr tempNumber( changeNumber->Des() ); |
149 TPtr tempNumber( changeNumber->Des() ); |
142 tempNumber.Copy( vmbxNumber ); |
150 tempNumber.Copy( vmbxNumber ); |