equal
deleted
inserted
replaced
21 #include "iaupdateserviceprovider.h" |
21 #include "iaupdateserviceprovider.h" |
22 #include "iaupdateengine.h" |
22 #include "iaupdateengine.h" |
23 #include "iaupdatedebug.h" |
23 #include "iaupdatedebug.h" |
24 |
24 |
25 const TSecureId KSIDBackgroundChecker = 0x200211f4; |
25 const TSecureId KSIDBackgroundChecker = 0x200211f4; |
|
26 const TSecureId KSIDCwrtWidget = 0x200267C0; |
26 |
27 |
27 |
28 |
28 IAUpdateServiceProvider::IAUpdateServiceProvider(IAUpdateEngine& engine) |
29 IAUpdateServiceProvider::IAUpdateServiceProvider(IAUpdateEngine& engine) |
29 : XQServiceProvider( QString("com.nokia.services.swupdate.swupdate_interface")), |
30 : XQServiceProvider( QString("com.nokia.services.swupdate.swupdate_interface")), |
30 mEngine(&engine), |
31 mEngine(&engine), |
74 stringShowProgress, |
75 stringShowProgress, |
75 stringImportance, |
76 stringImportance, |
76 stringType, |
77 stringType, |
77 stringRefresh); |
78 stringRefresh); |
78 |
79 |
79 if ( requestInfo().clientSecureId() != KSIDBackgroundChecker ) |
80 if ((requestInfo().clientSecureId() != KSIDBackgroundChecker) && (requestInfo().clientSecureId() != KSIDCwrtWidget)) |
80 { |
81 { |
81 // other processes than backroundchecker are not allowed to cause refresh from network |
82 // other processes than backroundchecker are not allowed to cause refresh from network |
82 params->SetRefresh( EFalse ); |
83 params->SetRefresh( EFalse ); |
83 } |
84 } |
84 mEngine->CheckUpdatesRequestL(stringWgId.toInt(),params); |
85 mEngine->CheckUpdatesRequestL(stringWgId.toInt(),params, params->Refresh() && requestInfo().clientSecureId() == KSIDCwrtWidget); |
85 IAUPDATE_TRACE("[IAUPDATE] IAUpdateServiceProvider::checkUpdates() end"); |
86 IAUPDATE_TRACE("[IAUPDATE] IAUpdateServiceProvider::checkUpdates() end"); |
86 } |
87 } |
87 |
88 |
88 } |
89 } |
89 |
90 |