radioapp/radiowidgetsplugin/main.cpp
changeset 19 afea38384506
parent 16 f54ebcfc1b80
child 37 451b2e1545b2
equal deleted inserted replaced
16:f54ebcfc1b80 19:afea38384506
    19 #include <QtPlugin>
    19 #include <QtPlugin>
    20 #include <hbdocumentloaderplugin>
    20 #include <hbdocumentloaderplugin>
    21 
    21 
    22 // User includes
    22 // User includes
    23 #include "radiostationsview.h"
    23 #include "radiostationsview.h"
    24 #include "radiotuningview.h"
    24 #include "radiomainview.h"
    25 #include "radiohistoryview.h"
    25 #include "radiohistoryview.h"
    26 #include "radiostationcarousel.h"
    26 #include "radiostationcarousel.h"
    27 #include "radiofrequencystrip.h"
    27 #include "radiofrequencystrip.h"
    28 #include "radiobannerlabel.h"
    28 #include "radiobannerlabel.h"
    29 #include "radiofadinglabel.h"
    29 #include "radiofadinglabel.h"
    45  */
    45  */
    46 QObject* RadioWidgetsPlugin::createObject( const QString& type, const QString& name )
    46 QObject* RadioWidgetsPlugin::createObject( const QString& type, const QString& name )
    47 {
    47 {
    48     QObject* object = 0;
    48     QObject* object = 0;
    49 
    49 
    50     if ( type == RadioTuningView::staticMetaObject.className() ) {
    50     if ( type == RadioMainView::staticMetaObject.className() ) {
    51         object = new RadioTuningView();
    51         object = new RadioMainView();
    52     } else if ( type == RadioStationsView::staticMetaObject.className() ) {
    52     } else if ( type == RadioStationsView::staticMetaObject.className() ) {
    53         object = new RadioStationsView();
    53         object = new RadioStationsView();
    54     } else if ( type == RadioHistoryView::staticMetaObject.className() ) {
    54     } else if ( type == RadioHistoryView::staticMetaObject.className() ) {
    55         object = new RadioHistoryView();
    55         object = new RadioHistoryView();
    56     } else if ( type == RadioStationCarousel::staticMetaObject.className() ) {
    56     } else if ( type == RadioStationCarousel::staticMetaObject.className() ) {
    74  *
    74  *
    75  */
    75  */
    76 QList<const QMetaObject *> RadioWidgetsPlugin::supportedObjects()
    76 QList<const QMetaObject *> RadioWidgetsPlugin::supportedObjects()
    77 {
    77 {
    78     QList<const QMetaObject *> result;
    78     QList<const QMetaObject *> result;
    79     result.append( &RadioTuningView::staticMetaObject );
    79     result.append( &RadioMainView::staticMetaObject );
    80     result.append( &RadioStationsView::staticMetaObject );
    80     result.append( &RadioStationsView::staticMetaObject );
    81     result.append( &RadioHistoryView::staticMetaObject );
    81     result.append( &RadioHistoryView::staticMetaObject );
    82     result.append( &RadioBannerLabel::staticMetaObject );
    82     result.append( &RadioBannerLabel::staticMetaObject );
    83     result.append( &RadioFadingLabel::staticMetaObject );
    83     result.append( &RadioFadingLabel::staticMetaObject );
    84     result.append( &RadioFrequencyStrip::staticMetaObject );
    84     result.append( &RadioFrequencyStrip::staticMetaObject );