1 /* |
|
2 * Copyright (c) 2002-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: SisxAppInfo represents installed native/SISX applications |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2SISXAPPINFO_H |
|
20 #define C_APPMNGR2SISXAPPINFO_H |
|
21 |
|
22 #include <appmngr2appinfo.h> // CAppMngr2AppInfo |
|
23 #include <swi/sisregistryentry.h> // RSisRegistryEntry |
|
24 #include <SWInstApi.h> // SwiUI::RSWInstLauncher |
|
25 #include <CUIDetailsDialog.h> // SwiUI::CommonUI::CCUICertificateInfo |
|
26 #include <f32file.h> // TDriveUnit |
|
27 |
|
28 |
|
29 class CAppMngr2SisxAppInfo : public CAppMngr2AppInfo |
|
30 { |
|
31 public: // constructor and destructor |
|
32 static CAppMngr2SisxAppInfo* NewL( CAppMngr2Runtime& aRuntime, |
|
33 Swi::RSisRegistryEntry& aEntry, RFs& aFsSession ); |
|
34 ~CAppMngr2SisxAppInfo(); |
|
35 |
|
36 public: // from CAppMngr2InfoBase |
|
37 TInt IconIndex() const; |
|
38 const TDesC& Name() const; |
|
39 const TDesC& Details() const; |
|
40 TBool SupportsGenericCommand( TInt aCmdId ); |
|
41 void HandleCommandL( TInt aCommandId, TRequestStatus& aStatus ); |
|
42 void HandleCommandResultL( TInt aStatus ); |
|
43 void CancelCommand(); |
|
44 |
|
45 public: // new functions |
|
46 TVersion Version() const; |
|
47 const TDesC& Vendor() const; |
|
48 TBool IsTrusted() const; |
|
49 |
|
50 protected: // new functions |
|
51 CAppMngr2SisxAppInfo( CAppMngr2Runtime& aRuntime, RFs& aFsSession ); |
|
52 void ConstructL( Swi::RSisRegistryEntry& aEntry ); |
|
53 |
|
54 private: // new functions |
|
55 void ShowDetailsL(); |
|
56 void ReadCertificatesL(); |
|
57 void HandleUninstallL( TRequestStatus& aStatus ); |
|
58 |
|
59 private: // data |
|
60 TUid iAppUid; |
|
61 HBufC* iName; |
|
62 HBufC* iDetails; |
|
63 TVersion iVersion; |
|
64 HBufC* iVendor; |
|
65 TBool iIsAugmentation; |
|
66 TInt iAugmentationIndex; |
|
67 TBool iIsTrusted; |
|
68 TBool iIsDRMProtected; |
|
69 TBool iIsRightsObjectMissingOrExpired; |
|
70 HBufC* iProtectedFile; |
|
71 SwiUI::RSWInstLauncher* iSWInstLauncher; |
|
72 HBufC8* iSWInstLauncherCustomUninstallParams; |
|
73 RPointerArray<SwiUI::CommonUI::CCUICertificateInfo> iCertificates; |
|
74 TBool iCertsRead; |
|
75 TInt iCommandId; |
|
76 }; |
|
77 |
|
78 #endif // C_APPMNGR2SISXAPPINFO_H |
|
79 |
|