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: Orbit stubs for Live Comms UI unit tests |
|
15 * |
|
16 */ |
|
17 #ifndef HBDOCUMENTLOADER_H |
|
18 #define HBDOCUMENTLOADER_H |
|
19 |
|
20 #include <hbglobal.h> |
|
21 #include <QString> |
|
22 #include <QObjectList> |
|
23 |
|
24 class QObject; |
|
25 class QGraphicsWidget; |
|
26 class HbLabel; |
|
27 class HbAction; |
|
28 class HbPushButton; |
|
29 |
|
30 class HbDocumentLoader |
|
31 { |
|
32 public: |
|
33 HbDocumentLoader(); |
|
34 virtual ~HbDocumentLoader(); |
|
35 |
|
36 QObjectList load( const QString &fileName, const QString §ion , bool *ok = 0 ); |
|
37 QObjectList load( const QString &fileName, bool *ok = 0 ); |
|
38 QGraphicsWidget *findWidget(const QString &name); |
|
39 QObject *findObject(const QString &name) const; |
|
40 bool setObjectTree( QObjectList roots ); |
|
41 void reset(); |
|
42 |
|
43 protected: |
|
44 virtual QObject *createObject(const QString& type, const QString &name); |
|
45 |
|
46 public: // Data added for the unit testing stub |
|
47 HbLabel* mLabel; |
|
48 HbAction* mAction; |
|
49 HbPushButton* mPushButton; |
|
50 QList<QGraphicsWidget*> mWidgets; |
|
51 bool mReturnSendVideo; |
|
52 QString mLayoutSection; |
|
53 |
|
54 QList<HbAction*> mActions; |
|
55 |
|
56 friend class UT_LcView; |
|
57 friend class UT_LcUiComponentRepository; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif // HBDOCUMENTLOADER_H |
|