calendarui/views/dayview/inc/calendayhourscrollarea.h
changeset 45 b6db4fd4947b
child 55 2c54b51f39c4
child 58 ef813d54df51
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 //forward declarations
       
    29 class CalenDayHourElement;
       
    30 
       
    31 // Class declaration
       
    32 class CalenDayHourScrollArea : public HbScrollArea
       
    33 {
       
    34 Q_OBJECT
       
    35 
       
    36 public:
       
    37     CalenDayHourScrollArea(QGraphicsItem *parent = 0);
       
    38     virtual ~CalenDayHourScrollArea();
       
    39     void setDateTime(const QDateTime &dateTime);
       
    40     QDateTime dateTime() const;
       
    41     
       
    42     void scrollToHour(int hour);
       
    43 
       
    44 public slots:
       
    45     void scrollVertically(const QPointF &newPosition);
       
    46     
       
    47 private:
       
    48     QDateTime mDateTime;
       
    49     QList<CalenDayHourElement*> mHourElements;
       
    50 };
       
    51 
       
    52 #endif /* CALENDAYHOURSCROLLAREA_H_ */