locationpickerservice/src/locationpickerappwindow.cpp
changeset 41 b3dd5ec3089d
parent 31 8db05346071b
--- a/locationpickerservice/src/locationpickerappwindow.cpp	Thu Sep 02 20:20:42 2010 +0300
+++ b/locationpickerservice/src/locationpickerappwindow.cpp	Mon Oct 04 00:10:56 2010 +0300
@@ -66,7 +66,8 @@
     addView( mLocationPickerView );
     setCurrentView(mLocationPickerView);
     //connect to orientationChanged signal
-     connect(this, SIGNAL(orientationChanged(Qt::Orientation)),this, SLOT(changeOrientation(Qt::Orientation)));
+     connect(this, SIGNAL(orientationChanged(Qt::Orientation)),this, 
+     	SLOT(changeOrientation(Qt::Orientation)));
     connect(this, SIGNAL(aboutToChangeOrientation()),this, SLOT(closeDetailsDialog()));
      
     }
@@ -114,15 +115,20 @@
         mLocationPickerDocumentLoader->load(":/locationpickersearchview.docml", &ok);
         Q_ASSERT_X(ok, "locationpickerService", "invalid DocML file");
         //find the LocationPickerSearchView
-        QGraphicsWidget *locationPickerSearchWidget = mLocationPickerDocumentLoader->findWidget("LocationPickerSearchView");
+        QGraphicsWidget *locationPickerSearchWidget = 
+        	mLocationPickerDocumentLoader->findWidget("LocationPickerSearchView");
         Q_ASSERT_X((locationPickerSearchWidget != 0), "locationpickerService", "invalid DocML file");
         mLocationPickerSearchView = qobject_cast<LocationPickerSearchView*>(locationPickerSearchWidget);
         Q_ASSERT_X((mLocationPickerSearchView != 0), "mLocationPickerSearchView", 
             "qobject cast failure");
         //initialize the action items and connect to slots
         mLocationPickerSearchView->init(mLocationPickerContent->getStandardModel());
-        connect(mLocationPickerSearchView,SIGNAL(switchView()),this,SLOT(activateLocationPickerView()));
-        connect(mLocationPickerSearchView,SIGNAL(selectItem( quint32 )),this,SLOT(itemSelected( quint32 )));
+        connect(mLocationPickerSearchView,SIGNAL(switchView()),
+        	this,SLOT(activateLocationPickerView()));
+        connect(mLocationPickerSearchView,SIGNAL(selectItem( quint32 )),
+        	this,SLOT(itemSelected( quint32 )));
+        connect(mLocationPickerSearchView,SIGNAL(completeService()),
+        	this,SLOT(serviceComplete()));
         addView(mLocationPickerSearchView);
     }
     //set LocationPickerSearchview as current view