uiservicetab/vimpstui/src/cvimpstuiavatarselectionhandler.cpp
branchRCL_3
changeset 9 9fdee5e1da30
parent 0 5e5d6b214f4f
--- a/uiservicetab/vimpstui/src/cvimpstuiavatarselectionhandler.cpp	Wed Mar 31 21:14:49 2010 +0300
+++ b/uiservicetab/vimpstui/src/cvimpstuiavatarselectionhandler.cpp	Wed Apr 14 15:46:18 2010 +0300
@@ -37,7 +37,7 @@
 #include    <avkon.rsg>
 #include    <caf/content.h>
 #include    <caf/manager.h> // content access
-
+#include "uiservicetabtracer.h"
 
 // ============================ MEMBER FUNCTIONS ===============================
 
@@ -60,6 +60,7 @@
 //
 void CAvatarSelectionHandler::ConstructL()
     {
+	TRACER_AUTO;
     User::LeaveIfError(iApaSession.Connect() );
 
     // create dochandler
@@ -75,6 +76,7 @@
 CAvatarSelectionHandler* CAvatarSelectionHandler::NewLC()
 
     {
+	TRACER_AUTO;
     CAvatarSelectionHandler* self = new( ELeave ) CAvatarSelectionHandler();
 
     CleanupStack::PushL(self);
@@ -150,6 +152,7 @@
 //
 void CAvatarSelectionHandler::HandleServerAppExit(TInt aReason)
     {
+	TRACER_AUTO;
     iServerAppExitReason = aReason;
     if (iWait.IsStarted() )
         {
@@ -165,6 +168,7 @@
 TBool CAvatarSelectionHandler::VerifySelectedFilesL( const MDesCArray* aSelectedFiles )
 
     {
+	TRACER_AUTO;
     if( aSelectedFiles && aSelectedFiles->MdcaCount() )
         {
         TPtrC filename( aSelectedFiles->MdcaPoint(0) ); // since muliselection is not allowed
@@ -249,6 +253,7 @@
 //
 TSize CAvatarSelectionHandler::DecodeSize(const TSize& aSize)
     {
+	TRACER_AUTO;
     // 1:1 is always valid ratio for decode scaling
     TInt lastValidRatio( 1);
     for (TInt ratio(KDecodeScaleRatioMin); ratio <= KDecodeScaleRatioMax; ratio<<= 1)
@@ -272,6 +277,7 @@
 //
 HBufC*  CAvatarSelectionHandler::HandleAvatarSelectionL(TInt aCommand )
     {
+	TRACER_AUTO;
     HBufC* selectedFile = NULL;
     switch (aCommand)
         {
@@ -352,7 +358,7 @@
 //
 void CAvatarSelectionHandler::ShowErrorL(TErrorType aErrorType)
     {
-
+	TRACER_AUTO;
     switch( aErrorType )
         {  
         case EProtected:
@@ -380,6 +386,7 @@
 //
 void CAvatarSelectionHandler::StoreMimeTypeL(const TDesC& aFilename)
     {
+	TRACER_AUTO;
     TUid dummyUid( KNullUid );
     TDataType dataType;
     User::LeaveIfError( iApaSession.AppForDocument(