notes/notesui/notesviews/inc/notesnoteview.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    30 // Forward declarations
    30 // Forward declarations
    31 class QGraphicsWidget;
    31 class QGraphicsWidget;
    32 class HbListView;
    32 class HbListView;
    33 class HbAction;
    33 class HbAction;
    34 class HbAbstractViewItem;
    34 class HbAbstractViewItem;
       
    35 class HbLabel;
    35 class NotesModel;
    36 class NotesModel;
    36 class NotesDocLoader;
    37 class NotesDocLoader;
    37 class AgendaUtil;
    38 class AgendaUtil;
    38 class NotesSortFilterProxyModel;
    39 class NotesSortFilterProxyModel;
    39 class NotesEditor;
    40 class NotesEditor;
    47 	NOTESVIEWS_EXPORT virtual ~NotesNoteView();
    48 	NOTESVIEWS_EXPORT virtual ~NotesNoteView();
    48 
    49 
    49 public:
    50 public:
    50 	NOTESVIEWS_EXPORT void setupView(
    51 	NOTESVIEWS_EXPORT void setupView(
    51 			NotesAppControllerIf &controllerIf, NotesDocLoader *docLoader);
    52 			NotesAppControllerIf &controllerIf, NotesDocLoader *docLoader);
    52 	
    53 	NOTESVIEWS_EXPORT void updateNoteView();
       
    54 
       
    55 
    53 signals:
    56 signals:
    54 	void deleteEntry(ulong entryId);
    57 	void deleteEntry(ulong entryId);
    55 
    58 
    56 private slots:
    59 private slots:
    57 	void createNewNote();
    60 	void createNewNote();
    65 	void displayCollectionView();
    68 	void displayCollectionView();
    66 	void displayAllNotesView();
    69 	void displayAllNotesView();
    67 	void handleActionStateChanged();
    70 	void handleActionStateChanged();
    68 	void handleOrientationChanged(Qt::Orientation);
    71 	void handleOrientationChanged(Qt::Orientation);
    69 	void openNote();
    72 	void openNote();
       
    73 	void selectedMenuAction(HbAction *action);
       
    74 	void handleMenuClosed();
       
    75 	void updateView(ulong id=0);
    70 
    76 
    71 private:
    77 private:
    72 	HbListView *mListView;
    78 	HbListView *mListView;
    73 	HbAbstractViewItem *mSelectedItem;
    79 	HbAbstractViewItem *mSelectedItem;
    74 
    80 
    79 	HbAction *mDeleteAction;
    85 	HbAction *mDeleteAction;
    80 	HbAction *mMakeFavouriteAction;
    86 	HbAction *mMakeFavouriteAction;
    81 	HbAction *mMarkTodoAction;
    87 	HbAction *mMarkTodoAction;
    82 	HbAction *mOpenAction;
    88 	HbAction *mOpenAction;
    83 
    89 
       
    90 	HbLabel *mEmptyListLabel;
       
    91 	
    84 	AgendaUtil *mAgendaUtil;
    92 	AgendaUtil *mAgendaUtil;
    85 
    93 
    86 	NotesAppControllerIf *mAppControllerIf;
    94 	NotesAppControllerIf *mAppControllerIf;
    87 	NotesDocLoader *mDocLoader;
    95 	NotesDocLoader *mDocLoader;
    88 	NotesModel *mNotesModel;
    96 	NotesModel *mNotesModel;
    89 	NotesSortFilterProxyModel *mProxyModel;
    97 	NotesSortFilterProxyModel *mProxyModel;
    90 	NotesEditor *mNotesEditor;
    98 	NotesEditor *mNotesEditor;
       
    99 	bool mIsLongTop;
    91 };
   100 };
    92 
   101 
    93 #endif // NOTESNOTEVIEW_H
   102 #endif // NOTESNOTEVIEW_H
    94 
   103 
    95 // End of file	--Don't remove this.
   104 // End of file	--Don't remove this.