equal
deleted
inserted
replaced
17 |
17 |
18 #ifndef CNTMAINWINDOW_H |
18 #ifndef CNTMAINWINDOW_H |
19 #define CNTMAINWINDOW_H |
19 #define CNTMAINWINDOW_H |
20 |
20 |
21 #include <hbmainwindow.h> |
21 #include <hbmainwindow.h> |
22 #include <QKeyEvent> |
|
23 |
22 |
24 #include "cntglobal.h" |
23 #include "cntglobal.h" |
25 #include <cntviewparams.h> |
24 #include <cntviewparams.h> |
26 |
25 |
27 class CntDefaultViewManager; |
26 class CntDefaultViewManager; |
28 |
27 |
29 class QTPBK_EXPORT CntMainWindow : public HbMainWindow |
28 class QTPBK_EXPORT CntMainWindow : public HbMainWindow |
30 { |
29 { |
31 Q_OBJECT |
30 Q_OBJECT |
|
31 friend class TestCntMainWindow; |
32 |
32 |
33 public: |
33 public: |
34 CntMainWindow(QWidget *parent=0, int defaultView = namesView); |
34 CntMainWindow(QWidget *parent=0, int defaultView = namesView); |
35 virtual ~CntMainWindow(); |
35 virtual ~CntMainWindow(); |
36 |
36 |
37 void keyPressEvent(QKeyEvent *event); |
37 private: |
38 |
|
39 signals: |
|
40 |
|
41 void keyPressed(QKeyEvent *event); |
|
42 |
|
43 public slots: |
|
44 |
|
45 private slots: |
|
46 |
|
47 #ifdef PBK_UNIT_TEST |
|
48 public: |
|
49 #else |
|
50 protected: |
|
51 #endif |
|
52 CntDefaultViewManager *mViewManager; |
38 CntDefaultViewManager *mViewManager; |
|
39 int mDefaultView; |
53 |
40 |
54 }; |
41 }; |
55 |
42 |
56 #endif // CNTMAINWINDOW_H |
43 #endif // CNTMAINWINDOW_H |