I'm considering to use CPbkContactEngine in my application (c++, s60). Among other things I need to search all contacts and display them in multiselect list box. CContactViewBase & AllContactsView () sounds handy, but I can't find CContactViewBase from anywhere. No help, no header file... Does anyone know, how to use it or where to find help?
- Tanja
Hi Tanja,
I'm trying to use CPbkContactEngine to read and write contacts. I wonder if you had been successful with CPbkContactEngine. Documentation is scarce. All there is to it is the SDK source code.
Best regards,
Costya
Hmmm, i guess no one knows how to use it then ?
Cause i also had a look at it, and nothing.
So please if any of u 2, or anyone else found a solution for this.
I'd be very gratefull.
Thx,
Corne.
Ran into a similar scenario. Googled a bit and came across a project called "ContSync" on symbian.com [ http://www.symbian.com/developer/techlib/apps/contsync.html ] which led me to develop this prototype code (i.e. no error checking):
CContactDatabase *db = CContactDatabase::OpenL();
TContactIter *iter = new TContactIter(*db); int i, count = 0;
for ( i = iter->FirstL(); i != KNullContactId; i = iter->NextL() )
{
count++;
}
Hope this helps,
mG.