|
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: Declaration of class CSchemeAppUi |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SCHEME_APP_UI_H |
|
20 #define SCHEME_APP_UI_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <aknappui.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 class CSchemeDocument; |
|
30 class CSchemeDialog; |
|
31 class CSchemeHandler; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Application UI for the Scheme App. |
|
37 */ |
|
38 class CSchemeAppUi: public CAknAppUi |
|
39 { |
|
40 |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 */ |
|
46 CSchemeAppUi( CSchemeDocument* aSchemeDocument ); |
|
47 |
|
48 /** |
|
49 * Second phase constructor. Leaves on failure. |
|
50 */ |
|
51 void ConstructL(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CSchemeAppUi(); |
|
57 |
|
58 private: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * from EikAppUi. |
|
62 */ |
|
63 TBool ProcessCommandParametersL( TApaCommand aCommand, |
|
64 TFileName& aDocumentName, |
|
65 const TDesC8& aTail ); |
|
66 |
|
67 public: // from CAknAppUi (CEikAppUi) |
|
68 |
|
69 /** |
|
70 * Handle command. |
|
71 * @param aCommand Command id. |
|
72 */ |
|
73 void HandleCommandL( TInt aCommand ); |
|
74 protected: |
|
75 |
|
76 /** |
|
77 * Handles screen resolution changes |
|
78 */ |
|
79 void HandleScreenDeviceChangedL(); |
|
80 |
|
81 private: // data |
|
82 |
|
83 CSchemeDialog* iAppDialog; ///< App's main dialog. |
|
84 |
|
85 CSchemeHandler* iSchemeHandler; ///< Owned. |
|
86 CSchemeDocument* iSchemeDocument; |
|
87 |
|
88 }; |
|
89 |
|
90 #endif // SCHEME_APP_UI_H |
|
91 |
|
92 // End of File |