qtinternetradio/ui/src/irdocumentloader.cpp
changeset 14 896e9dbc5f19
parent 3 ee64f059b8e1
equal deleted inserted replaced
12:608f67c22514 14:896e9dbc5f19
    15 *
    15 *
    16 */
    16 */
    17 #include <HbTextItem>
    17 #include <HbTextItem>
    18 #include <HbMarqueeItem>
    18 #include <HbMarqueeItem>
    19 #include "irdocumentloader.h" 
    19 #include "irdocumentloader.h" 
       
    20 #include "irplayingbanner.h"
    20 
    21 
    21 QObject *IRDocumentLoader::createObject(const QString& aType, const QString &aName)
    22 QObject *IRDocumentLoader::createObject(const QString& aType, const QString &aName)
    22 {
    23 {
    23     if (aType == HbTextItem::staticMetaObject.className())
    24     if (aType == HbTextItem::staticMetaObject.className())
    24     {
    25     {
    30     {
    31     {
    31         QObject *object = new HbMarqueeItem;
    32         QObject *object = new HbMarqueeItem;
    32         object->setObjectName(aName);
    33         object->setObjectName(aName);
    33         return object;
    34         return object;
    34     }
    35     }
       
    36     else if (aType == IRPlayingBanner::staticMetaObject.className())
       
    37     {
       
    38         QObject *object = new IRPlayingBanner;
       
    39         object->setObjectName(aName);
       
    40         return object;
       
    41     }
    35 
    42 
    36     return HbDocumentLoader::createObject(aType, aName);
    43     return HbDocumentLoader::createObject(aType, aName);
    37 }
    44 }