17 |
17 |
18 #ifndef STARTUPLISTUPDATER_H |
18 #ifndef STARTUPLISTUPDATER_H |
19 #define STARTUPLISTUPDATER_H |
19 #define STARTUPLISTUPDATER_H |
20 |
20 |
21 #include <e32base.h> // CBase |
21 #include <e32base.h> // CBase |
22 #include <f32file.h> // RFs |
22 #include <f32file.h> // RFs, RFile |
23 #include <dscstore.h> // RDscStore |
23 #include <dscstore.h> // RDscStore |
24 |
24 |
25 namespace Swi |
25 namespace Swi |
26 { |
26 { |
|
27 class RSisRegistrySession; |
27 class RSisRegistryEntry; |
28 class RSisRegistryEntry; |
28 } |
29 } |
29 |
30 |
30 class CStartupListUpdater : public CBase |
31 class CStartupListUpdater : public CBase |
31 { |
32 { |
49 void ImportExecutablesL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray ); |
50 void ImportExecutablesL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray ); |
50 void RemoveImportedResourceFiles( RPointerArray<HBufC>& aResourceFileArray ); |
51 void RemoveImportedResourceFiles( RPointerArray<HBufC>& aResourceFileArray ); |
51 void AppendExecutablesFromResourceFileL( const TDesC& aResourceFile, |
52 void AppendExecutablesFromResourceFileL( const TDesC& aResourceFile, |
52 RPointerArray<HBufC>& aExecutableArray ); |
53 RPointerArray<HBufC>& aExecutableArray ); |
53 TBool IsValidExecutableForStartupL( const TDesC& aResourceFile, |
54 TBool IsValidExecutableForStartupL( const TDesC& aResourceFile, |
54 const TDesC& aExecutableName ); |
55 const TDesC& aExecutableName ); |
|
56 void ExtractPackageUidFromResourceFileL( const TDesC& aResourceFile, |
|
57 TUid& aPackageUid ); |
|
58 TBool IsResourceFileValidForPackageL( Swi::RSisRegistrySession& aSisRegSession, |
|
59 const TDesC& aResourceFile, const TUid& aPackageUid ); |
|
60 TBool IsFileIncludedInPackageL( const TDesC& aFile, Swi::RSisRegistryEntry& aPackage ); |
|
61 TBool IsFileIncludedInEmbeddedPackagesL( Swi::RSisRegistrySession& aSisRegSession, |
|
62 const TDesC& aFile, Swi::RSisRegistryEntry& aPackage ); |
|
63 TBool IsExeFileIncludedInPackageL( Swi::RSisRegistrySession& aSisRegSession, |
|
64 const TDesC& aExeFile, const TUid& aPackageUid ); |
55 void GetInstalledAppsL( RPointerArray<HBufC>& aInstalledExecutableArray ); |
65 void GetInstalledAppsL( RPointerArray<HBufC>& aInstalledExecutableArray ); |
56 void GetStartupListAppsL( RDscStore& aDscStore, |
66 void GetStartupListAppsL( RDscStore& aDscStore, |
57 RPointerArray<HBufC>& aStartedExecutableArray ); |
67 RPointerArray<HBufC>& aStartedExecutableArray ); |
58 void StartedButNotInstalledAppsL( RPointerArray<HBufC>& aStartedExecutableArray, |
68 void StartedButNotInstalledAppsL( RPointerArray<HBufC>& aStartedExecutableArray, |
59 RPointerArray<HBufC>& aInstalledExecutableArray, |
69 RPointerArray<HBufC>& aInstalledExecutableArray, |
60 RPointerArray<HBufC>& aStartedButNotInstalledExecutableArray ); |
70 RPointerArray<HBufC>& aStartedButNotInstalledExecutableArray ); |
61 void RemoveFromStartupListL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray ); |
71 void RemoveFromStartupListL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray ); |
62 void GetExecutablesFromEntryL( Swi::RSisRegistryEntry& aEntry, |
72 void GetExecutablesFromEntryL( Swi::RSisRegistryEntry& aEntry, |
63 RPointerArray<HBufC>& aExecutableArray ); |
73 RPointerArray<HBufC>& aExecutableArray ); |
|
74 void OpenDevTraceL(); |
|
75 void DevTrace( TRefByValue<const TDesC> aFmt, ... ); |
64 |
76 |
65 private: // new data |
77 private: // new data |
66 RFs iFs; |
78 RFs iFs; |
67 HBufC* iPrivateImportPath; |
79 HBufC* iPrivateImportPath; |
|
80 RFile iLogFile; |
|
81 RBuf8 iFileBuf; |
|
82 HBufC* iLogBuf; // NULL if logging disabled |
68 }; |
83 }; |
69 |
84 |
70 #endif // STARTUPLISTUPDATER_H |
85 #endif // STARTUPLISTUPDATER_H |
71 |
86 |