| Package | org.igniterealtime.xiff.vcard |
| Class | public class VCard |
| Inheritance | VCard flash.events.EventDispatcher |
| Implements | IVCard |
New vCard data classes to encompass similar properties:
TODO: The only properties not yet implemented from the spec: agent, categories, key
See also
| Property | Defined By | ||
|---|---|---|---|
| birthday : Date
Birthday. | VCard | ||
| cacheFlushInterval : Number [static]
The interval on which to flush the vCard cache. | VCard | ||
| description : String
Free-form descriptive text. | VCard | ||
| email : String
Email address. | VCard | ||
| extensions : Dictionary [read-only]
Map of the vCard's private extensions. | VCard | ||
| formattedName : String
Formatted or display name. | VCard | ||
| geographicalPosition : IVCardGeographicalPosition
Geographical position. | VCard | ||
| homeAddress : IVCardAddress
Structured home address. | VCard | ||
| homeAddressLabel : String
Home address label. | VCard | ||
| homeTelephone : IVCardTelephone
Home telephone number. | VCard | ||
| jid : UnescapedJID
Jabber ID. | VCard | ||
| loaded : Boolean [read-only]
Indicates whether the vCard has been loaded. | VCard | ||
| logo : IVCardPhoto
Organization logo. | VCard | ||
| mailer : String
Mailer (e.g., Mail User Agent Type). | VCard | ||
| name : IVCardName
Structured name. | VCard | ||
| nickname : String
Nickname. | VCard | ||
| note : String
Commentary note. | VCard | ||
| organization : IVCardOrganization
Organizational name and unit. | VCard | ||
| photo : IVCardPhoto
Photograph. | VCard | ||
| privacyClass : String
Privacy classification. | VCard | ||
| productID : String
Identifier of product that generated the vCard. | VCard | ||
| revision : Date
Last revised. | VCard | ||
| role : String
Role. | VCard | ||
| sortString : String
Sort string. | VCard | ||
| sound : IVCardSound
Formatted name pronunciation. | VCard | ||
| timezone : Date
Time zone's Standard Time UTC offset. | VCard | ||
| title : String
Title. | VCard | ||
| uid : String
Unique identifier. | VCard | ||
| url : String
Directory URL. | VCard | ||
| version : String
Version of the vCard. | VCard | ||
| workAddress : IVCardAddress
Structured work address. | VCard | ||
| workAddressLabel : String
Work address label. | VCard | ||
| workTelephone : IVCardTelephone
Work telephone number. | VCard | ||
| Method | Defined By | ||
|---|---|---|---|
VCard()
Don't call directly, use the static method getVCard() and add a callback. | VCard | ||
clearCache():void [static]
Immediately clears the vCard cache. | VCard | ||
Create the XML needed to send the VCard within the Extension. | VCard | ||
expireCache():void [static]
Immediately expires the vCard cache. | VCard | ||
[static]
The way a vCard is requested and then later referred to. | VCard | ||
handleVCard(iq:IIQ):void
Deserializes the incoming IQ to fill the values of this vCard. | VCard | ||
saveVCard(connection:IXMPPConnection):void
Saves a vCard. | VCard | ||
saveVCard_result(resultIQ:IQ):void | VCard | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the vCard has loaded. | VCard | |||
| Dispatched when the vCard has been saved. | VCard | |||
| Dispatched when saving the vCard fails. | VCard | |||
| birthday | property |
birthday:DateBirthday.
public function get birthday():Date public function set birthday(value:Date):void| cacheFlushInterval | property |
public static var cacheFlushInterval:NumberThe interval on which to flush the vCard cache. The default value is 6 hours.
| description | property |
description:StringFree-form descriptive text.
public function get description():String public function set description(value:String):void| property |
email:StringEmail address.
public function get email():String public function set email(value:String):void| extensions | property |
extensions:Dictionary [read-only] Map of the vCard's private extensions.
public function get extensions():Dictionary| formattedName | property |
formattedName:StringFormatted or display name.
public function get formattedName():String public function set formattedName(value:String):void| geographicalPosition | property |
geographicalPosition:IVCardGeographicalPositionGeographical position.
public function get geographicalPosition():IVCardGeographicalPosition public function set geographicalPosition(value:IVCardGeographicalPosition):void| homeAddress | property |
homeAddress:IVCardAddressStructured home address.
public function get homeAddress():IVCardAddress public function set homeAddress(value:IVCardAddress):void| homeAddressLabel | property |
homeAddressLabel:StringHome address label.
public function get homeAddressLabel():String public function set homeAddressLabel(value:String):void| homeTelephone | property |
homeTelephone:IVCardTelephoneHome telephone number.
public function get homeTelephone():IVCardTelephone public function set homeTelephone(value:IVCardTelephone):void| jid | property |
jid:UnescapedJIDJabber ID.
public function get jid():UnescapedJID public function set jid(value:UnescapedJID):void| loaded | property |
loaded:Boolean [read-only] Indicates whether the vCard has been loaded.
public function get loaded():Boolean| logo | property |
logo:IVCardPhotoOrganization logo.
public function get logo():IVCardPhoto public function set logo(value:IVCardPhoto):void| mailer | property |
mailer:StringMailer (e.g., Mail User Agent Type).
public function get mailer():String public function set mailer(value:String):void| name | property |
name:IVCardNameStructured name.
public function get name():IVCardName public function set name(value:IVCardName):void| nickname | property |
nickname:StringNickname.
public function get nickname():String public function set nickname(value:String):void| note | property |
note:StringCommentary note.
public function get note():String public function set note(value:String):void| organization | property |
organization:IVCardOrganizationOrganizational name and unit.
public function get organization():IVCardOrganization public function set organization(value:IVCardOrganization):void| photo | property |
photo:IVCardPhotoPhotograph.
public function get photo():IVCardPhoto public function set photo(value:IVCardPhoto):void| privacyClass | property |
privacyClass:StringPrivacy classification.
public function get privacyClass():String public function set privacyClass(value:String):void| productID | property |
productID:StringIdentifier of product that generated the vCard.
public function get productID():String public function set productID(value:String):void| revision | property |
revision:DateLast revised.
public function get revision():Date public function set revision(value:Date):void| role | property |
role:StringRole.
public function get role():String public function set role(value:String):void| sortString | property |
sortString:StringSort string.
public function get sortString():String public function set sortString(value:String):void| sound | property |
sound:IVCardSoundFormatted name pronunciation.
public function get sound():IVCardSound public function set sound(value:IVCardSound):void| timezone | property |
timezone:DateTime zone's Standard Time UTC offset.
public function get timezone():Date public function set timezone(value:Date):void| title | property |
title:StringTitle.
public function get title():String public function set title(value:String):void| uid | property |
uid:StringUnique identifier.
public function get uid():String public function set uid(value:String):void| url | property |
url:StringDirectory URL.
public function get url():String public function set url(value:String):void| version | property |
version:StringVersion of the vCard. Usually 2.0 or 3.0.
public function get version():String public function set version(value:String):voidSee also
| workAddress | property |
workAddress:IVCardAddressStructured work address.
public function get workAddress():IVCardAddress public function set workAddress(value:IVCardAddress):void| workAddressLabel | property |
workAddressLabel:StringWork address label.
public function get workAddressLabel():String public function set workAddressLabel(value:String):void| workTelephone | property |
workTelephone:IVCardTelephoneWork telephone number.
public function get workTelephone():IVCardTelephone public function set workTelephone(value:IVCardTelephone):void| VCard | () | Constructor |
public function VCard()Don't call directly, use the static method getVCard() and add a callback.
| clearCache | () | method |
public static function clearCache():voidImmediately clears the vCard cache.
| createExtension | () | method |
public function createExtension():VCardExtensionCreate the XML needed to send the VCard within the Extension.
ReturnsVCardExtension — |
| expireCache | () | method |
public static function expireCache():voidImmediately expires the vCard cache.
| getVCard | () | method |
public static function getVCard(connection:IXMPPConnection, jid:UnescapedJID):VCard
The way a vCard is requested and then later referred to.
var vCard:VCard = VCard.getVCard( connection, jid );
vCard.addEventListener( VCardEvent.LOADED, onVCardLoaded );
Parameters
connection:IXMPPConnection | |
jid:UnescapedJID |
VCard — Reference to the vCard which will be filled once the loaded event occurs.
|
| handleVCard | () | method |
public function handleVCard(iq:IIQ):voidDeserializes the incoming IQ to fill the values of this vCard.
Parameters
iq:IIQ |
| saveVCard | () | method |
public function saveVCard(connection:IXMPPConnection):voidSaves a vCard.
Parameters
connection:IXMPPConnection |
| saveVCard_result | () | method |
| loaded | Event |
org.igniterealtime.xiff.events.VCardEventorg.igniterealtime.xiff.events.VCardEvent.LOADEDDispatched when the vCard has loaded.
| saved | Event |
org.igniterealtime.xiff.events.VCardEventorg.igniterealtime.xiff.events.VCardEvent.SAVEDDispatched when the vCard has been saved.
| saveError | Event |
org.igniterealtime.xiff.events.VCardEventorg.igniterealtime.xiff.events.VCardEvent.SAVE_ERRORDispatched when saving the vCard fails.