clock/clockui/clockwidget/clockwidgetimpl/src/clockwidget.cpp
changeset 57 bb2d3e476f29
parent 45 b6db4fd4947b
--- a/clock/clockui/clockwidget/clockwidgetimpl/src/clockwidget.cpp	Mon Jul 26 13:54:38 2010 +0530
+++ b/clock/clockui/clockwidget/clockwidgetimpl/src/clockwidget.cpp	Mon Aug 09 18:30:52 2010 +0530
@@ -22,6 +22,11 @@
 #include "clockwidget.h"
 #include "analogclockwidget.h"
 #include "digitalclockwidget.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "clockwidgetTraces.h"
+#endif
+
 
 /*!
     \class ClockWidget
@@ -36,7 +41,9 @@
     : HbWidget(parent, flags),
       mClockType(ClockTypeDigital)
 {    
+    OstTraceFunctionEntry0( CLOCKWIDGET_CLOCKWIDGET_ENTRY );
     loadClockWidget();
+OstTraceFunctionExit0( CLOCKWIDGET_CLOCKWIDGET_EXIT );
 }
 
 /*!
@@ -44,7 +51,9 @@
 */
 ClockWidget::~ClockWidget()
 {    
+    OstTraceFunctionEntry0( DUP1_CLOCKWIDGET_CLOCKWIDGET_ENTRY );
     
+OstTraceFunctionExit0( DUP1_CLOCKWIDGET_CLOCKWIDGET_EXIT );
 }
 
 /*!
@@ -52,6 +61,8 @@
 */
 ClockWidget::ClockType ClockWidget::clockType() const
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_CLOCKTYPE_ENTRY );
+    OstTraceFunctionExit0( CLOCKWIDGET_CLOCKTYPE_EXIT );
     return mClockType;
 }
   
@@ -60,6 +71,7 @@
 */
 void ClockWidget::setClockType(const ClockType &type)
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_SETCLOCKTYPE_ENTRY );
     if (type == ClockTypeAnalog) {
         if(type != mClockType){
 	        mClockType = ClockTypeAnalog;
@@ -71,6 +83,7 @@
             updateClockWidget();
         }      
     }
+OstTraceFunctionExit0( CLOCKWIDGET_SETCLOCKTYPE_EXIT );
 }
 
 /*!
@@ -78,11 +91,13 @@
 */
 void ClockWidget::updateTime()
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_UPDATETIME_ENTRY );
     if (mClockType == ClockTypeAnalog) {  
         mAnalogClock->tick();    
     } else {
     	mDigitalClock->updatePrimitives();
     }
+OstTraceFunctionExit0( CLOCKWIDGET_UPDATETIME_EXIT );
 }
 
 /*!
@@ -90,6 +105,7 @@
 */
 void ClockWidget::loadClockWidget()
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_LOADCLOCKWIDGET_ENTRY );
     mLayout = new QGraphicsLinearLayout(Qt::Vertical);
     mLayout->setContentsMargins(0,0,0,0); 
 
@@ -102,6 +118,7 @@
 	    mLayout->addItem(mDigitalClock);
     }
     setLayout(mLayout);  
+OstTraceFunctionExit0( CLOCKWIDGET_LOADCLOCKWIDGET_EXIT );
 }
 
 /*!
@@ -109,6 +126,7 @@
 */
 void ClockWidget::updateClockWidget()
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_UPDATECLOCKWIDGET_ENTRY );
     if (mClockType == ClockTypeAnalog) {        
         mLayout->removeItem(mDigitalClock);
         delete mDigitalClock;
@@ -125,15 +143,19 @@
     }
     mLayout->addItem(mDigitalClock);
     }           
+OstTraceFunctionExit0( CLOCKWIDGET_UPDATECLOCKWIDGET_EXIT );
 }
 
 ClockWidget::TimeFormat ClockWidget::timeFormat() const
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_TIMEFORMAT_ENTRY );
+    OstTraceFunctionExit0( CLOCKWIDGET_TIMEFORMAT_EXIT );
     return mTimeFormat;
 }
 
 void ClockWidget::setTimeFormat(const TimeFormat &timeFormat)
 {
+    OstTraceFunctionEntry0( CLOCKWIDGET_SETTIMEFORMAT_ENTRY );
     if(mDigitalClock){
 	    mTimeFormat = timeFormat;
 		if (timeFormat == ClockWidget::TimeFormat12Hrs) {
@@ -142,5 +164,6 @@
 			mDigitalClock->setAmPm(false);
 		}
     }
+OstTraceFunctionExit0( CLOCKWIDGET_SETTIMEFORMAT_EXIT );
 }
 // End of file  --Don't remove this.