|
1 /* |
|
2 * Copyright (c) 2002 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 * Declaration of class CRoapAppWaitDialog. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef DD_VIEWER_WAIT_DIALOG_H |
|
22 #define DD_VIEWER_WAIT_DIALOG_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <AknWaitDialog.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Mixin protocol for handling commands for wait dialog. |
|
32 */ |
|
33 class MRoapDialogCommandObserver |
|
34 { |
|
35 public: // new methods |
|
36 |
|
37 /** |
|
38 * Handle dialog command. |
|
39 * @param aCommand Dialog command id. |
|
40 */ |
|
41 virtual void HandleDialogCommandL( TInt aCommand ) = 0; |
|
42 |
|
43 }; |
|
44 |
|
45 /** |
|
46 * DD Viewer application's wait note. This dialog is passive; commands |
|
47 * arriving here are forwarded to its observer. |
|
48 */ |
|
49 class CRoapAppWaitDialog: public CAknWaitDialog |
|
50 { |
|
51 public: // construction |
|
52 |
|
53 /** |
|
54 * Constructor. |
|
55 * @param aSelfPtr Self pointer. |
|
56 * @param aObserver Commands arriving to the dialog are forwarded |
|
57 * to this observer. |
|
58 */ |
|
59 CRoapAppWaitDialog |
|
60 ( CEikDialog** aSelfPtr, MRoapDialogCommandObserver& aObserver ); |
|
61 |
|
62 protected: // from CAknNoteDialog (CEikDialog) |
|
63 |
|
64 /** |
|
65 * Handle button press (forward to observer). |
|
66 * @param Id of button pressed. |
|
67 * @return Always EFalse - delete the dialog to dismiss it. |
|
68 */ |
|
69 TBool OkToExitL( TInt aButtonId ); |
|
70 |
|
71 private: // data |
|
72 |
|
73 MRoapDialogCommandObserver* iObserver; ///< Command observer. |
|
74 |
|
75 }; |
|
76 |
|
77 #endif /* def DD_VIEWER_WAIT_DIALOG_H */ |