equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: VideoCollectionViewPlugin class implementation |
14 * Description: VideoCollectionViewPlugin class implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: % |
18 // Version : %version: 23 % |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <xqplugin.h> |
21 #include <xqplugin.h> |
22 #include <xqserviceutil.h> |
22 #include <xqserviceutil.h> |
23 #include <hbaction.h> |
23 #include <hbaction.h> |
97 ERROR(-1, "VideoCollectionViewPlugin::createView() failed to create view."); |
97 ERROR(-1, "VideoCollectionViewPlugin::createView() failed to create view."); |
98 return; |
98 return; |
99 } |
99 } |
100 |
100 |
101 if(!connect( mView, SIGNAL(command(int)), this, SIGNAL(command(int)) ) || |
101 if(!connect( mView, SIGNAL(command(int)), this, SIGNAL(command(int)) ) || |
102 !connect( this, SIGNAL(doDelayeds()), mView, SLOT(doDelayedsSlot()) )) { |
102 !connect( this, SIGNAL(doDelayeds()), mView, SLOT(doDelayedsSlot()) ) || |
|
103 !connect( mView, SIGNAL(viewReady()), this, SLOT(viewReadySlot()) ) ) { |
103 ERROR(-1, "VideoCollectionViewPlugin::createView() failed to connect signals."); |
104 ERROR(-1, "VideoCollectionViewPlugin::createView() failed to connect signals."); |
104 delete mView; |
105 delete mView; |
105 mView = 0; |
106 mView = 0; |
106 return; |
107 return; |
107 } |
108 } |
108 mTimerId = startTimer(DELAYED_LOAD_TIMEOUT); |
|
109 mView->initializeView(); |
109 mView->initializeView(); |
110 } |
110 } |
111 } |
111 } |
112 |
112 |
113 |
113 |
177 } |
177 } |
178 } |
178 } |
179 int err = mView->activateView(itemId); |
179 int err = mView->activateView(itemId); |
180 if (err != 0) |
180 if (err != 0) |
181 { |
181 { |
182 // TODO: what to do if error? |
|
183 return; |
182 return; |
184 } |
183 } |
185 mActivated = true; |
184 mActivated = true; |
186 } |
185 } |
187 } |
186 } |
231 if ( mActivated ) { |
230 if ( mActivated ) { |
232 mView->back(); |
231 mView->back(); |
233 } |
232 } |
234 } |
233 } |
235 |
234 |
|
235 // --------------------------------------------------------------------------- |
|
236 // Slot: viewReadySlot |
|
237 // --------------------------------------------------------------------------- |
|
238 // |
|
239 void VideoCollectionViewPlugin::viewReadySlot() |
|
240 { |
|
241 FUNC_LOG; |
|
242 mTimerId = startTimer(DELAYED_LOAD_TIMEOUT); |
|
243 } |
|
244 |
236 XQ_EXPORT_PLUGIN2( videocollectionview, VideoCollectionViewPlugin ); |
245 XQ_EXPORT_PLUGIN2( videocollectionview, VideoCollectionViewPlugin ); |
237 |
246 |
238 // end of file |
247 // end of file |