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: CalenDayContentWidget class definition.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CALENDAYCONTENTWIDGET_H_
|
|
19 |
#define CALENDAYCONTENTWIDGET_H_
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <hbwidget.h>
|
|
23 |
|
|
24 |
// User includes
|
|
25 |
#include "calendaycommonheaders.h"
|
|
26 |
|
|
27 |
// Forward declarations
|
|
28 |
class QGraphicsLinearLayout;
|
|
29 |
class CalenDayModelManager;
|
|
30 |
|
|
31 |
class CalenDayContentWidget : public HbWidget
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
/*!
|
|
37 |
\enum CalenWidgetPosition
|
|
38 |
\brief Enumeration identifies widget position if queue.
|
|
39 |
*/
|
|
40 |
enum CalenWidgetPosition
|
|
41 |
{
|
|
42 |
ECalenLastWidget = 0, ECalenFirstWidget
|
|
43 |
};
|
|
44 |
|
|
45 |
public:
|
|
46 |
CalenDayContentWidget(CalenDayModelManager &modelManager,
|
|
47 |
QGraphicsItem *parent = 0)
|
|
48 |
{
|
|
49 |
Q_UNUSED(parent);
|
|
50 |
Q_UNUSED(modelManager);
|
|
51 |
}
|
|
52 |
~CalenDayContentWidget()
|
|
53 |
{
|
|
54 |
}
|
|
55 |
|
|
56 |
void add(HbWidget* item, CalenWidgetPosition where = ECalenLastWidget)
|
|
57 |
{
|
|
58 |
Q_UNUSED(item);
|
|
59 |
Q_UNUSED(where);
|
|
60 |
}
|
|
61 |
HbWidget* take(CalenWidgetPosition which)
|
|
62 |
{
|
|
63 |
Q_UNUSED(which);
|
|
64 |
return 0;
|
|
65 |
}
|
|
66 |
void remove(CalenWidgetPosition which)
|
|
67 |
{
|
|
68 |
Q_UNUSED(which);
|
|
69 |
}
|
|
70 |
|
|
71 |
signals:
|
|
72 |
void widgetsRelayoutFinished(CalenScrollDirection scrollTo);
|
|
73 |
void scrollPositionChanged(const QPointF &newPos);
|
|
74 |
|
|
75 |
public slots:
|
|
76 |
void relayoutWidgets(CalenScrollDirection scrollTo)
|
|
77 |
{
|
|
78 |
Q_UNUSED(scrollTo);
|
|
79 |
}
|
|
80 |
void widgetScrolled(const QPointF &newPos)
|
|
81 |
{
|
|
82 |
Q_UNUSED(newPos);
|
|
83 |
}
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif /* CALENDAYCONTENTWIDGET_H_ */
|