|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SCREENGRABBERAPPUI_H |
|
21 #define SCREENGRABBERAPPUI_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <eikapp.h> |
|
25 #include <eikdoc.h> |
|
26 #include <e32std.h> |
|
27 #include <coeccntx.h> |
|
28 #include <aknViewAppUi.h> |
|
29 #include <akntabgrp.h> |
|
30 #include <aknnavide.h> |
|
31 #include "SGStd.h" |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CScreenGrabberMainContainer; |
|
35 class CScreenGrabberModel; |
|
36 |
|
37 // CONSTANTS |
|
38 //const ?type ?constant_var = ?constant; |
|
39 |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 |
|
44 class CScreenGrabberAppUi : public CAknViewAppUi |
|
45 { |
|
46 public: // // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * EPOC default constructor. |
|
50 */ |
|
51 void ConstructL(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CScreenGrabberAppUi(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 public: // Functions from base classes |
|
61 void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination); |
|
62 |
|
63 private: |
|
64 // From MEikMenuObserver |
|
65 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
66 |
|
67 private: |
|
68 /** |
|
69 * From CEikAppUi, takes care of command handling. |
|
70 * @param aCommand command to be handled |
|
71 */ |
|
72 void HandleCommandL(TInt aCommand); |
|
73 |
|
74 /** |
|
75 * From CEikAppUi, handles key events. |
|
76 * @param aKeyEvent Event to handled. |
|
77 * @param aType Type of the key event. |
|
78 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
79 */ |
|
80 virtual TKeyResponse HandleKeyEventL( |
|
81 const TKeyEvent& aKeyEvent,TEventCode aType); |
|
82 |
|
83 private: //Data |
|
84 CScreenGrabberModel* iModel; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif |
|
89 |
|
90 // End of File |