42 |
42 |
43 class NmApplication : public QObject |
43 class NmApplication : public QObject |
44 { |
44 { |
45 Q_OBJECT |
45 Q_OBJECT |
46 public: |
46 public: |
47 NmApplication(QObject *parent); |
47 NmApplication(QObject *parent, quint32 accountId=0); |
48 ~NmApplication(); |
48 ~NmApplication(); |
49 void enterNmUiView(NmUiStartParam *startParam); |
49 void enterNmUiView(NmUiStartParam *startParam); |
50 HbMainWindow* mainWindow(); |
50 HbMainWindow* mainWindow(); |
51 NmUiExtensionManager &extManager(); |
51 NmUiExtensionManager &extManager(); |
52 NmViewerViewNetManager &networkAccessManager(); |
52 NmViewerViewNetManager &networkAccessManager(); |
59 void popView(); |
59 void popView(); |
60 void exitApplication(); |
60 void exitApplication(); |
61 void delayedExitApplication(); |
61 void delayedExitApplication(); |
62 void handleOperationCompleted(const NmOperationCompletionEvent &event); |
62 void handleOperationCompleted(const NmOperationCompletionEvent &event); |
63 void viewReady(); |
63 void viewReady(); |
64 void launchSettings(HbAction* action); |
64 void launchSettings(HbAction *action); |
65 |
65 |
66 private: |
66 private: |
67 void createMainWindow(); |
67 void createMainWindow(); |
68 void pushView(NmBaseView *view); |
68 void pushView(NmBaseView *view); |
69 void resetViewStack(); |
69 void resetViewStack(); |
70 |
70 |
71 private: |
71 private: |
72 HbMainWindow *mMainWindow; // Not owned |
72 HbMainWindow *mMainWindow; // Owned |
73 QStack<NmBaseView*> *mViewStack; // Owned |
73 QStack<NmBaseView*> *mViewStack; // Owned |
74 NmUiViewId mActiveViewId; |
74 NmUiViewId mActiveViewId; |
75 NmUiEngine *mUiEngine; // Owned |
75 NmUiEngine *mUiEngine; // Not owned, singleton instance |
76 HbAction *mBackAction; // Owned |
76 HbAction *mBackAction; // Owned |
77 NmUiExtensionManager *mExtensionManager;// Owned |
77 NmUiExtensionManager *mExtensionManager;// Owned |
78 NmSendServiceInterface *mSendServiceInterface; // Owned |
78 NmSendServiceInterface *mSendServiceInterface; // Owned |
79 NmSendServiceInterface *mSendServiceInterface2; // Owned |
79 NmSendServiceInterface *mSendServiceInterface2; // Owned |
80 NmUriServiceInterface *mUriServiceInterface; // Owned |
80 NmUriServiceInterface *mUriServiceInterface; // Owned |
88 NmAttachmentManager *mAttaManager; // Owned |
88 NmAttachmentManager *mAttaManager; // Owned |
89 NmSettingsViewLauncher* mSettingsViewLauncher; // Owned |
89 NmSettingsViewLauncher* mSettingsViewLauncher; // Owned |
90 bool mViewReady; |
90 bool mViewReady; |
91 NmId mLastOperationMailbox; |
91 NmId mLastOperationMailbox; |
92 HbMessageBox *mQueryDialog; // Owned |
92 HbMessageBox *mQueryDialog; // Owned |
|
93 bool mBackButtonPressed; |
93 }; |
94 }; |
94 |
95 |
95 #endif // NMAPPLICATION_H |
96 #endif // NMAPPLICATION_H |