notes/notesui/notesviews/inc/notestodoview.h
branchRCL_3
changeset 29 12af337248b1
equal deleted inserted replaced
28:96907930389d 29:12af337248b1
       
     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: Header file for NotesTodoView class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NOTESTODOVIEW_H
       
    19 #define NOTESTODOVIEW_H
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 #include <HbView>
       
    24 
       
    25 // User includes
       
    26 #include "notesviewsdefines.h"
       
    27 #include "notesappcontrollerif.h"
       
    28 
       
    29 // Forward declarations
       
    30 class QGraphicsWidget;
       
    31 class HbListView;
       
    32 class HbAction;
       
    33 class HbAbstractViewItem;
       
    34 class HbGroupBox;
       
    35 class HbLabel;
       
    36 class NotesModel;
       
    37 class NotesDocLoader;
       
    38 class AgendaUtil;
       
    39 class NotesSortFilterProxyModel;
       
    40 class NotesEditor;
       
    41 class AgendaEventViewer;
       
    42 
       
    43 class NotesTodoView : public HbView
       
    44 {
       
    45 	Q_OBJECT
       
    46 
       
    47 public:
       
    48 	NOTESVIEWS_EXPORT NotesTodoView(QGraphicsWidget *parent = 0);
       
    49 	NOTESVIEWS_EXPORT virtual ~NotesTodoView();
       
    50 
       
    51 public:
       
    52 	NOTESVIEWS_EXPORT void setupView(
       
    53 			NotesAppControllerIf &controllerIf, NotesDocLoader *docLoader);
       
    54 	NOTESVIEWS_EXPORT void updateTitle();
       
    55 
       
    56 signals:
       
    57 	void deleteEntry(ulong entryId);
       
    58 
       
    59 private slots:
       
    60 	void createNewTodo();
       
    61 	void handleItemReleased(const QModelIndex &index);
       
    62 	void handleItemLongPressed(
       
    63 			HbAbstractViewItem *item, const QPointF &coords);
       
    64 	void deleteTodo();
       
    65 	void markTodoStatus();
       
    66 	void editTodo();
       
    67 	void handleEditingCompleted(bool status);
       
    68 	void displayCollectionView();
       
    69 	void displayAllNotesView();
       
    70 	void handleEditingCompleted();
       
    71 	void handleViewingCompleted();
       
    72 	void handleActionStateChanged();
       
    73 	void handleOrientationChanged(Qt::Orientation);
       
    74 	void updateSubTitle(ulong id=0);
       
    75 	void openTodo();
       
    76 	void selectedMenuAction(HbAction *action);
       
    77 	void handleMenuClosed();
       
    78 
       
    79 private:
       
    80 	HbListView *mListView;
       
    81 	HbAbstractViewItem *mSelectedItem;
       
    82 
       
    83 	HbAction *mAllNotesAction;
       
    84 	HbAction *mViewCollectionAction;
       
    85 	HbAction *mAddTodoAction;
       
    86 	HbAction *mEditAction;
       
    87 	HbAction *mDeleteAction;
       
    88 	HbAction *mTodoStatusAction;
       
    89 	HbAction *mOpenAction;
       
    90 
       
    91 	HbGroupBox *mSubTitle;
       
    92 	HbLabel *mEmptyListLabel;
       
    93 	
       
    94 	AgendaUtil *mAgendaUtil;
       
    95 
       
    96 	NotesAppControllerIf *mAppControllerIf;
       
    97 	NotesDocLoader *mDocLoader;
       
    98 	NotesModel *mNotesModel;
       
    99 	NotesSortFilterProxyModel *mProxyModel;
       
   100 	NotesEditor *mNotesEditor;
       
   101 	AgendaEventViewer *mAgendaEventViewer;
       
   102 	bool mIsLongTop;
       
   103 };
       
   104 
       
   105 #endif // NOTESTODOVIEW_H
       
   106 
       
   107 // End of file	--Don't remove this.