webengine/widgetregistry/Server/inc/WidgetMMCHandler.h
branchRCL_3
changeset 49 919f36ff910f
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
       
     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:  This file contains the header file of the CWidgetEntry class.
       
    15 *
       
    16 *                This class implements the CWidgetEntry class.
       
    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 <apgnotif.h>
       
    28 #include "WidgetRegistryLog.h"
       
    29 
       
    30 // FORWARD DECLARATION
       
    31 class CWidgetRegistry;
       
    32 
       
    33 /*
       
    34  * Inherited CActive, performs a asynchronous conversion operation
       
    35  *
       
    36  * @since 3.1
       
    37  */
       
    38 class CWidgetMMCHandler : public CActive, public MApaAppListServObserver
       
    39     {
       
    40 public:
       
    41 
       
    42     static CWidgetMMCHandler* NewL( CWidgetRegistry& aRegistry, RFs& aFs );
       
    43 
       
    44     virtual ~CWidgetMMCHandler();
       
    45 
       
    46     void Start();
       
    47     
       
    48     //from MApaAppListServObserver
       
    49     void HandleAppListEvent(TInt aEvent);
       
    50 
       
    51 protected:
       
    52 
       
    53     void RunL();
       
    54 
       
    55     TInt RunError( TInt aError );
       
    56 
       
    57     void DoCancel();
       
    58 
       
    59 private:
       
    60 
       
    61     // no copy constructor
       
    62     CWidgetMMCHandler( const CWidgetMMCHandler& );
       
    63     // no assignment
       
    64     CWidgetMMCHandler& operator=( const CWidgetMMCHandler& );
       
    65 
       
    66     CWidgetMMCHandler( CWidgetRegistry& aRegistry, RFs& aFs );
       
    67 
       
    68     void ConstructL();
       
    69 
       
    70     TInt ScanDrives( TInt& aDriveFlags );
       
    71 
       
    72     CWidgetRegistry* iRegistry; // not owned
       
    73     RFs iFs;
       
    74 
       
    75     TInt iDriveFlags;
       
    76     
       
    77     TInt iDeltaDriveFlags;
       
    78     
       
    79     CApaAppListNotifier* iApaAppListNotifier;
       
    80 
       
    81 public:
       
    82 
       
    83     LOG_MEMBER_VARS
       
    84     };
       
    85 
       
    86 #endif // #ifndef WIDGETMMCHANDLER_H