kpilot/lib

KABC Namespace Reference


Detailed Description

A wrapper class around the Address struct provided by pi-address.h.

This class allows the user to set and get address field values. For everything but phone fields, the user can simply pass the the pi-address enum for the index for setField() and getField() such as entryLastname.

Phone fields are a bit trickier. The structure allows for 8 possible phone fields with 5 possible slots. That means there could be three fields that don't have available storage. The setPhoneField() method will attempt to store the extra fields in a custom field if there is an overflow.

There are eight possible fields for 5 view slots:

  • fields: Work, Home, Fax, Other, Pager, Mobile, E-mail, Main
  • slots: entryPhone1, entryPhone2, entryPhone3, entryPhone4, entryPhone5

Internally in the pilot-link library, the AddressAppInfo phone array stores the strings for the eight possible phone values. Their English string values are :

  • phone[0] = Work
  • phone[1] = Home
  • phone[2] = Fax
  • phone[3] = Other
  • phone[4] = E-mail
  • phone[5] = Main
  • phone[6] = Pager
  • phone[7] = Mobile

Apparently, this order is kept for all languages, just with localized strings. The implementation of the internal methods will assume this order is kept. In other languages, main can replaced with Corporation.

KDE Home | KDE Accessibility Home | Description of Access Keys