90
|
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: Tests for hsapplibrarystateplugin.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef T_MENUVIEWBUILDER_H
|
|
19 |
#define T_MENUVIEWBUILDER_H
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
#include <QPoint>
|
|
23 |
|
|
24 |
class HbMainWindow;
|
|
25 |
class HbAbstractViewItem;
|
|
26 |
class QStateMachine;
|
|
27 |
|
|
28 |
/**
|
|
29 |
* @test Test class for homescreen::hsutils modules.
|
|
30 |
*/
|
|
31 |
class MenuStatesTest : public QObject
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
private slots:
|
|
36 |
/*
|
|
37 |
* Tests
|
|
38 |
*/
|
|
39 |
void HsMenuViewBuilder_construction();
|
|
40 |
void HsMenuViewBuilder_view();
|
|
41 |
void HsMenuViewBuilder_listView();
|
|
42 |
void HsMenuViewBuilder_label();
|
|
43 |
void HsMenuViewBuilder_allAppsAction();
|
|
44 |
void HsMenuViewBuilder_allCollectionsAction();
|
|
45 |
void HsMenuViewBuilder_searchAction();
|
|
46 |
void HsMenuViewBuilder_oviStoreAction();
|
|
47 |
void HsMenuViewBuilder_operatorAction();
|
|
48 |
void HsMenuViewBuilder_toolBar();
|
|
49 |
void HsMenuViewBuilder_toolBarExtension();
|
|
50 |
|
|
51 |
//Menu view
|
|
52 |
void MenuView_toolBarExtension();
|
|
53 |
void HsMenuView_scrolling();
|
|
54 |
void MenuView_slots();
|
|
55 |
void MenuView_reset();
|
|
56 |
void MenuView_showHideSearchPanel();
|
|
57 |
// HsListViewItem
|
|
58 |
void HsListViewItem_updateChildItems();
|
|
59 |
void HsListViewItem_createItem();
|
|
60 |
void HsListViewItem_polish();
|
|
61 |
void HsProgressBar_timerEvent();
|
|
62 |
void HsProgressBar_setTargetProgressValue();
|
|
63 |
|
|
64 |
void cleanup();
|
|
65 |
|
|
66 |
/**
|
|
67 |
* special slots for tests
|
|
68 |
*/
|
|
69 |
void testslot_activated(const QModelIndex &aIndex);
|
|
70 |
void testslot_longpressed(HbAbstractViewItem *item,
|
|
71 |
const QPointF &coords);
|
|
72 |
private:
|
|
73 |
|
|
74 |
HbAbstractViewItem *mItem;
|
|
75 |
|
|
76 |
QModelIndex mIndex;
|
|
77 |
QPointF mPoint;
|
|
78 |
};
|
|
79 |
#endif // T_MENUVIEWBUILDER_H
|