--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/userguide/inc/HelpDocumentLoader.h Tue Aug 31 15:06:12 2010 +0300
@@ -0,0 +1,47 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#ifndef HELPDOCUMENTLOADER_H
+#define HELPDOCUMENTLOADER_H
+
+#include <hbdocumentloader.h>
+
+class HelpDocumentLoader : public HbDocumentLoader
+{
+private:
+ virtual QObject* createObject(const QString& type, const QString& name);
+};
+
+class HelpUIBuilder
+{
+public:
+ void setObjectTree(QObjectList roots);
+ QObjectList load(const QString& fileName);
+ QObjectList load(const QString& fileName, const QString& section);
+ QGraphicsWidget* findWidget(const QString& name);
+ QObject* findObject(const QString& name);
+
+public:
+ template<class T> T findWidget(const QString& name) { return qobject_cast<T>(findWidget(name)); }
+ template<class T> T findObject(const QString& name) { return qobject_cast<T>(findObject(name)); }
+
+private:
+ HelpDocumentLoader mDocLoader;
+};
+
+
+#endif //HELPDOCUMENTLOADER_H