diff -r 2828b4d142c0 -r 4ae315f230bc phonebookui/Phonebook2/spbcontentprovider/src/spbcontentproviderprivate.cpp --- a/phonebookui/Phonebook2/spbcontentprovider/src/spbcontentproviderprivate.cpp Tue May 11 16:00:21 2010 +0300 +++ b/phonebookui/Phonebook2/spbcontentprovider/src/spbcontentproviderprivate.cpp Tue May 25 12:26:45 2010 +0300 @@ -22,6 +22,8 @@ #include "spbcontent.h" #include "spbcontactstorelistener.h" +#include + // CONSTANTS namespace{ @@ -166,4 +168,27 @@ } } +// ---------------------------------------------------------------------------- +// CSpbContentProviderPrivate::CleanContentL +// ---------------------------------------------------------------------------- +// +void CSpbContentProviderPrivate::CleanContentL( + MVPbkContactStore& aStore ) + { + TInt i=0; + while( i < iContentCache.Count() ) + { + CSpbContent* content = iContentCache[i]; + if ( &content->Link().ContactStore() == &aStore ) + { + iContentCache.Remove( i ); + delete content; + } + else + { + i++; + } + } + } + // end of file