webengine/wrtharvester/src/wrtusbhandler.cpp
changeset 42 d39add9822e2
parent 38 6297cdf66332
child 46 ea4b2e4f7cac
child 65 5bfc169077b2
equal deleted inserted replaced
38:6297cdf66332 42:d39add9822e2
     1 //
     1 /*
     2 // ============================================================================
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     3 //  Name     : WidgetMMCHandler.cpp
     3 * All rights reserved.
     4 //  Part of  : SW Installer UIs / WidgetInstallerUI
     4 * This component and the accompanying materials are made available
     5 //
     5 * under the terms of "Eclipse Public License v1.0"
     6 //  Description: Handle notifications of MMC events.
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     8 *
     9 //  Version     : 3.1
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 //  Copyright © 2006 Nokia Corporation.
    11 *
    12 //  This material, including documentation and any related
    12 * Contributors:
    13 //  computer programs, is protected by copyright controlled by
    13 *
    14 //  Nokia Corporation. All rights are reserved. Copying,
    14 * Description:  Handle notifications of MMC events.
    15 //  including reproducing, storing, adapting or translating, any
    15 *
    16 //  or all of this material requires the prior written consent of
    16 *
    17 //  Nokia Corporation. This material also contains confidential
    17 *
    18 //  information which may not be disclosed to others without the
    18 */
    19 //  prior written consent of Nokia Corporation.
    19 
    20 // ==============================================================================
       
    21 ///
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include "wrtusbhandler.h"
    20 #include "wrtusbhandler.h"
    25 #include "wrtharvester.h"
    21 #include "wrtharvester.h"
    26 #include "wrtusbhandler.h"
    22 #include "wrtusbhandler.h"
    27 #include <DriveInfo.h>
    23 #include <DriveInfo.h>
    28 
    24 
   168                 }
   164                 }
   169               else
   165               else
   170                 {
   166                 {
   171                 // Mass storage was unplugged
   167                 // Mass storage was unplugged
   172                 if(iHarvester->IsInMSMode() == 1)
   168                 if(iHarvester->IsInMSMode() == 1)
   173                   {            
   169                   {
   174                   iHarvester->ClearAllOperations();
   170                   iHarvester->SetMSMode(0);	            
   175                   iHarvester->SetRegistryAccess(EFalse);
   171                   iHarvester->ClearAllOperations();                  
   176                   }
   172                   }
   177                 }
   173                 }
   178               }
   174               }
   179         }
   175         }
   180     }
   176     }