calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calendaymodel.h
author hgs
Mon, 20 Sep 2010 12:44:39 +0530
changeset 75 7ac58b2aae6f
permissions -rw-r--r--
201037

/*
* 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