iaupdate/IAD/ui/src/iaupdatenodefilter.cpp
branchRCL_3
changeset 22 0817e13c927e
parent 0 ba25891c3a9e
child 44 329d304c1aa1
child 52 92f864ef0288
equal deleted inserted replaced
19:7ca52d38f8c3 22:0817e13c927e
     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".
   202                 { //UID or search criteria given, firmware updates are not shown at all
   202                 { //UID or search criteria given, firmware updates are not shown at all
   203                 aFwNodes.Reset();
   203                 aFwNodes.Reset();
   204                 }
   204                 }
   205             else
   205             else
   206                 {
   206                 {
       
   207                 if ( aFwNodes.Count() == 1 && aFwNodes[0]->FwType() == MIAUpdateFwNode::EFotiNsu )
       
   208                     {
       
   209                     aFwNodes[0]->Base().SetSelected( EFalse );
       
   210                     }
       
   211                 else
       
   212                     {
       
   213                     for ( TInt i = 0; i < aFwNodes.Count(); ++i )   
       
   214                         {
       
   215                         aFwNodes[i]->Base().SetSelected( ETrue );
       
   216                         }
       
   217                     for ( TInt i = 0; i < aNodes.Count(); ++i )   
       
   218                         {
       
   219                         aNodes[i]->Base().SetSelected( EFalse );
       
   220                         }
       
   221                     }
       
   222                 }
       
   223             }
       
   224         else
       
   225             {
       
   226             if ( aFwNodes.Count() == 1 && aFwNodes[0]->FwType() == MIAUpdateFwNode::EFotiNsu )
       
   227                 {
       
   228                 aFwNodes[0]->Base().SetSelected( EFalse );
       
   229                 }
       
   230             else
       
   231                 {
   207                 for ( TInt i = 0; i < aFwNodes.Count(); ++i )   
   232                 for ( TInt i = 0; i < aFwNodes.Count(); ++i )   
   208                     {
   233                     {
   209                     aFwNodes[i]->Base().SetSelected( ETrue );
   234                     aFwNodes[i]->Base().SetSelected( ETrue );
   210                     }
   235                     }
   211                 for ( TInt i = 0; i < aNodes.Count(); ++i )   
   236                 for ( TInt i = 0; i < aNodes.Count(); ++i )   
   212                     {
   237                     {
   213                     aNodes[i]->Base().SetSelected( EFalse );
   238                     aNodes[i]->Base().SetSelected( EFalse );
   214                     }
   239                     }
   215                 }
       
   216             }
       
   217         else
       
   218             {
       
   219             for ( TInt i = 0; i < aFwNodes.Count(); ++i )   
       
   220                 {
       
   221                 aFwNodes[i]->Base().SetSelected( ETrue );
       
   222                 }
       
   223             for ( TInt i = 0; i < aNodes.Count(); ++i )   
       
   224                 {
       
   225                 aNodes[i]->Base().SetSelected( EFalse );
       
   226                 }
   240                 }
   227             }
   241             }
   228         }
   242         }
   229     else
   243     else
   230         {
   244         {