|
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: Datasync app UI |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef NSMLDSSYNC_APPUI_H |
|
21 #define NSMLDSSYNC_APPUI_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <eikapp.h> |
|
25 #include <eikdoc.h> |
|
26 #include <e32std.h> |
|
27 #include <coeccntx.h> |
|
28 #include <aknappui.h> |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CNSmlDSSyncContainer; |
|
33 |
|
34 |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Class CNSmlDSSyncAppUi. |
|
40 */ |
|
41 class CNSmlDSSyncAppUi : public CAknAppUi |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * By default Symbian OS constructor is private. |
|
47 */ |
|
48 void ConstructL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CNSmlDSSyncAppUi(); |
|
54 //#ifdef RD_DSUI_CP_INTEGRATION |
|
55 static TInt OpenDialog( TAny* aThis) ; |
|
56 //#endif |
|
57 private: |
|
58 |
|
59 /** |
|
60 * From the base class. |
|
61 * Called by framework before menu is shown. |
|
62 * @param aResourceId Menu resource id. |
|
63 * @param aMenuPane Pointer to the menu. |
|
64 * @return None. |
|
65 */ |
|
66 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
67 |
|
68 private: |
|
69 /** |
|
70 * From CEikAppUi, takes care of command handling. |
|
71 * @param aCommand command to be handled |
|
72 * @return None. |
|
73 */ |
|
74 void HandleCommandL(TInt aCommand); |
|
75 |
|
76 /** |
|
77 * From CEikAppUi, handles key events. |
|
78 * @param aKeyEvent Event to handled. |
|
79 * @param aType Type of the key event. |
|
80 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
81 */ |
|
82 virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
83 |
|
84 private: |
|
85 // container |
|
86 //#ifdef RD_DSUI_CP_INTEGRATION |
|
87 CIdle *iIdle; |
|
88 //#endif |
|
89 CNSmlDSSyncContainer* iAppContainer; |
|
90 }; |
|
91 |
|
92 |
|
93 #endif // NSMLDSSYNC_APPUI_H |
|
94 |
|
95 |
|
96 // End of File |