iaupdate/IAD/ui/src/iaupdatesession.cpp
branchRCL_3
changeset 34 741e5bba2bd1
parent 0 ba25891c3a9e
equal deleted inserted replaced
28:98a43fae6e2b 34:741e5bba2bd1
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    34 #include "iaupdatelauncheruids.h"
    34 #include "iaupdatelauncheruids.h"
    35 #include "iaupdatedebug.h"
    35 #include "iaupdatedebug.h"
    36 
    36 
    37 // CONSTANTS
    37 // CONSTANTS
    38 const TSecureId KSIDBackgroundChecker = 0x200211f4;
    38 const TSecureId KSIDBackgroundChecker = 0x200211f4;
       
    39 const TSecureId KSIDCwrtWidget = 0x200267C0;
    39 const TSecureId KSIDLauncher = KIAUpdateLauncherUid;
    40 const TSecureId KSIDLauncher = KIAUpdateLauncherUid;
    40 // ============================ MEMBER FUNCTIONS ===============================
    41 // ============================ MEMBER FUNCTIONS ===============================
    41 
    42 
    42 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    43 // CIAUpdateSession::CIAUpdateSession
    44 // CIAUpdateSession::CIAUpdateSession
   321         // Do not destroy, because ownership of params is transferred
   322         // Do not destroy, because ownership of params is transferred
   322         // below.
   323         // below.
   323         CleanupStack::Pop( params );
   324         CleanupStack::Pop( params );
   324         CleanupStack::PopAndDestroy( data );
   325         CleanupStack::PopAndDestroy( data );
   325         
   326         
   326         if ( aMessage.SecureId() != KSIDBackgroundChecker )      
   327         if ( ( aMessage.SecureId() != KSIDBackgroundChecker ) && ( aMessage.SecureId() != KSIDCwrtWidget ) )      
   327             {
   328             {
   328             // other processes than backroundchecker are not allowed to cause refresh from network 
   329             // other processes than backroundchecker are not allowed to cause refresh from network 
   329             params->SetRefresh( EFalse );
   330             params->SetRefresh( EFalse );
   330             }
   331             }
   331         switch( functionId )
   332         switch( functionId )
   332             {
   333             {
   333             case IAUpdateClientDefines::EIAUpdateServerCheckUpdates:
   334             case IAUpdateClientDefines::EIAUpdateServerCheckUpdates:
   334                 appUi->CheckUpdatesRequestL( *this, params );
   335                 appUi->CheckUpdatesRequestL( *this, params, params->Refresh() && aMessage.SecureId() == KSIDCwrtWidget );
   335                 break;
   336                 break;
   336 
   337 
   337             case IAUpdateClientDefines::EIAUpdateServerShowUpdates:
   338             case IAUpdateClientDefines::EIAUpdateServerShowUpdates:
   338                 appUi->ShowUpdatesRequestL( *this, params );
   339                 appUi->ShowUpdatesRequestL( *this, params );
   339                 break;
   340                 break;