phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherplugin.cpp
branchRCL_3
changeset 14 81f8547efd4f
parent 3 04ab22b956c2
child 23 5586b4d2ec3e
--- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherplugin.cpp	Fri Feb 19 22:40:27 2010 +0200
+++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherplugin.cpp	Fri Mar 12 15:41:25 2010 +0200
@@ -18,7 +18,6 @@
 
 #include "ccappcommlauncherheaders.h"
 #include <phonebook2ece.mbg>
-#include "ccappcommlaunchersetdefault.h"
 
 
 #include <mccappengine.h>
@@ -75,14 +74,8 @@
     delete iMenuHandler;
 
     delete iContactHandler;
-    delete iSetDefault;
     delete iContactorService;
     
-    if ( iWaitFinish && iWaitFinish->IsStarted() )
-       {
-       iWaitFinish->AsyncStop();
-       }
-    delete iWaitFinish;
     
     delete iAiwRequestTimer;
 
@@ -107,8 +100,6 @@
     {
     CCA_DP(KCommLauncherLogFile, CCA_L("ConstructL()"));
     // ConstructL should be as light as possible.
-    iWaitFinish = new (ELeave) CActiveSchedulerWait();
-    iSetDefault = CCCAppCommLauncherLSetDefault::NewL(*this);
     }
 
 // ---------------------------------------------------------------------------
@@ -134,11 +125,7 @@
     InitialisePreferredCommMethods();
 
     BaseConstructL( R_COMMLAUNCHER_VIEW );
-    
-    // Set default for Voice call and Message
-    // Not auto setting default for now
-    // iSetDefault->ExecuteAssignDefaultL();
-    // iWaitFinish->Start();
+   
 
     CCA_DP(KCommLauncherLogFile, CCA_L("<-CCCAppCommLauncherPlugin::PreparePluginViewL()"));
     }
@@ -398,18 +385,6 @@
     }
 
 // ---------------------------------------------------------------------------
-// CCCAppCommLauncherPlugin::DefaultSettingComplete
-// ---------------------------------------------------------------------------
-//
-void CCCAppCommLauncherPlugin::DefaultSettingComplete()
-	{
-	if ( iWaitFinish && iWaitFinish->IsStarted() )
-	   {
-	   iWaitFinish->AsyncStop();
-	   }
-	}
-
-// ---------------------------------------------------------------------------
 // CCCAppCommLauncherPlugin::StartTimerL
 // ---------------------------------------------------------------------------
 //
@@ -449,7 +424,7 @@
 //
 TBool CCCAppCommLauncherPlugin::IsTopContactL()
     {
-    return EFalse;//todo
+    return iContactHandler->IsTopContact();
     }
 
 // ---------------------------------------------------------------------------