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 "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 * This class is a part of the standard application framework. |
|
16 * It Owns the application main form. |
|
17 * It Acts as a default command handler for the application forms. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef __CCNVAPPUI_H__ |
|
24 #define __CCNVAPPUI_H__ |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknappui.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CCnvMainForm; |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * This class is a part of the standard application framework. |
|
35 * It Owns the application main form. |
|
36 * It Acts as a default command handler for the application forms. |
|
37 */ |
|
38 class CCnvAppUi : public CAknAppUi |
|
39 { |
|
40 |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Default constructor. |
|
45 */ |
|
46 CCnvAppUi(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CCnvAppUi(); |
|
52 |
|
53 /** |
|
54 * 2nd phase constructor. |
|
55 */ |
|
56 void ConstructL(); |
|
57 |
|
58 public: // from CEikAppUi |
|
59 |
|
60 /** |
|
61 * Handles menu commands. |
|
62 * @param aCommand Command identifier. |
|
63 */ |
|
64 void HandleCommandL( TInt aCommand ); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 /** |
|
69 * Pointer to the main form. Owned. |
|
70 */ |
|
71 CCnvMainForm* iMainForm; |
|
72 |
|
73 /** |
|
74 * Set to ETrue by CMainForm at destruction. |
|
75 * Used to make sure that we don't double delete |
|
76 * the form after an automatic kill by the framework (appshutter). |
|
77 */ |
|
78 TBool iFormDeleted; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // __CCNVAPPUI_H__ |
|