equal
deleted
inserted
replaced
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <QList> |
22 #include <QList> |
23 #include <QVariant> |
23 #include <QVariant> |
24 #include <xqaiwdecl.h> |
24 #include <xqaiwdecl.h> |
|
25 #include <afactivities_global.h> |
25 #include "logsabstractviewmanager.h" |
26 #include "logsabstractviewmanager.h" |
26 |
27 |
27 class HbMainWindow; |
28 class HbMainWindow; |
28 class LogsComponentRepository; |
29 class LogsComponentRepository; |
29 class LogsServiceHandler; |
30 class LogsServiceHandler; |
31 class LogsMainWindow; |
32 class LogsMainWindow; |
32 class HbView; |
33 class HbView; |
33 class LogsBaseView; |
34 class LogsBaseView; |
34 class LogsAppSettings; |
35 class LogsAppSettings; |
35 class LogsForegroundWatcher; |
36 class LogsForegroundWatcher; |
|
37 class AfActivation; |
|
38 class AfActivityStorage; |
36 |
39 |
37 /** |
40 /** |
38 * |
41 * |
39 */ |
42 */ |
40 class LogsViewManager : public QObject, public LogsAbstractViewManager |
43 class LogsViewManager : public QObject, public LogsAbstractViewManager |
50 * Constructor |
53 * Constructor |
51 * @param mainWindow |
54 * @param mainWindow |
52 * @param service |
55 * @param service |
53 */ |
56 */ |
54 LogsViewManager( LogsMainWindow& mainWindow, LogsServiceHandler& service, |
57 LogsViewManager( LogsMainWindow& mainWindow, LogsServiceHandler& service, |
55 LogsServiceHandlerOld& serviceOld, LogsAppSettings& settings ); |
58 LogsAppSettings& settings ); |
56 ~LogsViewManager(); |
59 ~LogsViewManager(); |
57 |
60 |
58 public slots: |
61 public slots: |
59 |
62 |
60 void changeRecentViewViaService( |
63 void changeRecentViewViaService( |
63 void changeRecentView(XQService::LogsViewIndex view, bool showDialpad); |
66 void changeRecentView(XQService::LogsViewIndex view, bool showDialpad); |
64 |
67 |
65 public: // From LogsAbstractViewManager |
68 public: // From LogsAbstractViewManager |
66 |
69 |
67 virtual bool activateView(LogsAppViewId viewId); |
70 virtual bool activateView(LogsAppViewId viewId); |
68 virtual bool activateView(LogsAppViewId viewId, bool showDialpad, QVariant args); |
71 virtual bool activateView(LogsAppViewId viewId, bool showDialpad, QVariant args, const QString& dialpadText = QString()); |
69 virtual bool activatePreviousView(); |
72 virtual bool activatePreviousView(bool showDialpad, const QString& dialpadText); |
70 virtual HbMainWindow& mainWindow(); |
73 virtual HbMainWindow& mainWindow(); |
71 virtual void exitApplication(); |
74 virtual void exitApplication(); |
72 |
75 |
73 |
76 |
74 private slots: |
77 private slots: |
78 void completeViewActivation(); |
81 void completeViewActivation(); |
79 void saveActivity(); |
82 void saveActivity(); |
80 void closeEmbeddedApplication(); |
83 void closeEmbeddedApplication(); |
81 void appGainedForeground(); |
84 void appGainedForeground(); |
82 void appLostForeground(); |
85 void appLostForeground(); |
83 void activityRequested(const QString &activityId); |
86 void activityRequested(Af::ActivationReason reason, QString name, QVariantHash parameters); |
84 void bgStartupForegroundGained(); |
87 void bgStartupForegroundGained(); |
85 |
88 |
86 private: |
89 private: |
87 |
90 |
88 bool doActivateView(LogsAppViewId viewId, bool showDialpad, |
91 bool doActivateView(LogsAppViewId viewId, bool showDialpad, |
106 |
109 |
107 private: //data |
110 private: //data |
108 |
111 |
109 LogsMainWindow& mMainWindow; |
112 LogsMainWindow& mMainWindow; |
110 LogsServiceHandler& mService; |
113 LogsServiceHandler& mService; |
111 LogsServiceHandlerOld& mServiceOld; |
|
112 LogsAppSettings& mSettings; |
114 LogsAppSettings& mSettings; |
113 LogsComponentRepository* mComponentsRepository; |
115 LogsComponentRepository* mComponentsRepository; |
114 QList<LogsBaseView*> mViewStack; |
116 QList<LogsBaseView*> mViewStack; |
115 bool mFirstActivation; |
117 bool mFirstActivation; |
116 QVariant mViewActivationArgs; |
118 QVariant mViewActivationArgs; |
117 bool mViewActivationShowDialpad; |
119 bool mViewActivationShowDialpad; |
118 LogsForegroundWatcher* mBackgroundStartupWatcher; |
120 LogsForegroundWatcher* mBackgroundStartupWatcher; |
119 |
121 QString mDialpadText; |
|
122 AfActivityStorage* mActivityManager; |
|
123 AfActivation* mActivation; |
120 }; |
124 }; |
121 |
125 |
122 #endif //LOGVIEWMANAGER_H |
126 #endif //LOGVIEWMANAGER_H |