|
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: Enables the destruction of the Select Element Popup Dialog |
|
15 * asynchronously |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef __BROWSERASYNCEXIT_H |
|
21 #define __BROWSERASYNCEXIT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "BrowserSelectElementDlg.h" |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DEFINITION |
|
30 class CBrowserDialogsProviderAsyncExit : public CActive |
|
31 { |
|
32 public: // constructors |
|
33 |
|
34 /** |
|
35 * Create a CBrowserDialogsProviderAsyncExit object, Leaves on failure. |
|
36 * @param aDlg. Not owned. |
|
37 * @return A pointer to the created instance of |
|
38 * CBrowserDialogsProviderAsyncExit. |
|
39 */ |
|
40 static CBrowserDialogsProviderAsyncExit* NewL( |
|
41 CBrowserSelectElementDlg& aDlg ); |
|
42 |
|
43 /** |
|
44 * Create a CBrowserDialogsProviderAsyncExit object. Leaves on failure. |
|
45 * @param aDlg . Not owned. |
|
46 * @return A reference to the created instance of |
|
47 * CBrowserDialogsProviderAsyncExit |
|
48 */ |
|
49 static CBrowserDialogsProviderAsyncExit* NewLC( |
|
50 CBrowserSelectElementDlg& aDlg ); |
|
51 |
|
52 private: // default c++, and 2nd phase constructor |
|
53 |
|
54 /** |
|
55 * Constructs this object |
|
56 * @param aDlg. Not owned. |
|
57 */ |
|
58 CBrowserDialogsProviderAsyncExit( CBrowserSelectElementDlg& aDlg ); |
|
59 |
|
60 /** |
|
61 * Performs second phase construction of this object |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 public: |
|
66 |
|
67 /** |
|
68 * Destroy the object and release all memory objects |
|
69 */ |
|
70 ~CBrowserDialogsProviderAsyncExit(); |
|
71 |
|
72 /** |
|
73 * Complete an asynchronous request. |
|
74 */ |
|
75 void Start(); |
|
76 |
|
77 protected: // from CActive |
|
78 |
|
79 /** |
|
80 * Cancel any outstanding requests |
|
81 */ |
|
82 void DoCancel(); |
|
83 |
|
84 /** |
|
85 * Handles object`s request completion event. |
|
86 */ |
|
87 void RunL(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * Indicates the completion status of a request made to a |
|
93 * service provider. |
|
94 */ |
|
95 //TRequestStatus iStatus; |
|
96 |
|
97 /** |
|
98 * To access CBrowserSelectElementDlg`s DestroyPopupL() method. |
|
99 */ |
|
100 CBrowserSelectElementDlg& iDlg; // not owned |
|
101 }; |
|
102 |
|
103 #endif // __BROWSERASYNCEXIT_H |
|
104 |
|
105 // End of file |