--- a/clock/clockui/clockappcontroller/src/clockappcontroller.cpp Tue Jul 06 14:14:56 2010 +0300
+++ b/clock/clockui/clockappcontroller/src/clockappcontroller.cpp Wed Aug 18 09:47:38 2010 +0300
@@ -19,6 +19,11 @@
#include "clockappcontroller.h"
#include "clockappcontrollerifimpl.h"
#include "clockviewmanager.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "clockappcontrollerTraces.h"
+#endif
+
/*!
\class ClockAppController
@@ -35,6 +40,7 @@
mViewManager(0),
mIfImpl(0)
{
+ OstTraceFunctionEntry0( CLOCKAPPCONTROLLER_CLOCKAPPCONTROLLER_ENTRY );
// Construct the interface implementation.
mIfImpl = new ClockAppControllerIfImpl(this, this);
@@ -43,6 +49,8 @@
Q_ASSERT_X(
mViewManager, "clockappcontroller.cpp",
"ClockViewManager is 0");
+ connect(mViewManager, SIGNAL(appReady()), this, SLOT(handleAppReady()));
+ OstTraceFunctionExit0( CLOCKAPPCONTROLLER_CLOCKAPPCONTROLLER_EXIT );
}
/*!
@@ -50,6 +58,7 @@
*/
ClockAppController::~ClockAppController()
{
+ OstTraceFunctionEntry0( DUP1_CLOCKAPPCONTROLLER_CLOCKAPPCONTROLLER_ENTRY );
if (mViewManager) {
delete mViewManager;
mViewManager = 0;
@@ -58,6 +67,18 @@
delete mIfImpl;
mIfImpl = 0;
}
+ OstTraceFunctionExit0( DUP1_CLOCKAPPCONTROLLER_CLOCKAPPCONTROLLER_EXIT );
+}
+
+/*!
+ Emits the appReday signal.
+ */
+void ClockAppController::handleAppReady()
+{
+ OstTraceFunctionEntry0( CLOCKAPPCONTROLLER_HANDLEAPPREADY_ENTRY );
+ emit appReady();
+ disconnect(mViewManager, SIGNAL(appReady()), this, SLOT(handleAppReady()));
+ OstTraceFunctionExit0( CLOCKAPPCONTROLLER_HANDLEAPPREADY_EXIT );
}
// End of file --Don't remove this.