equal
deleted
inserted
replaced
17 |
17 |
18 #ifndef CAUSIFSCANNER_H |
18 #ifndef CAUSIFSCANNER_H |
19 #define CAUSIFSCANNER_H |
19 #define CAUSIFSCANNER_H |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <e32std.h> |
|
23 #include <usif/sif/sifcommon.h> |
22 #include <usif/sif/sifcommon.h> |
24 #include <usif/scr/scr.h> |
23 #include <usif/scr/scr.h> |
25 |
24 |
26 #include "casrvplugin.h" |
25 #include "casrvplugin.h" |
27 #include "cainstallnotifier.h" |
26 #include "cainstallnotifier.h" |
28 #include "cammcwatcher.h" |
27 #include "cammcwatcher.h" |
29 |
28 |
30 class CCaStorageProxy; |
29 class CCaStorageProxy; |
31 class CCaInnerEntry; |
30 class CCaInnerEntry; |
|
31 class CCaInstallNotifier; |
|
32 class CCaMmcWatcher; |
|
33 class TPluginParams; |
|
34 |
|
35 namespace Usif |
|
36 { |
|
37 class CComponentEntry; |
|
38 } |
32 |
39 |
33 using namespace Usif; |
40 using namespace Usif; |
34 |
41 |
35 /* |
42 /* |
36 An implementation of the CCaSrvPlugin interface for the Reference Installer. |
43 An implementation of the CCaSrvPlugin interface for the Reference Installer. |
53 /** |
60 /** |
54 * Destructor. |
61 * Destructor. |
55 */ |
62 */ |
56 ~CCaUsifScanner(); |
63 ~CCaUsifScanner(); |
57 |
64 |
58 /** |
|
59 * Installs application. |
|
60 * @param aFileName File name to be installed. |
|
61 */ |
|
62 // void InstallL( const TDesC& aFileName ); |
|
63 |
|
64 public: |
65 public: |
65 // from MCaInstallListener |
66 // From MCaInstallListener. |
66 |
67 |
67 /** |
68 /** |
68 * Handle Install/Uninstall Event. |
69 * Handle Install/Uninstall Event. |
69 * @since S60 v5.0 |
70 * @since S60 v5.0 |
70 * @param aUid installed uid. |
71 * @param aUid installed uid. |
71 */ |
72 */ |
72 void HandleInstallNotifyL( TInt aUid ); |
73 void HandleInstallNotifyL( TInt aUid ); |
|
74 |
|
75 public: |
|
76 // From MMmcWatcherCallback. |
73 |
77 |
74 /** |
78 /** |
75 * MmcChangeL is called when the MMC is removed or inserted. |
79 * MmcChangeL is called when the MMC is removed or inserted. |
76 */ |
80 */ |
77 void MmcChangeL(); |
81 void MmcChangeL(); |
86 |
90 |
87 /** |
91 /** |
88 * Second phased constructor. |
92 * Second phased constructor. |
89 */ |
93 */ |
90 void ConstructL(); |
94 void ConstructL(); |
91 |
|
92 /** |
|
93 * Copy constructor. |
|
94 */ |
|
95 CCaUsifScanner( const CCaUsifScanner & ); |
|
96 |
|
97 /** |
|
98 * Operator "=". Assigns new object. |
|
99 * |
|
100 */ |
|
101 CCaUsifScanner& operator =( const CCaUsifScanner & ); |
|
102 |
95 |
103 /** |
96 /** |
104 * Creates AppLib's entry from Usif's entry |
97 * Creates AppLib's entry from Usif's entry |
105 * @param aEntry Usif entry obtained from Sif database. |
98 * @param aEntry Usif entry obtained from Sif database. |
106 * @param aCaEntry AppLib entry to be filled from Usif entry. |
99 * @param aCaEntry AppLib entry to be filled from Usif entry. |
134 * Checks if entry exists in AppLib db. |
127 * Checks if entry exists in AppLib db. |
135 * @param aArray Array of entries from AppLib db. |
128 * @param aArray Array of entries from AppLib db. |
136 * @param aEntry Entry data to be checked if exists. |
129 * @param aEntry Entry data to be checked if exists. |
137 * @retval Returns array index if exists, otherwise KErrNotFound. |
130 * @retval Returns array index if exists, otherwise KErrNotFound. |
138 */ |
131 */ |
139 TInt PackageExistL( RPointerArray<CCaInnerEntry>& aArray, |
132 TInt PackageExists( RPointerArray<CCaInnerEntry>& aArray, |
140 const CComponentEntry* aEntry ); |
133 const CComponentEntry* aEntry ); |
141 |
134 |
142 /** |
135 /** |
143 * Finds deleted entries from Usif. Updates aCaArray. |
136 * Finds deleted entries from Usif. Updates aCaArray. |
144 * @param aCaArray Entries from AppLib db. |
137 * @param aCaArray Entries from AppLib db. |