1 /* |
|
2 * Copyright (c) 2005 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: Header file for CFotaSrvUi |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CFOTASRVUI_H |
|
21 #define CFOTASRVUI_H |
|
22 |
|
23 #include <bldvariant.hrh> |
|
24 |
|
25 // INCLUDES |
|
26 #include <eikapp.h> |
|
27 #include <eikdoc.h> |
|
28 #include <e32std.h> |
|
29 #include <coeccntx.h> |
|
30 #include <aknappui.h> |
|
31 #include <eikdialg.h> |
|
32 #include <eikmenup.h> |
|
33 #include <aknnavi.h> |
|
34 #include <aknnavide.h> |
|
35 #include <aknnavilabel.h> |
|
36 #include <akntitle.h> |
|
37 #include <AknProgressDialog.h> |
|
38 |
|
39 #include "FotaSrvDocument.h" |
|
40 #include "fotaConst.h" |
|
41 |
|
42 // FORWARD DECLARATIONS |
|
43 |
|
44 /** |
|
45 * Application UI class |
|
46 * |
|
47 * @lib fotaserver |
|
48 * @since S60 v3.1 |
|
49 */ |
|
50 class CFotaSrvUi : public CAknAppUi |
|
51 { |
|
52 public: // Constructors and destructor |
|
53 |
|
54 void ConstructL(); |
|
55 |
|
56 virtual ~CFotaSrvUi(); |
|
57 |
|
58 private: // from base classes |
|
59 |
|
60 |
|
61 /** |
|
62 * @param aResourceId |
|
63 * @param aMenuPane |
|
64 * @return none |
|
65 */ |
|
66 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
67 |
|
68 |
|
69 /** |
|
70 * From CEikAppUi, takes care of command handling. |
|
71 * @param aCommand id of the command to be handled |
|
72 * @return None |
|
73 */ |
|
74 void HandleCommandL(TInt aCommand); |
|
75 |
|
76 |
|
77 /** |
|
78 * From CEikAppUi, handles key events. |
|
79 * @param aKeyEvent Event to handled. |
|
80 * @param aType Type of the key event. |
|
81 * @return Reponse code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
82 */ |
|
83 virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent |
|
84 , TEventCode aType ); |
|
85 |
|
86 /** |
|
87 * From CAknAppUi, handles file change. |
|
88 * @param aFileName New file to be opened. |
|
89 * @return None |
|
90 */ |
|
91 void OpenFileL( const TDesC& aFileName ); |
|
92 |
|
93 |
|
94 /** |
|
95 * From CAknAppUi, Preparing to close server |
|
96 * @param None |
|
97 * @return None |
|
98 */ |
|
99 void PrepareToExit(); |
|
100 |
|
101 private: //Data |
|
102 |
|
103 /** |
|
104 * Should Fota operation close on an system event (ex. MMC card removal)? |
|
105 */ |
|
106 TBool iNeedToClose; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif |
|
111 |
|
112 // End of File |
|