|
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: Wlan Login document loader implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <HbMainWindow> |
|
20 |
|
21 //User includes |
|
22 #include "wlanloginwebview.h" |
|
23 #include "wlanlogindocumentloader.h" |
|
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "wlanlogindocumentloaderTraces.h" |
|
28 #endif |
|
29 |
|
30 /*! |
|
31 \class WlanLoginDocumentLoader |
|
32 \brief WLAN Login document loader implementation. |
|
33 */ |
|
34 |
|
35 // External function prototypes |
|
36 |
|
37 // Local constants |
|
38 |
|
39 // ======== LOCAL FUNCTIONS ======== |
|
40 |
|
41 // ======== MEMBER FUNCTIONS ======== |
|
42 |
|
43 /*! |
|
44 Constructor |
|
45 */ |
|
46 WlanLoginDocumentLoader::WlanLoginDocumentLoader(const HbMainWindow *window) : HbDocumentLoader(window) |
|
47 { |
|
48 OstTraceFunctionEntry0(WLANLOGINDOCUMENTLOADER_WLANLOGINDOCUMENTLOADER_ENTRY); |
|
49 OstTraceFunctionExit0(WLANLOGINDOCUMENTLOADER_WLANLOGINDOCUMENTLOADER_EXIT); |
|
50 } |
|
51 |
|
52 /*! |
|
53 Destructor |
|
54 */ |
|
55 WlanLoginDocumentLoader::~WlanLoginDocumentLoader() |
|
56 { |
|
57 OstTraceFunctionEntry0(WLANLOGINDOCUMENTLOADER_DESTRUCTOR_ENTRY); |
|
58 OstTraceFunctionExit0(WLANLOGINDOCUMENTLOADER_DESTRUCTOR_EXIT); |
|
59 } |
|
60 |
|
61 /*! |
|
62 This function returns WLAN Login UI specific objects from DocML |
|
63 */ |
|
64 QObject* WlanLoginDocumentLoader::createObject(const QString& type, const QString &name) |
|
65 { |
|
66 OstTraceFunctionEntry0(WLANLOGINDOCUMENTLOADER_CREATEOBJECT_ENTRY); |
|
67 |
|
68 QObject *res(NULL); |
|
69 if( type == WlanLoginWebView::staticMetaObject.className() ) { |
|
70 res = new WlanLoginWebView(); |
|
71 res->setObjectName(name); |
|
72 } |
|
73 |
|
74 if (!res) { |
|
75 res = HbDocumentLoader::createObject(type, name); |
|
76 } |
|
77 OstTraceFunctionEntry0(WLANLOGINDOCUMENTLOADER_CREATEOBJECT_EXIT); |
|
78 return res; |
|
79 } |