webengine/wrtharvester/inc/wrtusbhandler.h
branchRCL_3
changeset 48 79859ed3eea9
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : WidgetMMCHandler.h
       
     4 *  Part of     : Widget Registry
       
     5 *  Description : Acts on MMC card insertion/removal
       
     6 *  Version     : 3.1
       
     7 *
       
     8 *  Copyright © 2008 Nokia Corporation.
       
     9 *  This material, including documentation and any related
       
    10 *  computer programs, is protected by copyright controlled by
       
    11 *  Nokia Corporation. All rights are reserved. Copying,
       
    12 *  including reproducing, storing, adapting or translating, any
       
    13 *  or all of this material requires the prior written consent of
       
    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 * =============================================================================
       
    18 */
       
    19 
       
    20 #ifndef WIDGETMMCHANDLER_H
       
    21 #define WIDGETMMCHANDLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include <f32file.h>
       
    27 #include "wrtharvester.h"
       
    28 //hb
       
    29 #include "wrtharvesterpsnotifier.h"
       
    30 
       
    31 // FORWARD DECLARATION
       
    32 class CWrtHarvester;
       
    33 
       
    34 /*
       
    35  * Inherited CActive, performs a asynchronous conversion operation
       
    36  *
       
    37  * @since 3.1
       
    38  */
       
    39 class CWrtUsbHandler : public CActive
       
    40     {
       
    41 public:
       
    42 
       
    43     static CWrtUsbHandler* NewL( CWrtHarvester* aHarvester, RFs& aFs );
       
    44 
       
    45     virtual ~CWrtUsbHandler();
       
    46 
       
    47     void Start();
       
    48     void ToggleUSBMode();
       
    49     void DoScanAndUpdate();
       
    50     void DeleteTimer();
       
    51 
       
    52 protected:
       
    53 
       
    54     void RunL();
       
    55 
       
    56     TInt RunError( TInt aError );
       
    57 
       
    58     void DoCancel();
       
    59 
       
    60 private:
       
    61 
       
    62     // no copy constructor
       
    63     CWrtUsbHandler( const CWrtUsbHandler& );
       
    64     // no assignment
       
    65     CWrtUsbHandler& operator=( const CWrtUsbHandler& );
       
    66 
       
    67     CWrtUsbHandler( CWrtHarvester* aHarvester, RFs& aFs );
       
    68 
       
    69     void ConstructL();
       
    70 
       
    71     TInt ScanDrives( TInt& aDriveFlags );
       
    72 
       
    73    // CWidgetRegistry* iRegistry; // not owned
       
    74     
       
    75     CWrtHarvester* iHarvester;
       
    76     RFs iFs;
       
    77 
       
    78     TInt iDriveFlags;
       
    79     CPeriodic* iCallBackTimer;
       
    80 
       
    81     };
       
    82 
       
    83 #endif // #ifndef WIDGETMMCHANDLER_H