uiservicetab/vimpststorage/src/cvimpststoragecontactsorter.cpp
branchRCL_3
changeset 14 9fdee5e1da30
parent 0 5e5d6b214f4f
--- a/uiservicetab/vimpststorage/src/cvimpststoragecontactsorter.cpp	Wed Mar 31 21:14:49 2010 +0300
+++ b/uiservicetab/vimpststorage/src/cvimpststoragecontactsorter.cpp	Wed Apr 14 15:46:18 2010 +0300
@@ -21,7 +21,7 @@
 #include    "mvimpststoragecontact.h"
 #include    "tvimpstenums.h"
 #include    "cvimpststoragedefs.h"
-#include 	"vimpstdebugtrace.h"
+#include "uiservicetabtracer.h"
 
 // The order of contacts if sorted by status
 const TInt KConstOnline  = 1;
@@ -43,6 +43,7 @@
 TInt CompareAlphabetically( const MVIMPSTStorageContact& aFirst, 
                            const MVIMPSTStorageContact& aSecond )
     {
+	TRACER_AUTO;
     return aFirst.Name().CompareC( aSecond.Name(),
                                              KCollationLevel, NULL );
     }
@@ -51,6 +52,7 @@
 // Group the contact by it's status. 
 TInt OrderContact( const MVIMPSTStorageContact& aContact )
     {
+	TRACER_AUTO;
      // Contact is not blocked, group by presence status
       switch( aContact.OnlineStatus() )
             {
@@ -98,6 +100,7 @@
 TInt CompareByPresence( const MVIMPSTStorageContact& aFirst, 
                         const MVIMPSTStorageContact& aSecond )
     {
+	TRACER_AUTO;
     TInt firstGroup( OrderContact( aFirst ) );
     TInt secondGroup( OrderContact( aSecond ) );
 
@@ -116,6 +119,7 @@
 // Two-phased constructor.
 CVIMPSTStorageContactSorter* CVIMPSTStorageContactSorter::NewL() 
     {
+	TRACER_AUTO;
     CVIMPSTStorageContactSorter* self = new( ELeave ) CVIMPSTStorageContactSorter();
     return self;
     }
@@ -123,7 +127,7 @@
 // Destructor
 CVIMPSTStorageContactSorter::~CVIMPSTStorageContactSorter()
     {
-    TRACE( T_LIT("CVIMPSTStorageContactSorter::~CVIMPSTStorageContactSorter") );
+	TRACER_AUTO;
     }
 
 // ---------------------------------------------------------
@@ -133,9 +137,8 @@
 //
 void CVIMPSTStorageContactSorter::Sort( RPointerArray< MVIMPSTStorageContact >& aList )
     {
-    TRACE( T_LIT("CVIMPSTStorageContactSorter::Sort() begin") );
+	TRACER_AUTO;
     aList.Sort( iAlgorithm );
-    TRACE( T_LIT("CVIMPSTStorageContactSorter::Sort() end") );
     }
 
 // ---------------------------------------------------------
@@ -148,6 +151,7 @@
 TInt CVIMPSTStorageContactSorter::Compare( const MVIMPSTStorageContact& aFirst, 
                                     const MVIMPSTStorageContact& aSecond ) const
     {
+	TRACER_AUTO;
     return iAlgorithm.operator TGeneralLinearOrder()( &aFirst, &aSecond );
     }
 
@@ -169,6 +173,7 @@
 void CVIMPSTStorageContactSorter::SetSortAlgorithm( 
                             MVIMPSTStorageContact::TSortAlgorithm aAlgorithm )
     {    
+	TRACER_AUTO;
     switch( aAlgorithm )
             {
         case MVIMPSTStorageContact::ECompareByPresence: