|
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: |
|
15 * test application for qt control panel public apis. |
|
16 */ |
|
17 |
|
18 #ifndef UT_FMINTERNALDRIVEMODEL_H_ |
|
19 #define UT_FMINTERNALDRIVEMODEL_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QTranslator> |
|
23 #include <QStringList> |
|
24 class TestFmInternalDriveModel :public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 private slots: |
|
28 void initTestCase(); |
|
29 void testConstructor(); //test the constructor function. |
|
30 void testRowCount(); // test the rowCount() function. |
|
31 void testColumnCount(); // test the columnCount() function. |
|
32 void testData(); |
|
33 void testIndexValid(); // test the indexValid() function. |
|
34 void testHeaderData(); // test the headerData() function. |
|
35 |
|
36 void testDisplayStringWithVolume(); // test the displayString() function. |
|
37 void testDisplayStringWithoutVolume(); |
|
38 void testDisplayStringEmpty(); |
|
39 |
|
40 void testDriveName(); // test the driveName() function. |
|
41 void cleanupTestCase(); |
|
42 private: |
|
43 QTranslator mTranslator; |
|
44 QStringList mDriverList; |
|
45 }; |
|
46 #endif /* UT_FMINTERNALDRIVEMODEL_H_ */ |