Build 1.0_r1(from source)

android.syncml.pim.vcard
Class ContactStruct

java.lang.Object
  extended by android.syncml.pim.vcard.ContactStruct

public class ContactStruct
extends Object

The parameter class of VCardCreator. This class standy by the person-contact in Android system, we must use this class instance as parameter to transmit to VCardCreator so that create vCard string.


Nested Class Summary
static class ContactStruct.ContactMethod
           
static class ContactStruct.PhoneData
           
 
Field Summary
 String company
           
 List<ContactStruct.ContactMethod> contactmethodList
          Only for GET.
 String name
          MUST exist
 String notes
          maybe folding
 List<ContactStruct.PhoneData> phoneList
          Only for GET.
 byte[] photoBytes
          binary bytes of pic.
 String photoType
          mime_type col of images table
 String title
          maybe folding
 
Constructor Summary
ContactStruct()
           
 
Method Summary
 void addContactmethod(String kind, String data, String type, String label)
          Add a contactmethod info to contactmethodList.
 void addPhone(String data, String type, String label)
          Add a phone info to phoneList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

company

public String company

name

public String name
MUST exist


notes

public String notes
maybe folding


title

public String title
maybe folding


photoBytes

public byte[] photoBytes
binary bytes of pic.


photoType

public String photoType
mime_type col of images table


phoneList

public List<ContactStruct.PhoneData> phoneList
Only for GET. Use addPhoneList() to PUT.


contactmethodList

public List<ContactStruct.ContactMethod> contactmethodList
Only for GET. Use addContactmethodList() to PUT.

Constructor Detail

ContactStruct

public ContactStruct()
Method Detail

addPhone

public void addPhone(String data,
                     String type,
                     String label)
Add a phone info to phoneList.

Parameters:
data - phone number
type - type col of content://contacts/phones
label - lable col of content://contacts/phones

addContactmethod

public void addContactmethod(String kind,
                             String data,
                             String type,
                             String label)
Add a contactmethod info to contactmethodList.

Parameters:
data - contact data
type - type col of content://contacts/contact_methods

Build 1.0_r1(from source)

Please submit a feedback, bug or feature