webengine/widgetregistry/Server/inc/WidgetMMCHandler.h
changeset 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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 "WidgetRegistryLog.h"
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class CWidgetRegistry;
       
    30 
       
    31 /*
       
    32  * Inherited CActive, performs a asynchronous conversion operation
       
    33  *
       
    34  * @since 3.1
       
    35  */
       
    36 class CWidgetMMCHandler : public CActive
       
    37     {
       
    38 public:
       
    39 
       
    40     static CWidgetMMCHandler* NewL( CWidgetRegistry& aRegistry, RFs& aFs );
       
    41 
       
    42     virtual ~CWidgetMMCHandler();
       
    43 
       
    44     void Start();
       
    45 
       
    46 protected:
       
    47 
       
    48     void RunL();
       
    49 
       
    50     TInt RunError( TInt aError );
       
    51 
       
    52     void DoCancel();
       
    53 
       
    54 private:
       
    55 
       
    56     // no copy constructor
       
    57     CWidgetMMCHandler( const CWidgetMMCHandler& );
       
    58     // no assignment
       
    59     CWidgetMMCHandler& operator=( const CWidgetMMCHandler& );
       
    60 
       
    61     CWidgetMMCHandler( CWidgetRegistry& aRegistry, RFs& aFs );
       
    62 
       
    63     void ConstructL();
       
    64 
       
    65     TInt ScanDrives( TInt& aDriveFlags );
       
    66 
       
    67     CWidgetRegistry* iRegistry; // not owned
       
    68     RFs iFs;
       
    69 
       
    70     TInt iDriveFlags;
       
    71 
       
    72 public:
       
    73 
       
    74     LOG_MEMBER_VARS
       
    75     };
       
    76 
       
    77 #endif // #ifndef WIDGETMMCHANDLER_H