camerauis/cameraapp/generic/GsCamcorderPlugin/src/GSCamdefaultnamesettingpage.cpp
branchRCL_3
changeset 7 dbec5787fa68
parent 0 1ddebce53859
child 10 8c55c525d5d7
equal deleted inserted replaced
3:8b2d6d0384b0 7:dbec5787fa68
     1 /*
     1 /*
     2 * Copyright (c) 2007 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".
    50                             aQueryValue ),
    50                             aQueryValue ),
    51       iNameBase( aNameBase ),
    51       iNameBase( aNameBase ),
    52       iMode( aMode ),
    52       iMode( aMode ),
    53       iCamera ( aCamera )
    53       iCamera ( aCamera )
    54     {
    54     {
       
    55     iNameSelected  = QueryValue()->CurrentValueIndex();
    55     }
    56     }
    56     
    57     
    57 
    58 
    58 // ---------------------------------------------------------------------------
    59 // ---------------------------------------------------------------------------
    59 // CGSCamDefaultNameSettingPage::~CGSCamDefaultNameSettingPage
    60 // CGSCamDefaultNameSettingPage::~CGSCamDefaultNameSettingPage
   102                 }
   103                 }
   103             User::LeaveIfError( leaveErr ); 
   104             User::LeaveIfError( leaveErr ); 
   104             return editorRet;
   105             return editorRet;
   105             }
   106             }
   106            
   107            
       
   108         }
       
   109     else  
       
   110         {
       
   111         // Cancelled
       
   112         QueryValue()->SetCurrentValueIndex( iNameSelected );
   107         }
   113         }
   108     return ETrue;
   114     return ETrue;
   109     }
   115     }
   110  
   116  
   111 // ---------------------------------------------------------------------------
   117 // ---------------------------------------------------------------------------