|
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 // FORWARD DECLARATIONS |
|
28 |
|
29 /** |
|
30 * This class handles registration and deregistration during widget |
|
31 * installation. |
|
32 * |
|
33 * @lib WidgetInstallerUI |
|
34 * @since 3.1 |
|
35 */ |
|
36 NONSHARABLE_CLASS(CWidgetRegistrationManager): public CBase |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CWidgetRegistrationManager* NewL( RFs& aFs ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CWidgetRegistrationManager(); |
|
49 |
|
50 public: // new functions |
|
51 |
|
52 /** |
|
53 * Register installed widget as non native app |
|
54 * @since 3.1 |
|
55 * @param aWidgetEntry: A widget entry to be registered |
|
56 * return void |
|
57 */ |
|
58 void RegisterWidgetL( const TDesC& aMainHTML, |
|
59 const TDesC& aBundleDisplayName, |
|
60 const TDesC& aIconPath, |
|
61 const TDesC& aDriveName, |
|
62 const TUid& aUid ); |
|
63 |
|
64 /** |
|
65 * deregister installed widget as non native app |
|
66 * @since 3.1 |
|
67 * @param aUid - the UID of widget to be unisntalled |
|
68 * @return void |
|
69 */ |
|
70 void DeregisterWidgetL( const TUid& aUid ); |
|
71 |
|
72 |
|
73 protected: // constructors |
|
74 |
|
75 /** |
|
76 * C++ Constructor. |
|
77 */ |
|
78 CWidgetRegistrationManager( RFs& aFs ); |
|
79 |
|
80 /** |
|
81 * 2nd phase constructor. |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: |
|
86 |
|
87 RFs iFs; //Not owned |
|
88 }; |
|
89 |
|
90 #endif |