45
|
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 |
|
81
|
28 |
extern qint32 LOCALE_CHANGED;
|
|
29 |
|
45
|
30 |
// Class declaration
|
|
31 |
class CalenDayHourScrollArea : public HbScrollArea
|
81
|
32 |
{
|
45
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
81
|
36 |
CalenDayHourScrollArea(QGraphicsItem *parent = 0)
|
|
37 |
{
|
|
38 |
Q_UNUSED(parent);
|
|
39 |
}
|
|
40 |
virtual ~CalenDayHourScrollArea()
|
|
41 |
{
|
|
42 |
}
|
|
43 |
void setDateTime(const QDateTime &dateTime)
|
|
44 |
{
|
|
45 |
Q_UNUSED(dateTime);
|
|
46 |
}
|
|
47 |
QDateTime dateTime()
|
|
48 |
{
|
|
49 |
return QDateTime();
|
|
50 |
}
|
45
|
51 |
|
81
|
52 |
void scrollToHour(int hour)
|
|
53 |
{
|
|
54 |
Q_UNUSED(hour);
|
|
55 |
}
|
45
|
56 |
|
|
57 |
public slots:
|
81
|
58 |
void scrollVertically(const QPointF &newPosition)
|
|
59 |
{
|
|
60 |
Q_UNUSED(newPosition);
|
|
61 |
}
|
|
62 |
|
|
63 |
void localeChanged()
|
|
64 |
{
|
|
65 |
LOCALE_CHANGED++;
|
|
66 |
}
|
|
67 |
|
|
68 |
void updateTimeIndicator()
|
|
69 |
{
|
45
|
70 |
|
81
|
71 |
}
|
|
72 |
|
|
73 |
};
|
45
|
74 |
|
|
75 |
#endif /* CALENDAYHOURSCROLLAREA_H_ */
|