notes/notesui/inc/notescommon.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:51:09 +0300
changeset 26 a949c2543c15
parent 18 c198609911f9
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Header file for Notes application's common includes.
*
*/

#ifndef NOTESCOMMON_H
#define NOTESCOMMON_H

// Common definitions.
#define NOTES_MAIN_VIEW_XML			":/xml/notesmainview.docml"
#define NOTES_MAIN_VIEW				"notesMainView"
#define NOTES_COLLECTION_VIEW_XML	":/xml/notescollectionsview.docml"
#define NOTES_COLLECTION_VIEW		"notesCollectionView"
#define NOTES_TODO_VIEW_XML			":/xml/notestodoview.docml"
#define NOTES_TODO_VIEW				"notesTodoView"
#define NOTES_FAVORITES_VIEW_XML	":/xml/notesfavoriteview.docml"
#define NOTES_FAVORITES_VIEW		"notesFavoriteView"
#define NOTES_NOTE_VIEW_XML			":/xml/notesnoteview.docml"
#define NOTES_NOTE_VIEW				"notesNoteView"

/*!
	\class NotesNamespace

	This will have all the common enums and declarations needed by the notes
	application.
 */
class NotesNamespace {

public:
	/*!
		\enum DataRole
	 */
	enum DataRole {
		IdRole = Qt::UserRole + 100,
		TypeRole,
		StatusRole,
		FavouriteRole
	};

	/*!
		\enum NotesViewIds
	 */
	enum NotesViewIds {
		NotesMainViewId,
		NotesCollectionViewId,
		NotesTodoViewId,
		NotesFavoritesViewId,
		NotesNoteViewId
	};
};

#endif // NOTESCOMMON_H

// End of file	--Don't remove this.