diff -r fd30d51f876b -r b6db4fd4947b calendarui/views/dayview/inc/calendayhourscrollarea.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/views/dayview/inc/calendayhourscrollarea.h Mon Jun 28 15:22:02 2010 +0530 @@ -0,0 +1,52 @@ +/* + * 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: CalenDayHourScrollArea class definition. + * + */ + +#ifndef CALENDAYHOURSCROLLAREA_H_ +#define CALENDAYHOURSCROLLAREA_H_ + +// System includes +#include +#include + +// User includes +#include "calendaycommonheaders.h" + +//forward declarations +class CalenDayHourElement; + +// Class declaration +class CalenDayHourScrollArea : public HbScrollArea +{ +Q_OBJECT + +public: + CalenDayHourScrollArea(QGraphicsItem *parent = 0); + virtual ~CalenDayHourScrollArea(); + void setDateTime(const QDateTime &dateTime); + QDateTime dateTime() const; + + void scrollToHour(int hour); + +public slots: + void scrollVertically(const QPointF &newPosition); + +private: + QDateTime mDateTime; + QList mHourElements; +}; + +#endif /* CALENDAYHOURSCROLLAREA_H_ */