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_ALLAPPSSTATE_H
|
|
19 |
#define T_ALLAPPSSTATE_H
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
|
|
23 |
|
|
24 |
class HbMainWindow;
|
|
25 |
class HbAbstractViewItem;
|
|
26 |
class QStateMachine;
|
|
27 |
|
|
28 |
|
|
29 |
/**
|
|
30 |
* @test Test class for homescreen::hsutils modules.
|
|
31 |
*/
|
|
32 |
class MenuStatesTest : public QObject
|
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
private slots:
|
|
37 |
//void initTestCase();
|
|
38 |
//void cleanup();
|
|
39 |
//void init();
|
|
40 |
/*
|
|
41 |
* Tests
|
|
42 |
*/
|
|
43 |
//HsAllAppsState
|
|
44 |
void construction();
|
|
45 |
void addToCollection();
|
|
46 |
void addToHomeScreen();
|
|
47 |
#ifdef Q_OS_SYMBIAN
|
|
48 |
void openTaskSwitcher();
|
|
49 |
#endif//Q_OS_SYMBIAN
|
|
50 |
void listItemLongPressed();
|
|
51 |
void contextMenuAction();
|
|
52 |
void sortOrder();
|
|
53 |
void listItemActivated();
|
|
54 |
void addModeAddActivated();
|
|
55 |
void addModeShowContextMenu();
|
|
56 |
void addModeEnteredExited();
|
|
57 |
#ifdef Q_OS_SYMBIAN
|
|
58 |
void checkSoftwareUpdates();
|
|
59 |
#endif//Q_OS_SYMBIAN
|
|
60 |
//HsAddModeProxyModel
|
|
61 |
void addModeProxyModel_construction();
|
|
62 |
void addModeProxyModel_filterAcceptsRow();
|
|
63 |
|
|
64 |
private:
|
|
65 |
HbMainWindow* mMainWindow;
|
|
66 |
static const char TEST_PARAM_NAME[17];
|
|
67 |
static const char TEST_PARAM_VALUE[17];
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // T_ALLAPPSSTATE_H
|