diff -r 305818acdca4 -r 50e220be30d1 activityfw/storage/server/src/afapplicationsstorage.cpp --- a/activityfw/storage/server/src/afapplicationsstorage.cpp Mon Sep 13 13:26:33 2010 +0300 +++ b/activityfw/storage/server/src/afapplicationsstorage.cpp Mon Sep 20 10:22:22 2010 +0300 @@ -17,19 +17,22 @@ #include "afapplicationsstorage.h" //------------------------------------------------------------------------------ CAfApplicationsStorage* CAfApplicationsStorage::NewL(CAfStorage& storage, - const MAfApplicationsRegistry& provider) + const MAfApplicationsRegistry& provider, + MAfApplicationsObserver &observer) { - CAfApplicationsStorage *self = new (ELeave)CAfApplicationsStorage(storage, provider); + CAfApplicationsStorage *self = new (ELeave)CAfApplicationsStorage(storage, provider, observer); return self; } //------------------------------------------------------------------------------ CAfApplicationsStorage::CAfApplicationsStorage(CAfStorage& storage, - const MAfApplicationsRegistry& provider) + const MAfApplicationsRegistry& provider, + MAfApplicationsObserver &observer) : mStorage(storage), - mProvider(provider) + mProvider(provider), + mObserver(observer) { } @@ -44,6 +47,10 @@ for (TInt iter(0); iter < removedApp.Count(); ++iter) { TRAP_IGNORE(deleteActivityL(removedApp[iter])); } + + if ( removedApp.Count() > 0 ) { + mObserver.applicationsChanged(); + } } //------------------------------------------------------------------------------ @@ -55,7 +62,8 @@ KNullDesC, KNullDesC, KNullDesC8, - KNullDesC8)); + KNullDesC8, + TTime())); mStorage.DeleteActivitiesL(*entry); CleanupStack::PopAndDestroy(entry); }