widgets/widgetinstaller/inc/WidgetRegistrationManager.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 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 is defines CWidgetRegistrationManager which handles registration of
       
    15 *                widgets
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef WIDGETREGISTRATIONMANAGER_H
       
    21 #define WIDGETREGISTRATIONMANAGER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 namespace SwiUI
       
    28 {
       
    29 // FORWARD DECLARATIONS
       
    30 class MConverterController;
       
    31 
       
    32 /**
       
    33 * This class handles registration and deregistration during widget
       
    34 * installation.
       
    35 *
       
    36 * @lib WidgetInstallerUI
       
    37 * @since 3.1
       
    38 */
       
    39 class CWidgetRegistrationManager: public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static CWidgetRegistrationManager* NewL( RFs& aFs );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         ~CWidgetRegistrationManager();
       
    52 
       
    53     public: // new functions
       
    54 
       
    55         /**
       
    56         * Register installed widget as non native app
       
    57         * @since 3.1
       
    58         * @param aWidgetEntry: A widget entry to be registered
       
    59         * return void
       
    60         */
       
    61         void RegisterWidgetL( const TDesC& aMainHTML,
       
    62                               const TDesC& aBundleDisplayName,
       
    63                               const TDesC& aIconPath,
       
    64                               const TDesC& aDriveName,
       
    65                               const TUid& aUid );
       
    66 
       
    67         /**
       
    68         * deregister installed widget as non native app
       
    69         * @since 3.1
       
    70         * @param aUid - the UID of widget to be unisntalled
       
    71         * @return void
       
    72         */
       
    73         void DeregisterWidgetL( const TUid& aUid );
       
    74 
       
    75 
       
    76     protected:  // constructors
       
    77 
       
    78         /**
       
    79         * C++ Constructor.
       
    80         */
       
    81         CWidgetRegistrationManager( RFs& aFs );
       
    82 
       
    83         /**
       
    84         * 2nd phase constructor.
       
    85         */
       
    86         void ConstructL();
       
    87 
       
    88     private:
       
    89 
       
    90        RFs 				iFs; //Not owned
       
    91     };
       
    92 }
       
    93 
       
    94 #endif