emailuis/nmailui/inc/nmapplication.h
changeset 43 99bcbff212ad
parent 40 2c62ef3caffd
child 47 f83bd4ae1fe3
equal deleted inserted replaced
42:139d4b7b2938 43:99bcbff212ad
    28 class NmUiEngine;
    28 class NmUiEngine;
    29 class NmMailboxListModel;
    29 class NmMailboxListModel;
    30 class HbAction;
    30 class HbAction;
    31 class NmUiExtensionManager;
    31 class NmUiExtensionManager;
    32 class NmSendServiceInterface;
    32 class NmSendServiceInterface;
       
    33 class NmUriServiceInterface;
    33 class NmMailboxServiceInterface;
    34 class NmMailboxServiceInterface;
    34 class NmViewerServiceInterface;
    35 class NmViewerServiceInterface;
    35 class NmViewerViewNetManager;
    36 class NmViewerViewNetManager;
    36 class NmUtilities;
    37 class NmUtilities;
    37 class NmAttachmentManager;
    38 class NmAttachmentManager;
    38 class NmSettingsViewLauncher;
    39 class NmSettingsViewLauncher;
    39 class NmUiEffects;
    40 class NmUiEffects;
       
    41 class HbMessageBox;
    40 
    42 
    41 class NmApplication : public QObject
    43 class NmApplication : public QObject
    42 {
    44 {
    43     Q_OBJECT
    45     Q_OBJECT
    44 public:
    46 public:
    48     HbMainWindow* mainWindow();
    50     HbMainWindow* mainWindow();
    49     NmUiExtensionManager &extManager();
    51     NmUiExtensionManager &extManager();
    50     NmViewerViewNetManager &networkAccessManager();
    52     NmViewerViewNetManager &networkAccessManager();
    51     QSize screenSize();
    53     QSize screenSize();
    52     bool eventFilter(QObject *obj, QEvent *event);
    54     bool eventFilter(QObject *obj, QEvent *event);
    53 
    55     bool updateVisibilityState();
    54 
    56 
    55 public slots:
    57 public slots:
    56     void prepareForPopView();
    58     void prepareForPopView();
    57     void popView();
    59     void popView();
    58     void exitApplication();
    60     void exitApplication();
    59     void delayedExitApplication();
    61     void delayedExitApplication();
    60     void handleOperationCompleted(const NmOperationCompletionEvent &event);
    62     void handleOperationCompleted(const NmOperationCompletionEvent &event);
    61     void viewReady();
    63     void viewReady();
       
    64     void launchSettings(HbAction* action);
    62     
    65     
    63 private:
    66 private:
    64     void createMainWindow();
    67     void createMainWindow();
    65     void pushView(NmBaseView *view);
    68     void pushView(NmBaseView *view);
    66     void resetViewStack();
    69     void resetViewStack();
    67     void launchSettings(const NmId &mailboxId);
       
    68 
    70 
    69 private:
    71 private:
    70     HbMainWindow *mMainWindow;              // Not owned
    72     HbMainWindow *mMainWindow;              // Not owned
    71     QStack<NmBaseView*> *mViewStack;        // Owned
    73     QStack<NmBaseView*> *mViewStack;        // Owned
    72     NmUiViewId mActiveViewId;
    74     NmUiViewId mActiveViewId;
    73     NmUiEngine *mUiEngine;                  // Owned
    75     NmUiEngine *mUiEngine;                  // Owned
    74     HbAction *mBackAction;                  // Owned
    76     HbAction *mBackAction;                  // Owned
    75     NmUiExtensionManager *mExtensionManager;// Owned
    77     NmUiExtensionManager *mExtensionManager;// Owned
    76     NmSendServiceInterface *mSendServiceInterface;       // Owned
    78     NmSendServiceInterface *mSendServiceInterface;       // Owned
    77     NmSendServiceInterface *mSendServiceInterface2;      // Owned
    79     NmSendServiceInterface *mSendServiceInterface2;      // Owned
       
    80     NmUriServiceInterface *mUriServiceInterface;         // Owned
    78     NmMailboxServiceInterface *mMailboxServiceInterface; // Owned
    81     NmMailboxServiceInterface *mMailboxServiceInterface; // Owned
    79     NmViewerServiceInterface *mViewerServiceInterface;   // Owned
    82     NmViewerServiceInterface *mViewerServiceInterface;   // Owned
    80     NmMailboxListModel *mMbListModel;       // Not owned
    83     NmMailboxListModel *mMbListModel;       // Not owned
    81     NmUiViewId mServiceViewId;
    84     NmUiViewId mServiceViewId;
    82     NmViewerViewNetManager *mNetManager;    // Owned
    85     NmViewerViewNetManager *mNetManager;    // Owned
    83     bool mForegroundService;	
    86     bool mForegroundService;
    84     NmUiEffects *mEffects;                  // Owned
    87     NmUiEffects *mEffects;                  // Owned
    85     NmAttachmentManager *mAttaManager;      // Owned
    88     NmAttachmentManager *mAttaManager;      // Owned
    86     NmSettingsViewLauncher* mSettingsViewLauncher; // Owned
    89     NmSettingsViewLauncher* mSettingsViewLauncher; // Owned
    87     bool mViewReady;
    90     bool mViewReady;
       
    91     NmId mLastOperationMailbox;
       
    92     HbMessageBox *mQueryDialog;             // Owned
    88 };
    93 };
    89 
    94 
    90 #endif // NMAPPLICATION_H
    95 #endif // NMAPPLICATION_H