notes/notesui/inc/notescommon.h
changeset 18 c198609911f9
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     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 Notes application's common includes.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef NOTESCOMMON_H
       
    20 #define NOTESCOMMON_H
       
    21 
       
    22 // Common definitions.
       
    23 #define NOTES_MAIN_VIEW_XML			":/xml/notesmainview.docml"
       
    24 #define NOTES_MAIN_VIEW				"notesMainView"
       
    25 #define NOTES_COLLECTION_VIEW_XML	":/xml/notescollectionsview.docml"
       
    26 #define NOTES_COLLECTION_VIEW		"notesCollectionView"
       
    27 #define NOTES_TODO_VIEW_XML			":/xml/notestodoview.docml"
       
    28 #define NOTES_TODO_VIEW				"notesTodoView"
       
    29 #define NOTES_FAVORITES_VIEW_XML	":/xml/notesfavoriteview.docml"
       
    30 #define NOTES_FAVORITES_VIEW		"notesFavoriteView"
       
    31 #define NOTES_NOTE_VIEW_XML			":/xml/notesnoteview.docml"
       
    32 #define NOTES_NOTE_VIEW				"notesNoteView"
       
    33 
       
    34 /*!
       
    35 	\class NotesNamespace
       
    36 
       
    37 	This will have all the common enums and declarations needed by the notes
       
    38 	application.
       
    39  */
       
    40 class NotesNamespace {
       
    41 
       
    42 public:
       
    43 	/*!
       
    44 		\enum DataRole
       
    45 	 */
       
    46 	enum DataRole {
       
    47 		IdRole = Qt::UserRole + 100,
       
    48 		TypeRole,
       
    49 		StatusRole,
       
    50 		FavouriteRole
       
    51 	};
       
    52 
       
    53 	/*!
       
    54 		\enum NotesViewIds
       
    55 	 */
       
    56 	enum NotesViewIds {
       
    57 		NotesMainViewId,
       
    58 		NotesCollectionViewId,
       
    59 		NotesTodoViewId,
       
    60 		NotesFavoritesViewId,
       
    61 		NotesNoteViewId
       
    62 	};
       
    63 };
       
    64 
       
    65 #endif // NOTESCOMMON_H
       
    66 
       
    67 // End of file	--Don't remove this.