|
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 "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: Widget runtime type for AppMngr2 |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2WIDGETRUNTIME_H |
|
20 #define C_APPMNGR2WIDGETRUNTIME_H |
|
21 |
|
22 #include <appmngr2runtime.h> // CAppMngr2Runtime |
|
23 #include <WidgetRegistryClient.h> // RWidgetRegistryClientSession |
|
24 |
|
25 class CAppMngr2PackageInfo; |
|
26 class CAknIconArray; |
|
27 |
|
28 const TInt KAppMngr2WidgetUidValue = 0x20016BFA; |
|
29 const TUid KAppMngr2WidgetUid = { KAppMngr2WidgetUidValue }; |
|
30 |
|
31 _LIT8( KDataTypeWidget, "application/x-nokia-widget" ); |
|
32 |
|
33 |
|
34 class CAppMngr2WidgetRuntime : public CAppMngr2Runtime |
|
35 { |
|
36 public: // constructor and destructor |
|
37 static CAppMngr2WidgetRuntime* NewL( MAppMngr2RuntimeObserver& aObserver ); |
|
38 ~CAppMngr2WidgetRuntime(); |
|
39 |
|
40 public: // new CAppMngr2Runtime |
|
41 void LoadIconsL( CAknIconArray& aIconArray ); |
|
42 void GetSupportedDataTypesL( CDataTypeArray& aDataTypeArray ); |
|
43 void GetInstallationFilesL( RPointerArray<CAppMngr2PackageInfo>& aPackageInfos, |
|
44 const RPointerArray<CAppMngr2RecognizedFile>& aFileList, |
|
45 RFs& aFsSession, TRequestStatus& aStatus ); |
|
46 void CancelGetInstallationFiles(); |
|
47 void GetInstalledAppsL( RPointerArray<CAppMngr2AppInfo>& aApps, |
|
48 RFs& aFsSession, TRequestStatus& aStatus ); |
|
49 void CancelGetInstalledApps(); |
|
50 |
|
51 private: // new functions |
|
52 CAppMngr2WidgetRuntime( MAppMngr2RuntimeObserver& aObserver ); |
|
53 void ConstructL(); |
|
54 |
|
55 private: // data |
|
56 TInt iIconCount; |
|
57 TInt iIconOffset; |
|
58 RWidgetRegistryClientSession iWidgetRegistry; |
|
59 }; |
|
60 |
|
61 #endif // C_APPMNGR2WIDGETRUNTIME_H |
|
62 |