|
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: This implements the custom dialog loader for posverification dialogs |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "customdocumentloader.h" |
|
19 #include "posverificationcustomdialog.h" |
|
20 |
|
21 // --------------------------------------------------------------------------- |
|
22 // CustomDocumentLoader::CustomDocumentLoader() |
|
23 // --------------------------------------------------------------------------- |
|
24 // |
|
25 CustomDocumentLoader::CustomDocumentLoader() |
|
26 { |
|
27 } |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // CustomDocumentLoader::~CustomDocumentLoader() |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CustomDocumentLoader::~CustomDocumentLoader() |
|
34 { |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // CustomDocumentLoader::createObject |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 QObject *CustomDocumentLoader::createObject(const QString& type, |
|
42 const QString &name) |
|
43 { |
|
44 //for CustomDialog |
|
45 if (type == PosVerificationCustomDialog::staticMetaObject.className()) |
|
46 { |
|
47 QObject *object = new PosVerificationCustomDialog; |
|
48 object->setObjectName(name); |
|
49 return object; |
|
50 } |
|
51 //default case |
|
52 return HbDocumentLoader::createObject(type, name); |
|
53 } |