calendarui/views/dayview/tsrc/unittests/unittest_calendayitemview/calendaymodel.h
changeset 45 b6db4fd4947b
child 81 ce92091cbd61
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarui/views/dayview/tsrc/unittests/unittest_calendayitemview/calendaymodel.h	Mon Jun 28 15:22:02 2010 +0530
@@ -0,0 +1,72 @@
+/*
+* Copyright (c) 2010 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: Single day item view model
+*
+*/
+
+#ifndef CALENDAYMODEL_H
+#define CALENDAYMODEL_H
+
+//System includes
+#include <QAbstractItemModel>
+#include <QVariant>
+#include <QDateTime>
+
+#include <agendaentry.h>
+
+//User includes
+
+//Forward declarations
+class MCalenServices;
+
+//Constantss
+const int CalenDayEntry = Qt::UserRole + 1; 
+
+Q_DECLARE_METATYPE(AgendaEntry)
+class CalenDayModel : public QAbstractListModel
+{
+    Q_OBJECT
+public:
+	CalenDayModel(const QDateTime &date, MCalenServices &services,
+						QObject *parent = 0)
+	{
+        Q_UNUSED(date)
+        Q_UNUSED(parent)
+        Q_UNUSED(date)
+	};
+	
+    // from QAbstractListModel
+	int rowCount(const QModelIndex &parent = QModelIndex()) const
+	{
+	    return 0;
+	}
+    QVariant data(const QModelIndex &index, int role) const
+    {
+        Q_UNUSED(index)
+        Q_UNUSED(role)
+        return QVariant();
+    }
+    
+	void refreshModel(const QDateTime &date) 
+	{
+	    Q_UNUSED(date)
+	};
+	
+	QDateTime modelDate() const
+	    {return QDateTime();}
+
+};
+
+#endif //CALENDAYMODEL_H
+