convergedconnectionhandler/cchclientapi/cchuinotif/src/cchuinotifier.cpp
branchRCL_3
changeset 16 6134b5029079
parent 15 ed1e38b404e5
--- a/convergedconnectionhandler/cchclientapi/cchuinotif/src/cchuinotifier.cpp	Wed Mar 31 21:20:05 2010 +0300
+++ b/convergedconnectionhandler/cchclientapi/cchuinotif/src/cchuinotifier.cpp	Wed Apr 14 15:49:55 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -29,6 +29,8 @@
 #include <cenrepnotifyhandler.h>
 #include <CoreApplicationUIsSDKCRKeys.h> // KCRUidCoreApplicationUIs, 
                                          // KCoreAppUIsNetworkConnectionAllowed
+#include <AknNotiferAppServerApplication.h>  // Application Key enable/disable
+
 #include "cchuilogger.h"
 #include "cchuinotifier.h"
 #include "cchuinotifconnectionhandler.h"
@@ -41,7 +43,8 @@
 
 // ======== MEMBER FUNCTIONS ========
 
-CCCHUiNotifierBase::CCCHUiNotifierBase(): CActive(EPriorityStandard)
+CCCHUiNotifierBase::CCCHUiNotifierBase(): 
+    CActive(EPriorityStandard), iAppKeyBlocked( EFalse )
     {
     CActiveScheduler::Add(this);
     }
@@ -78,6 +81,13 @@
 CCCHUiNotifierBase::~CCCHUiNotifierBase()
     {
     CCHUIDEBUG( "CCCHUiNotifierBase::~CCCHUiNotifierBase - IN" );
+    
+    if( iAppKeyBlocked )
+        {
+        (void) ((CAknNotifierAppServerAppUi*)
+            iEikEnv->EikAppUi())->SuppressAppSwitching(EFalse);    
+        }
+    
     Cancel();    
     
     delete iSettings;
@@ -170,7 +180,7 @@
 // ---------------------------------------------------------------------------
 //
 void CCCHUiNotifierBase::StartL( 
-    const TDesC8& aBuffer, 
+    const TDesC8& /*aBuffer*/, 
     TInt aReplySlot, 
     const RMessagePtr2& aMessage )
     {