equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Definition file for class NotesDocLoader. |
14 * Description: Definition file for class NotesDocLoader. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // System includes |
|
19 #include <qdebug.h> |
|
20 |
18 |
21 // User includes |
19 // User includes |
22 #include "notesdocloader.h" |
20 #include "notesdocloader.h" |
23 #include "notesmainview.h" |
21 #include "notesmainview.h" |
24 #include "notescollectionview.h" |
22 #include "notescollectionview.h" |
41 \return QObject* Pointer to the constructed QObject. |
39 \return QObject* Pointer to the constructed QObject. |
42 \sa HbDocumentLoader |
40 \sa HbDocumentLoader |
43 */ |
41 */ |
44 QObject* NotesDocLoader::createObject(const QString &type, const QString &name) |
42 QObject* NotesDocLoader::createObject(const QString &type, const QString &name) |
45 { |
43 { |
46 qDebug() << "notes: NotesDocLoader::createObject -->"; |
|
47 |
|
48 if (NOTES_MAIN_VIEW == name) { |
44 if (NOTES_MAIN_VIEW == name) { |
49 QObject *object = new NotesMainView(); |
45 QObject *object = new NotesMainView(); |
50 object->setObjectName(name); |
46 object->setObjectName(name); |
51 return object; |
47 return object; |
52 } else if (NOTES_COLLECTION_VIEW == name) { |
48 } else if (NOTES_COLLECTION_VIEW == name) { |
65 QObject *object = new NotesNoteView(); |
61 QObject *object = new NotesNoteView(); |
66 object->setObjectName(name); |
62 object->setObjectName(name); |
67 return object; |
63 return object; |
68 } |
64 } |
69 |
65 |
70 qDebug() << "notes: NotesDocLoader::createObject <--"; |
|
71 |
|
72 return HbDocumentLoader::createObject(type, name); |
66 return HbDocumentLoader::createObject(type, name); |
73 } |
67 } |
74 |
68 |
75 // End of file --Don't remove this. |
69 // End of file --Don't remove this. |