equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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 the License "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 * Implementation of class CRoapAppWaitDialog. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 #include "RoapAppWaitDialog.h" |
|
24 |
|
25 // ================= MEMBER FUNCTIONS ======================= |
|
26 |
|
27 // --------------------------------------------------------- |
|
28 // CRoapAppWaitDialog::CRoapAppWaitDialog() |
|
29 // --------------------------------------------------------- |
|
30 // |
|
31 CRoapAppWaitDialog::CRoapAppWaitDialog |
|
32 ( CEikDialog** aSelfPtr, MRoapDialogCommandObserver& aObserver ) |
|
33 : CAknWaitDialog( aSelfPtr, /*aVisibilityDelayOff=*/ ETrue ) |
|
34 { |
|
35 iObserver = &aObserver; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CRoapAppWaitDialog::OkToExitL() |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 TBool CRoapAppWaitDialog::OkToExitL( TInt aButtonId ) |
|
43 { |
|
44 if ( aButtonId == EAknSoftkeyCancel ) |
|
45 { |
|
46 // CAknShutter simulates ESC key events; this causes Cancel command. |
|
47 return ETrue; |
|
48 } |
|
49 else |
|
50 { |
|
51 iObserver->HandleDialogCommandL( aButtonId ); |
|
52 return EFalse; |
|
53 } |
|
54 } |