videocollection/videocollectionview/src/videocollectionviewplugin.cpp
changeset 20 b9e04db066d4
parent 17 69946d1824c4
child 47 45e72b57a2fd
--- a/videocollection/videocollectionview/src/videocollectionviewplugin.cpp	Mon May 03 12:32:50 2010 +0300
+++ b/videocollection/videocollectionview/src/videocollectionviewplugin.cpp	Fri May 14 15:53:50 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: %
+// Version : %version: 23 %
 
 // INCLUDE FILES
 #include <xqplugin.h>
@@ -99,13 +99,13 @@
         }
 
         if(!connect( mView, SIGNAL(command(int)), this, SIGNAL(command(int)) ) ||
-           !connect( this, SIGNAL(doDelayeds()), mView, SLOT(doDelayedsSlot()) )) {
+           !connect( this, SIGNAL(doDelayeds()), mView, SLOT(doDelayedsSlot()) ) ||
+           !connect( mView, SIGNAL(viewReady()), this, SLOT(viewReadySlot()) ) ) {
             ERROR(-1, "VideoCollectionViewPlugin::createView() failed to connect signals.");
             delete mView;
             mView = 0;
             return;
         }
-        mTimerId = startTimer(DELAYED_LOAD_TIMEOUT);
         mView->initializeView();
     }
 }
@@ -179,7 +179,6 @@
             int err = mView->activateView(itemId);
             if (err != 0)
             {
-                // TODO: what to do if error?
                 return;
             }
             mActivated = true;
@@ -233,6 +232,16 @@
     }
 }
 
+// ---------------------------------------------------------------------------
+// Slot: viewReadySlot
+// ---------------------------------------------------------------------------
+//
+void VideoCollectionViewPlugin::viewReadySlot()
+{
+    FUNC_LOG;
+    mTimerId = startTimer(DELAYED_LOAD_TIMEOUT);
+}
+
 XQ_EXPORT_PLUGIN2( videocollectionview, VideoCollectionViewPlugin );
 
 // end of file