calendarui/views/dayview/tsrc/unittests/unittest_calendaycontentwidget/calendaycontentwidgetheaders.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Mocked classes for testing CalenDayContentWidget class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CALENSERVICES_H |
|
19 #define CALENSERVICES_H |
|
20 |
|
21 /*! |
|
22 Mocked class MCalenServices |
|
23 */ |
|
24 class MCalenServices |
|
25 { |
|
26 public: |
|
27 MCalenServices() { |
|
28 |
|
29 } |
|
30 |
|
31 ~MCalenServices() { |
|
32 |
|
33 } |
|
34 }; |
|
35 |
|
36 #endif // CALENSERVICES_H |
|
37 |
|
38 |
|
39 #ifndef CALENDAYITEMVIEW_H |
|
40 #define CALENDAYITEMVIEW_H |
|
41 |
|
42 #include <QGraphicsItem> |
|
43 #include <QPointF> |
|
44 #include <HbWidget> |
|
45 #include <HbModelIterator> |
|
46 |
|
47 /*! |
|
48 Mocked class CalenDayItemView |
|
49 */ |
|
50 class CalenDayItemView : public HbWidget |
|
51 { |
|
52 Q_OBJECT |
|
53 |
|
54 public: |
|
55 CalenDayItemView(MCalenServices &services, HbModelIterator *iterator, |
|
56 QGraphicsItem *parent) : HbWidget(parent) { |
|
57 Q_UNUSED(services) |
|
58 Q_UNUSED(iterator) |
|
59 } |
|
60 |
|
61 void scrollVertically(const QPointF &newPosition) { |
|
62 Q_UNUSED(newPosition) |
|
63 } |
|
64 |
|
65 signals: |
|
66 void scrollPositionChanged(const QPointF&); |
|
67 }; |
|
68 |
|
69 #endif // CALENDAYITEMVIEW_H |
|
70 |