webengine/wrtharvester/inc/wrtusbhandler.h
changeset 15 60c5402cb945
parent 11 c8a366e56285
child 18 a758fa0cb043
equal deleted inserted replaced
11:c8a366e56285 15:60c5402cb945
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * ============================================================================
     3 * All rights reserved.
     3 *  Name        : WidgetMMCHandler.h
     4 * This component and the accompanying materials are made available
     4 *  Part of     : Widget Registry
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 *  Description : Acts on MMC card insertion/removal
     6 * which accompanies this distribution, and is available
     6 *  Version     : 3.1
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
     7 *
     9 * Initial Contributors:
     8 *  Copyright © 2008 Nokia Corporation.
    10 * Nokia Corporation - initial contribution.
     9 *  This material, including documentation and any related
    11 *
    10 *  computer programs, is protected by copyright controlled by
    12 * Contributors:
    11 *  Nokia Corporation. All rights are reserved. Copying,
    13 *
    12 *  including reproducing, storing, adapting or translating, any
    14 * Description:  Acts on MMC card insertion/removal
    13 *  or all of this material requires the prior written consent of
    15 *
    14 *  Nokia Corporation. This material also contains confidential
       
    15 *  information which may not be disclosed to others without the
       
    16 *  prior written consent of Nokia Corporation.
       
    17 * =============================================================================
    16 */
    18 */
    17 
       
    18 
    19 
    19 #ifndef WIDGETMMCHANDLER_H
    20 #ifndef WIDGETMMCHANDLER_H
    20 #define WIDGETMMCHANDLER_H
    21 #define WIDGETMMCHANDLER_H
    21 
    22 
    22 // INCLUDES
    23 // INCLUDES
    33 /*
    34 /*
    34  * Inherited CActive, performs a asynchronous conversion operation
    35  * Inherited CActive, performs a asynchronous conversion operation
    35  *
    36  *
    36  * @since 3.1
    37  * @since 3.1
    37  */
    38  */
    38 class CWidgetMMCHandler : public CActive
    39 class CWrtUsbHandler : public CActive
    39     {
    40     {
    40 public:
    41 public:
    41 
    42 
    42     static CWidgetMMCHandler* NewL( CWrtHarvester* aHarvester, RFs& aFs );
    43     static CWrtUsbHandler* NewL( CWrtHarvester* aHarvester, RFs& aFs );
    43 
    44 
    44     virtual ~CWidgetMMCHandler();
    45     virtual ~CWrtUsbHandler();
    45 
    46 
    46     void Start();
    47     void Start();
    47     void ToggleUSBMode();
    48     void ToggleUSBMode();
       
    49     void DoScanAndUpdate();
       
    50     void DeleteTimer();
    48 
    51 
    49 protected:
    52 protected:
    50 
    53 
    51     void RunL();
    54     void RunL();
    52 
    55 
    55     void DoCancel();
    58     void DoCancel();
    56 
    59 
    57 private:
    60 private:
    58 
    61 
    59     // no copy constructor
    62     // no copy constructor
    60     CWidgetMMCHandler( const CWidgetMMCHandler& );
    63     CWrtUsbHandler( const CWrtUsbHandler& );
    61     // no assignment
    64     // no assignment
    62     CWidgetMMCHandler& operator=( const CWidgetMMCHandler& );
    65     CWrtUsbHandler& operator=( const CWrtUsbHandler& );
    63 
    66 
    64     CWidgetMMCHandler( CWrtHarvester* aHarvester, RFs& aFs );
    67     CWrtUsbHandler( CWrtHarvester* aHarvester, RFs& aFs );
    65 
    68 
    66     void ConstructL();
    69     void ConstructL();
    67 
    70 
    68     TInt ScanDrives( TInt& aDriveFlags );
    71     TInt ScanDrives( TInt& aDriveFlags );
    69 
    72 
    71     
    74     
    72     CWrtHarvester* iHarvester;
    75     CWrtHarvester* iHarvester;
    73     RFs iFs;
    76     RFs iFs;
    74 
    77 
    75     TInt iDriveFlags;
    78     TInt iDriveFlags;
       
    79     CPeriodic* iCallBackTimer;
    76 
    80 
    77     };
    81     };
    78 
    82 
    79 #endif // #ifndef WIDGETMMCHANDLER_H
    83 #endif // #ifndef WIDGETMMCHANDLER_H