Help Required in CContactDatabase

Login to reply to this topic.
Thu, 2008-03-20 12:01
Joined: 2008-01-16
Forum posts: 8

Hi All

In my code am using a

CContactDatabase function SortedItemsL

which has been deprecated, is there any other way or API using which i can do the same functionality of sorting.

My CODE:
iContactDB = CContactDatabase::OpenL();
iChangeNotifier = CContactChangeNotifier::NewL(*iContactDB,this);
if(iall_ids)
{
delete iall_ids ;
iall_ids = NULL;
}
iall_ids = new CArrayFixFlat(1);
const CContactIdArray* contactslist = iContactDB->SortedItemsL();
TInt CountOfContacts = contactslist->Count();
for(TInt i = 0;i {
card = iContactDB->ReadContactL((*contactslist)[i]);
CleanupStack::PushL(card);
TInt id=card->Id();
iall_ids->AppendL(id);
CleanupStack::PopAndDestroy();
}

Thanks in advance

Regards,
Amjed


Sat, 2008-03-22 12:01
Joined: 2005-12-07
Forum posts: 56
Re: Help Required in CContactDatabase

CContactDatabase::SortArrayL();

Mon, 2008-03-24 09:26
Joined: 2008-01-16
Forum posts: 8
Re: Help Required in CContactDatabase

Hi manish..

Thanks for ur help But even SortArrayL is also deprecated..

Regards,
Amjed

Mon, 2008-03-24 10:16
Joined: 2007-09-15
Forum posts: 61
Re: Help Required in CContactDatabase

Hey, just check the SDK help for "CContactDatabase". There are a lot of sorting function, check which one suits your requirements.

Mon, 2008-03-24 10:23
Joined: 2008-01-16
Forum posts: 8
Re: Help Required in CContactDatabase

I checked but most of the API's for sorting are deprecated..

Regards,
amjed

Tue, 2008-03-25 12:57
Joined: 2005-12-07
Forum posts: 56
Re: Help Required in CContactDatabase

can you check CContactIdArray has any sort function..? if yes then we can sort it..

  • Login to reply to this topic.