webengine/wrtharvester/inc/wrtusbhandler.h
branchRCL_3
changeset 62 c711bdda59f4
parent 59 1f3c3f2f5b0a
child 64 ac77f89b1d9e
equal deleted inserted replaced
59:1f3c3f2f5b0a 62:c711bdda59f4
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WIDGETMMCHANDLER_H
       
    19 #define WIDGETMMCHANDLER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 #include "wrtharvester.h"
       
    26 //hb
       
    27 #include "wrtharvesterpsnotifier.h"
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 class CWrtHarvester;
       
    31 
       
    32 /*
       
    33  * Inherited CActive, performs a asynchronous conversion operation
       
    34  *
       
    35  * @since 3.1
       
    36  */
       
    37 class CWrtUsbHandler : public CActive
       
    38     {
       
    39 public:
       
    40 
       
    41     static CWrtUsbHandler* NewL( CWrtHarvester* aHarvester, RFs& aFs );
       
    42 
       
    43     virtual ~CWrtUsbHandler();
       
    44 
       
    45     void Start();
       
    46     void DoScanAndUpdate();   
       
    47 
       
    48 protected:
       
    49 
       
    50     void RunL();
       
    51 
       
    52     TInt RunError( TInt aError );
       
    53 
       
    54     void DoCancel();
       
    55 
       
    56 private:
       
    57 
       
    58     // no copy constructor
       
    59     CWrtUsbHandler( const CWrtUsbHandler& );
       
    60     // no assignment
       
    61     CWrtUsbHandler& operator=( const CWrtUsbHandler& );
       
    62 
       
    63     CWrtUsbHandler( CWrtHarvester* aHarvester, RFs& aFs );
       
    64 
       
    65     void ConstructL();
       
    66 
       
    67     TInt ScanDrives( TInt& aDriveFlags );
       
    68 
       
    69    // CWidgetRegistry* iRegistry; // not owned
       
    70     
       
    71     CWrtHarvester* iHarvester;
       
    72     RFs iFs;
       
    73 
       
    74     TInt iDriveFlags;
       
    75     };
       
    76 
       
    77 #endif // #ifndef WIDGETMMCHANDLER_H