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 PackageInfo represents installable ZIP files |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2WIDGETPACKAGEINFO_H |
|
20 #define C_APPMNGR2WIDGETPACKAGEINFO_H |
|
21 |
|
22 #include <appmngr2packageinfo.h> // CAppMngr2PackageInfo |
|
23 #include <SWInstApi.h> // SwiUI::RSWInstLauncher |
|
24 |
|
25 |
|
26 class CAppMngr2WidgetPackageInfo : public CAppMngr2PackageInfo |
|
27 { |
|
28 public: // constructor and destructor |
|
29 static CAppMngr2WidgetPackageInfo* NewL( CAppMngr2Runtime& aRuntime, |
|
30 const TDesC& aFileName, RFs& aFs ); |
|
31 ~CAppMngr2WidgetPackageInfo(); |
|
32 |
|
33 public: // from CAppMngr2PackageInfo |
|
34 TInt IconIndex() const; |
|
35 const TDesC& Name() const; |
|
36 const TDesC& Details() const; |
|
37 TBool SupportsGenericCommand( TInt aCmdId ); |
|
38 void HandleCommandL( TInt aCommandId, TRequestStatus& aStatus ); |
|
39 void HandleCommandResultL( TInt aStatus ); |
|
40 void CancelCommand(); |
|
41 |
|
42 private: // new functions |
|
43 CAppMngr2WidgetPackageInfo( CAppMngr2Runtime& aRuntime, RFs& aFs ); |
|
44 void ConstructL( const TDesC& aFileName ); |
|
45 |
|
46 private: // new functions |
|
47 void ShowDetailsL(); |
|
48 |
|
49 private: // data |
|
50 HBufC* iName; |
|
51 HBufC* iDetails; |
|
52 HBufC* iFileName; |
|
53 SwiUI::RSWInstLauncher* iSWInstLauncher; |
|
54 }; |
|
55 |
|
56 #endif // C_APPMNGR2WIDGETPACKAGEINFO_H |
|
57 |
|