09-18-2013 10:40 AM
I am able to calculate the number of my contact present in my device.
Now I want to calculate the size of my all contacts in the form of Bytes.
So please provide any suggestion for this.
Thanks in Advance.
09-18-2013 10:55 AM
09-18-2013 11:05 AM
What's the purpose of this, the only thing that comes to mind is you want to transport it.
In which case it depends on which format you intend to transport (e.g. xml, sql, http, etc. etc.).
My suggestion is to just write them all out to a temporary file and then read the filesize.
09-19-2013 09:08 AM
Simon and BBSJdev are correct, there is no way to just calculate the number of bytes the data in the contact API represents.
09-23-2013 03:25 AM
QList<bb:im::contacts::Contact> contactList = m_contactService->contacts(filters);
sizeOfContacts = contactList.size();