webengine/wrtharvester/inc/wrtusbhandler.h
changeset 11 c8a366e56285
child 15 60c5402cb945
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Acts on MMC card insertion/removal
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WIDGETMMCHANDLER_H
       
    20 #define WIDGETMMCHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 #include "wrtharvester.h"
       
    27 //hb
       
    28 #include "wrtharvesterpsnotifier.h"
       
    29 
       
    30 // FORWARD DECLARATION
       
    31 class CWrtHarvester;
       
    32 
       
    33 /*
       
    34  * Inherited CActive, performs a asynchronous conversion operation
       
    35  *
       
    36  * @since 3.1
       
    37  */
       
    38 class CWidgetMMCHandler : public CActive
       
    39     {
       
    40 public:
       
    41 
       
    42     static CWidgetMMCHandler* NewL( CWrtHarvester* aHarvester, RFs& aFs );
       
    43 
       
    44     virtual ~CWidgetMMCHandler();
       
    45 
       
    46     void Start();
       
    47     void ToggleUSBMode();
       
    48 
       
    49 protected:
       
    50 
       
    51     void RunL();
       
    52 
       
    53     TInt RunError( TInt aError );
       
    54 
       
    55     void DoCancel();
       
    56 
       
    57 private:
       
    58 
       
    59     // no copy constructor
       
    60     CWidgetMMCHandler( const CWidgetMMCHandler& );
       
    61     // no assignment
       
    62     CWidgetMMCHandler& operator=( const CWidgetMMCHandler& );
       
    63 
       
    64     CWidgetMMCHandler( CWrtHarvester* aHarvester, RFs& aFs );
       
    65 
       
    66     void ConstructL();
       
    67 
       
    68     TInt ScanDrives( TInt& aDriveFlags );
       
    69 
       
    70    // CWidgetRegistry* iRegistry; // not owned
       
    71     
       
    72     CWrtHarvester* iHarvester;
       
    73     RFs iFs;
       
    74 
       
    75     TInt iDriveFlags;
       
    76 
       
    77     };
       
    78 
       
    79 #endif // #ifndef WIDGETMMCHANDLER_H