changeset 6 | 41c0a814d878 |
parent 0 | 4a5361db8937 |
child 8 | 6c9acdc6adc0 |
child 10 | b04270301d3b |
4:e52d42f9500c | 6:41c0a814d878 |
---|---|
25 #include "logsabstractviewmanager.h" |
25 #include "logsabstractviewmanager.h" |
26 |
26 |
27 class HbMainWindow; |
27 class HbMainWindow; |
28 class LogsComponentRepository; |
28 class LogsComponentRepository; |
29 class LogsServiceHandler; |
29 class LogsServiceHandler; |
30 class LogsServiceHandlerOld; |
|
30 class LogsMainWindow; |
31 class LogsMainWindow; |
31 class HbView; |
32 class HbView; |
32 class LogsBaseView; |
33 class LogsBaseView; |
33 |
34 |
34 /** |
35 /** |
46 /** |
47 /** |
47 * Constructor |
48 * Constructor |
48 * @param mainWindow |
49 * @param mainWindow |
49 * @param service |
50 * @param service |
50 */ |
51 */ |
51 LogsViewManager( LogsMainWindow& mainWindow, LogsServiceHandler& service ); |
52 LogsViewManager( LogsMainWindow& mainWindow, LogsServiceHandler& service, |
53 LogsServiceHandlerOld& serviceOld ); |
|
52 ~LogsViewManager(); |
54 ~LogsViewManager(); |
53 |
55 |
54 public slots: |
56 public slots: |
55 |
57 |
56 void changeRecentView(LogsServices::LogsView view, bool showDialpad); |
58 void changeRecentView(LogsServices::LogsView view, bool showDialpad); |
69 private slots: |
71 private slots: |
70 |
72 |
71 void proceedExit(); |
73 void proceedExit(); |
72 void handleOrientationChanged(); |
74 void handleOrientationChanged(); |
73 void completeViewActivation(); |
75 void completeViewActivation(); |
76 void saveActivity(); |
|
74 |
77 |
75 private: |
78 private: |
76 |
79 |
77 void initViews(); |
80 void initViews(); |
78 bool doActivateView(LogsAppViewId viewId, bool showDialpad, QVariant args); |
81 bool doActivateView(LogsAppViewId viewId, bool showDialpad, |
82 QVariant args, const QString& dialpadText = QString()); |
|
83 bool loadActivity(); |
|
84 LogsAppViewId checkMatchesViewTransition( |
|
85 LogsAppViewId viewId, const QString& dialpadText); |
|
86 void handleFirstActivation(); |
|
79 |
87 |
80 private: //data |
88 private: //data |
81 |
89 |
82 LogsMainWindow& mMainWindow; |
90 LogsMainWindow& mMainWindow; |
83 LogsServiceHandler& mService; |
91 LogsServiceHandler& mService; |
92 LogsServiceHandlerOld& mServiceOld; |
|
84 LogsComponentRepository* mComponentsRepository; |
93 LogsComponentRepository* mComponentsRepository; |
85 QList<LogsBaseView*> mViewStack; |
94 QList<LogsBaseView*> mViewStack; |
86 bool mFirstActivation; |
95 bool mFirstActivation; |
87 QVariant mViewActivationArgs; |
96 QVariant mViewActivationArgs; |
88 bool mViewActivationShowDialpad; |
97 bool mViewActivationShowDialpad; |