equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 #ifndef MAINVIEW_H |
|
19 #define MAINVIEW_H |
|
20 |
|
21 #include <hbview.h> |
|
22 |
|
23 #include "valuedatacontainer.h" |
|
24 #include "graphdatacontainer.h" |
|
25 |
|
26 class HbAction; |
|
27 class EngineWrapper; |
|
28 |
|
29 class MainView : public HbView |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 MainView(EngineWrapper &engine); |
|
35 ~MainView(); |
|
36 |
|
37 private: |
|
38 void createMenu(); |
|
39 |
|
40 public slots: |
|
41 void showValues(); |
|
42 void showGraphs(); |
|
43 void toggleLogging(); |
|
44 void showAbout(); |
|
45 |
|
46 signals: |
|
47 void settingsCommandInvoked(); |
|
48 |
|
49 private: |
|
50 void updateLoggingAction(); |
|
51 |
|
52 private: |
|
53 EngineWrapper &mEngine; |
|
54 |
|
55 ValueDataContainer *mValueDataContainer; |
|
56 GraphDataContainer *mGraphDataContainer; |
|
57 |
|
58 HbAction *mValuesAction; |
|
59 HbAction *mGraphAction; |
|
60 HbAction *mSwitchViewAction; |
|
61 HbAction *mLoggingAction; |
|
62 }; |
|
63 |
|
64 #endif // MAINVIEW_H |