notes/notesui/notesviewmanager/inc/notesviewmanager.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 class NotesViewManager.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NOTESVIEWMANAGER_H
       
    19 #define NOTESVIEWMANAGER_H
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 
       
    24 // User includes
       
    25 #include "notesviewmanagerdefines.h"
       
    26 #include "notesappcontrollerif.h"
       
    27 
       
    28 // Forward declarations
       
    29 class HbMainWindow;
       
    30 class HbAction;
       
    31 class NotesMainView;
       
    32 class NotesModel;
       
    33 class AgendaUtil;
       
    34 class NotesCollectionView;
       
    35 class NotesTodoView;
       
    36 class NotesFavoriteView;
       
    37 class NotesNoteView;
       
    38 
       
    39 class NotesViewManager : public QObject
       
    40 {
       
    41 	Q_OBJECT
       
    42 
       
    43 public:
       
    44 	NOTESVIEWMANAGER_EXPORT NotesViewManager(
       
    45 			NotesAppControllerIf &controller, QObject *parent = 0);
       
    46 	NOTESVIEWMANAGER_EXPORT virtual ~NotesViewManager();
       
    47 
       
    48 public:
       
    49 	NOTESVIEWMANAGER_EXPORT void switchToView(
       
    50 			NotesNamespace::NotesViewIds viewId);
       
    51 
       
    52 signals:
       
    53 	void appReady();
       
    54 	
       
    55 private:
       
    56 	void loadNotesMainView();
       
    57 	void loadNotesCollectionView();
       
    58 	void loadTodoView();
       
    59 	void loadFavoritesView();
       
    60 	void loadNoteView();
       
    61 
       
    62 private slots:
       
    63 	void loadOtherViews();
       
    64 	void deleteEntryFromView(ulong entryId);
       
    65 	void selectedAction(HbAction *action);
       
    66 	void handleInstanceViewCreationCompleted(int status);
       
    67 
       
    68 private:
       
    69 	NotesAppControllerIf &mAppControllerIf;
       
    70 	AgendaUtil *mAgendaUtil;
       
    71 
       
    72 	NotesMainView *mMainView;
       
    73 	NotesCollectionView *mCollectionView;
       
    74 	NotesTodoView *mTodoView;
       
    75 	NotesFavoriteView *mFavoriteView;
       
    76 	NotesNoteView *mNoteView;
       
    77 
       
    78 	HbAction *mDeleteAction;
       
    79 	HbAction *mCancelAction;
       
    80 	ulong mEntryId;
       
    81 
       
    82 private:
       
    83 	Q_DISABLE_COPY(NotesViewManager)
       
    84 };
       
    85 
       
    86 #endif // NOTESVIEWMANAGER_H
       
    87 
       
    88 // End of file	--Don't remove this.