|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Header file for NotesNoteView class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef NOTESNOTEVIEW_H |
|
20 #define NOTESNOTEVIEW_H |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 #include <HbView> |
|
25 |
|
26 // User includes |
|
27 #include "notesviewsdefines.h" |
|
28 #include "notesappcontrollerif.h" |
|
29 |
|
30 // Forward declarations |
|
31 class QGraphicsWidget; |
|
32 class HbListView; |
|
33 class HbAction; |
|
34 class HbAbstractViewItem; |
|
35 class NotesModel; |
|
36 class NotesDocLoader; |
|
37 class AgendaUtil; |
|
38 class NotesSortFilterProxyModel; |
|
39 class NotesEditor; |
|
40 |
|
41 class NotesNoteView : public HbView |
|
42 { |
|
43 Q_OBJECT |
|
44 |
|
45 public: |
|
46 NOTESVIEWS_EXPORT NotesNoteView(QGraphicsWidget *parent = 0); |
|
47 NOTESVIEWS_EXPORT virtual ~NotesNoteView(); |
|
48 |
|
49 public: |
|
50 NOTESVIEWS_EXPORT void setupView( |
|
51 NotesAppControllerIf &controllerIf, NotesDocLoader *docLoader); |
|
52 |
|
53 private slots: |
|
54 void createNewNote(); |
|
55 void handleItemReleased(const QModelIndex &index); |
|
56 void handleItemLongPressed( |
|
57 HbAbstractViewItem *item, const QPointF &coords); |
|
58 void deleteNote(); |
|
59 void markNoteAsFavourite(); |
|
60 void markNoteAsTodo(); |
|
61 void handleEditingCompleted(bool status); |
|
62 void displayCollectionView(); |
|
63 void displayAllNotesView(); |
|
64 void handleActionStateChanged(); |
|
65 void handleOrientationChanged(Qt::Orientation); |
|
66 |
|
67 private: |
|
68 HbListView *mListView; |
|
69 HbAbstractViewItem *mSelectedItem; |
|
70 |
|
71 HbAction *mAllNotesAction; |
|
72 HbAction *mViewCollectionAction; |
|
73 HbAction *mAddNoteAction; |
|
74 |
|
75 HbAction *mEditAction; |
|
76 HbAction *mDeleteAction; |
|
77 HbAction *mMakeFavouriteAction; |
|
78 HbAction *mMarkTodoAction; |
|
79 |
|
80 AgendaUtil *mAgendaUtil; |
|
81 |
|
82 NotesAppControllerIf *mAppControllerIf; |
|
83 NotesDocLoader *mDocLoader; |
|
84 NotesModel *mNotesModel; |
|
85 NotesSortFilterProxyModel *mProxyModel; |
|
86 NotesEditor *mNotesEditor; |
|
87 }; |
|
88 |
|
89 #endif // NOTESNOTEVIEW_H |
|
90 |
|
91 // End of file --Don't remove this. |