equal
deleted
inserted
replaced
33 class NmMailboxListModel; |
33 class NmMailboxListModel; |
34 class HbAbstractViewItem; |
34 class HbAbstractViewItem; |
35 class NmActionResponse; |
35 class NmActionResponse; |
36 class NmMessageListModelItem; |
36 class NmMessageListModelItem; |
37 class HbIconItem; |
37 class HbIconItem; |
|
38 class HbGroupBox; |
38 |
39 |
39 class NmMessageListView : public NmBaseView, public NmActionObserver |
40 class NmMessageListView : public NmBaseView, public NmActionObserver |
40 { |
41 { |
41 Q_OBJECT |
42 Q_OBJECT |
42 public: |
43 public: |
49 HbDocumentLoader *documentLoader, |
50 HbDocumentLoader *documentLoader, |
50 QGraphicsItem *parent = 0); |
51 QGraphicsItem *parent = 0); |
51 ~NmMessageListView(); |
52 ~NmMessageListView(); |
52 NmUiViewId nmailViewId() const; |
53 NmUiViewId nmailViewId() const; |
53 void viewReady(); |
54 void viewReady(); |
|
55 NmFolderType folderType(); |
|
56 void okToExitView(); |
54 |
57 |
55 public: // From NmActionObserver |
58 public: // From NmActionObserver |
56 void handleActionCommand(NmActionResponse &menuResponse); |
59 void handleActionCommand(NmActionResponse &menuResponse); |
57 |
60 |
58 public slots: |
61 public slots: |
59 void reloadViewContents(NmUiStartParam *startParam); |
62 void reloadViewContents(NmUiStartParam *startParam); |
60 void refreshList(); |
63 void refreshList(); |
61 void contextButton(NmActionResponse &result); |
|
62 |
64 |
63 private slots: |
65 private slots: |
64 void showItemContextMenu(HbAbstractViewItem *index, const QPointF &coords); |
66 void showItemContextMenu(HbAbstractViewItem *index, const QPointF &coords); |
65 void itemActivated(const QModelIndex &index); |
67 void itemActivated(const QModelIndex &index); |
66 void handleSelection(); |
68 void handleSelection(); |
88 NmMessageListModel &mMessageListModel; |
90 NmMessageListModel &mMessageListModel; |
89 HbDocumentLoader *mDocumentLoader; // Owned |
91 HbDocumentLoader *mDocumentLoader; // Owned |
90 HbMenu *mItemContextMenu; // Owned |
92 HbMenu *mItemContextMenu; // Owned |
91 NmMessageListModelItem *mLongPressedItem; // Not owned |
93 NmMessageListModelItem *mLongPressedItem; // Not owned |
92 HbLabel *mNoMessagesLabel; // Not owned |
94 HbLabel *mNoMessagesLabel; // Not owned |
93 HbLabel *mFolderLabel; // Not owned |
95 HbGroupBox *mFolderLabel; // Not owned |
94 HbLabel *mSyncIcon; // Not owned |
96 HbLabel *mSyncIcon; // Not owned |
95 QModelIndex mActivatedIndex; |
97 QModelIndex mActivatedIndex; |
96 bool mViewReady; |
98 bool mViewReady; |
97 NmFolderType mCurrentFolderType; |
99 NmFolderType mCurrentFolderType; |
|
100 bool mSettingsLaunched; |
98 }; |
101 }; |
99 |
102 |
100 #endif /* NMMESSAGELISTVIEW_H_ */ |
103 #endif /* NMMESSAGELISTVIEW_H_ */ |