Packet List Tutorial

This tutorial describes how to use the list functions related to a packet service sub-session.

Packet lists are used to store data related to device. The list function related to the packet service is derived from CMobilePhoneListBase and CMobilePhoneEditableListBase. This tutorial describes the list functions that are provided for the packet service client applications to add, update or delete the data in the lists. The following section provides the details of the functions derived from CMobilePhoneListBase class for the packet service client applications.


  1. Use CMobilePhoneListbase::Enumerate() to retrieve the current entries in the list.

  2. Use CMobilePhoneListbase::MaxNumberEntries() to get the maximum number of entries that can be stored in a list.

  3. Use CMobilePhoneListbase::SetMaxNumberEntries() to set the maximum number of entries that can be stored in a list.

  4. Use CMobilePhoneListbase::AddEntryL() to add a new entry to the list.

  5. Use CMobilePhoneEditableListbase::InsertEntryL() to insert a new entry in the list.

  6. Use CMobilePhoneListbase::GetEntryL() to retrieve an entry from the list.

  7. Use CMobilePhoneEditableList::ChangeEntryL() to change the data of an entry in the list.

  8. Do one of the following:

    1. Use CMobilePhoneListbase::StoreL() or CMobilePhoneListbase::StoreLC() to store the data of a list in a stream.

    2. Use CMobilePhoneListbase::RestoreL() to restore the list from the stream.

  9. Use CMobilePhoneEditableListbase::DeleteEntryL() to delete an entry from the list.