equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-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". |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Defines the pop-up selection list with the active connections. |
15 * Defines the pop-up selection list with the active connections. |
16 * |
|
17 */ |
16 */ |
18 |
17 |
19 |
18 |
20 // INCLUDE FILES |
19 // INCLUDE FILES |
21 #include "DisconnectDlgDialog.h" |
20 #include "DisconnectDlgDialog.h" |
24 #include "ConnectionCArray.h" |
23 #include "ConnectionCArray.h" |
25 #include "ConnectionModel.h" |
24 #include "ConnectionModel.h" |
26 #include "ConnectionDialogsLogger.h" |
25 #include "ConnectionDialogsLogger.h" |
27 #include "ExpiryTimer.h" |
26 #include "ExpiryTimer.h" |
28 |
27 |
29 #include <DisconnectDlg.rsg> |
28 #include <disconnectdlg.rsg> |
30 #include <AknIconArray.h> |
29 #include <AknIconArray.h> |
31 #include <StringLoader.h> |
30 #include <StringLoader.h> |
32 #include <uikon/eiksrvui.h> |
31 #include <uikon/eiksrvui.h> |
33 |
32 |
34 |
33 |
220 { |
219 { |
221 TInt toBeClosedItem = ListBox()->CurrentItemIndex(); |
220 TInt toBeClosedItem = ListBox()->CurrentItemIndex(); |
222 TInt result = iConnModel->EndConnection( toBeClosedItem ); |
221 TInt result = iConnModel->EndConnection( toBeClosedItem ); |
223 iDisconnectDialogUi->iDialogRun = EFalse; |
222 iDisconnectDialogUi->iDialogRun = EFalse; |
224 if ( result ) |
223 if ( result ) |
225 { |
224 { |
226 TInt resId = R_QTN_CMON_INFO_CONN_ALREADY_END; |
|
227 if( KNullUnit == result ) |
225 if( KNullUnit == result ) |
228 { |
226 { |
229 result = KErrNone; |
227 result = KErrNone; |
230 } |
228 } |
231 else |
229 else |
232 { |
230 { |
233 resId = R_QTN_NETW_INFO_DISCONNECT_FAILED; |
231 iConnModel->InfoNoteL( R_QTN_NETW_INFO_DISCONNECT_FAILED ); |
234 result = KErrGeneral; |
232 result = KErrGeneral; |
235 } |
233 } |
236 |
234 |
237 iConnModel->InfoNoteL( resId ); |
|
238 iDisconnectDialogUi->CompleteL( result ); |
235 iDisconnectDialogUi->CompleteL( result ); |
239 } |
236 } |
240 } |
237 } |
241 else if ( aButtonId == EAknSoftkeyCancel ) |
238 else if ( aButtonId == EAknSoftkeyCancel ) |
242 { |
239 { |