equal
deleted
inserted
replaced
18 // System includes |
18 // System includes |
19 #include <QtPlugin> |
19 #include <QtPlugin> |
20 #include <hbdocumentloaderplugin> |
20 #include <hbdocumentloaderplugin> |
21 |
21 |
22 // User includes |
22 // User includes |
23 #include "radiostationsview.h" |
|
24 #include "radiomainview.h" |
|
25 #include "radiohistoryview.h" |
|
26 #include "radiostationcarousel.h" |
23 #include "radiostationcarousel.h" |
27 #include "radiofrequencystrip.h" |
24 #include "radiofrequencystrip.h" |
28 #include "radiobannerlabel.h" |
|
29 #include "radiofadinglabel.h" |
25 #include "radiofadinglabel.h" |
30 |
26 |
31 // Class declaration |
27 // Class declaration |
32 class RadioWidgetsPlugin : public HbDocumentLoaderPlugin |
28 class RadioWidgetsPlugin : public HbDocumentLoaderPlugin |
33 { |
29 { |
45 */ |
41 */ |
46 QObject* RadioWidgetsPlugin::createObject( const QString& type, const QString& name ) |
42 QObject* RadioWidgetsPlugin::createObject( const QString& type, const QString& name ) |
47 { |
43 { |
48 QObject* object = 0; |
44 QObject* object = 0; |
49 |
45 |
50 if ( type == RadioMainView::staticMetaObject.className() ) { |
46 if ( type == RadioStationCarousel::staticMetaObject.className() ) { |
51 object = new RadioMainView(); |
|
52 } else if ( type == RadioStationsView::staticMetaObject.className() ) { |
|
53 object = new RadioStationsView(); |
|
54 } else if ( type == RadioHistoryView::staticMetaObject.className() ) { |
|
55 object = new RadioHistoryView(); |
|
56 } else if ( type == RadioStationCarousel::staticMetaObject.className() ) { |
|
57 object = new RadioStationCarousel(); |
47 object = new RadioStationCarousel(); |
58 } else if ( type == RadioFrequencyStrip::staticMetaObject.className() ) { |
48 } else if ( type == RadioFrequencyStrip::staticMetaObject.className() ) { |
59 object = new RadioFrequencyStrip(); |
49 object = new RadioFrequencyStrip(); |
60 } else if ( type == RadioBannerLabel::staticMetaObject.className() ) { |
|
61 object = new RadioBannerLabel(); |
|
62 } else if ( type == RadioFadingLabel::staticMetaObject.className() ) { |
50 } else if ( type == RadioFadingLabel::staticMetaObject.className() ) { |
63 object = new RadioFadingLabel(); |
51 object = new RadioFadingLabel(); |
64 } |
52 } |
65 |
53 |
66 if ( object ) { |
54 if ( object ) { |
74 * |
62 * |
75 */ |
63 */ |
76 QList<const QMetaObject *> RadioWidgetsPlugin::supportedObjects() |
64 QList<const QMetaObject *> RadioWidgetsPlugin::supportedObjects() |
77 { |
65 { |
78 QList<const QMetaObject *> result; |
66 QList<const QMetaObject *> result; |
79 result.append( &RadioMainView::staticMetaObject ); |
|
80 result.append( &RadioStationsView::staticMetaObject ); |
|
81 result.append( &RadioHistoryView::staticMetaObject ); |
|
82 result.append( &RadioBannerLabel::staticMetaObject ); |
|
83 result.append( &RadioFadingLabel::staticMetaObject ); |
67 result.append( &RadioFadingLabel::staticMetaObject ); |
84 result.append( &RadioFrequencyStrip::staticMetaObject ); |
68 result.append( &RadioFrequencyStrip::staticMetaObject ); |
85 result.append( &RadioStationCarousel::staticMetaObject ); |
69 result.append( &RadioStationCarousel::staticMetaObject ); |
86 return result; |
70 return result; |
87 } |
71 } |