calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calendayhourscrollarea.h
changeset 45 b6db4fd4947b
child 81 ce92091cbd61
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
       
     1 /*
       
     2  * Copyright (c) 2010 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:  CalenDayHourScrollArea class definition.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CALENDAYHOURSCROLLAREA_H_
       
    19 #define CALENDAYHOURSCROLLAREA_H_
       
    20 
       
    21 // System includes
       
    22 #include <hbscrollarea.h>
       
    23 #include <QDateTime>
       
    24 
       
    25 // User includes
       
    26 #include "calendaycommonheaders.h"
       
    27 
       
    28 // Class declaration
       
    29 class CalenDayHourScrollArea : public HbScrollArea
       
    30 	{
       
    31 Q_OBJECT
       
    32 
       
    33 public:
       
    34 	CalenDayHourScrollArea(QGraphicsItem *parent = 0)
       
    35 		{
       
    36 		Q_UNUSED(parent);
       
    37 		}
       
    38 	virtual ~CalenDayHourScrollArea()
       
    39 		{
       
    40 		}
       
    41 	void setDateTime(const QDateTime &dateTime)
       
    42 		{
       
    43 		Q_UNUSED(dateTime);
       
    44 		}
       
    45 	QDateTime dateTime()
       
    46 		{
       
    47 		return QDateTime();
       
    48 		}
       
    49 
       
    50 	void scrollToHour(int hour)
       
    51 		{
       
    52 		Q_UNUSED(hour);
       
    53 		}
       
    54 
       
    55 public slots:
       
    56 	void scrollVertically(const QPointF &newPosition)
       
    57 		{
       
    58 		Q_UNUSED(newPosition);
       
    59 		}
       
    60 
       
    61 	};
       
    62 
       
    63 #endif /* CALENDAYHOURSCROLLAREA_H_ */