18 #ifndef __DAEMONBEHAVIOUR_H__ |
18 #ifndef __DAEMONBEHAVIOUR_H__ |
19 #define __DAEMONBEHAVIOUR_H__ |
19 #define __DAEMONBEHAVIOUR_H__ |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <f32file.h> |
22 #include <f32file.h> |
|
23 #include <usif/scr/scr.h> |
|
24 #include <usif/scr/screntries.h> |
23 |
25 |
24 #include "daemon.h" |
26 #include "daemon.h" |
25 #include "daemoninstaller.h" |
27 #include "daemoninstaller.h" |
26 #include "programstatus.h" //For uninstaller |
28 #include "programstatus.h" //For uninstaller |
27 #include "swidaemonplugin.h" //For SWI plugin support |
29 #include "swidaemonplugin.h" //For SWI plugin support |
114 * Processes any pre-installed files in the given directory on the drive. |
116 * Processes any pre-installed files in the given directory on the drive. |
115 @param aDrive The drive to check for pre-installed SISX files. |
117 @param aDrive The drive to check for pre-installed SISX files. |
116 @param aDirectory The directory to search for PreInstalled Files |
118 @param aDirectory The directory to search for PreInstalled Files |
117 */ |
119 */ |
118 void ProcessPreinstalledFilesL(TInt aDrive, const TDesC& aDirectory); |
120 void ProcessPreinstalledFilesL(TInt aDrive, const TDesC& aDirectory); |
119 |
121 |
120 |
122 |
|
123 void UpdateComponentStatusL( TChangeType aChangeType, TInt aDrive ); |
|
124 |
|
125 void UpdateStatusL( Usif::RSoftwareComponentRegistry& iScrServer, |
|
126 Usif::TComponentId componentId, |
|
127 TChangeType aChangeType, |
|
128 TInt aTargetDrive, |
|
129 RArray<TApaAppUpdateInfo>& iAppInfoArray ); |
|
130 |
121 private: |
131 private: |
122 |
132 |
123 RFs iFs; |
133 RFs iFs; |
124 // The sisx file processor |
134 // The sisx file processor |
125 CSisInstaller* iSisInstaller; |
135 CSisInstaller* iSisInstaller; |
126 // Plug-in instance if found by the ECOM. |
136 // Plug-in instance if found by the ECOM. |
127 CSwiDaemonPlugin* iSwiDaemonPlugin; |
137 CSwiDaemonPlugin* iSwiDaemonPlugin; |
128 // Has MediaProcessingStart already been called? |
138 // Has MediaProcessingStart already been called? |
129 TBool iStartNotified; |
139 TBool iStartNotified; |
130 TInt iDrive; |
140 TInt iDrive; |
131 |
|
132 #ifdef RD_MULTIPLE_DRIVE |
|
133 // Contains inserted drives. |
141 // Contains inserted drives. |
134 RArray<TInt> iDriveArray; |
142 RArray<TInt> iDriveArray; |
135 #endif |
|
136 // General program status. Note this do not affect to plug-in. |
143 // General program status. Note this do not affect to plug-in. |
137 TInt iGeneralProcessStatus; //For uninstaller |
144 TInt iGeneralProcessStatus; //For uninstaller |
138 }; |
145 }; |
139 |
146 |
140 } // namespace Swi |
147 } // namespace Swi |
141 |
148 |
142 #endif //__DAEMONBEHAVIOUR_H__ |
149 #endif //__DAEMONBEHAVIOUR_H__ |