gloox
1.0.16
|
#include <vcard.h>
Classes | |
struct | Address |
struct | |
struct | Geo |
struct | Label |
struct | Name |
struct | Org |
struct | Photo |
struct | Telephone |
Public Types | |
enum | AddressType { AddrTypeHome = 1, AddrTypeWork = 2, AddrTypePref = 4, AddrTypeX400 = 8, AddrTypeInet = 16, AddrTypeParcel = 32, AddrTypePostal = 64, AddrTypeDom = 128, AddrTypeIntl = 256, AddrTypeVoice = 512, AddrTypeFax = 1024, AddrTypePager = 2048, AddrTypeMsg = 4096, AddrTypeCell = 8192, AddrTypeVideo = 16384, AddrTypeBbs = 32768, AddrTypeModem = 65536, AddrTypeIsdn = 131072, AddrTypePcs = 262144 } |
enum | VCardClassification { ClassNone = 0, ClassPublic = 1, ClassPrivate = 2, ClassConfidential = 4 } |
typedef std::list< Email > | EmailList |
typedef std::list< Telephone > | TelephoneList |
typedef std::list< Address > | AddressList |
typedef std::list< Label > | LabelList |
Public Member Functions | |
VCard () | |
VCard (const Tag *vcard) | |
virtual | ~VCard () |
void | setFormattedname (const std::string &name) |
const std::string & | formattedname () const |
void | setName (const std::string &family, const std::string &given, const std::string &middle=EmptyString, const std::string &prefix=EmptyString, const std::string &suffix=EmptyString) |
const Name & | name () const |
void | setNickname (const std::string &nickname) |
const std::string & | nickname () const |
void | setUrl (const std::string &url) |
const std::string & | url () const |
void | setBday (const std::string &bday) |
const std::string & | bday () const |
void | setJabberid (const std::string &jabberid) |
const std::string & | jabberid () const |
void | setTitle (const std::string &title) |
const std::string & | title () const |
void | setRole (const std::string &role) |
const std::string & | role () const |
void | setNote (const std::string ¬e) |
const std::string & | note () const |
void | setDesc (const std::string &desc) |
const std::string & | desc () const |
void | setMailer (const std::string &mailer) |
const std::string & | mailer () const |
void | setRev (const std::string &rev) |
const std::string & | rev () const |
void | setUid (const std::string &uid) |
const std::string & | uid () const |
void | setTz (const std::string &tz) |
const std::string & | tz () const |
void | setProdid (const std::string &prodid) |
const std::string & | prodid () const |
void | setSortstring (const std::string &sortstring) |
const std::string & | sortstring () const |
void | setPhotoUri (const std::string &extval) |
void | setPhoto (const std::string &type=EmptyString, const std::string &binval=EmptyString) |
const Photo & | photo () const |
void | setLogo (const std::string &extval) |
void | setLogo (const std::string &type=EmptyString, const std::string &binval=EmptyString) |
const Photo & | logo () const |
void | addEmail (const std::string &userid, int type) |
const EmailList & | emailAddresses () const |
void | addAddress (const std::string &pobox, const std::string &extadd, const std::string &street, const std::string &locality, const std::string ®ion, const std::string &pcode, const std::string &ctry, int type) |
void | addLabel (const StringList &lines, int type) |
const AddressList & | addresses () const |
const LabelList & | labels () const |
void | addTelephone (const std::string &number, int type) |
const TelephoneList & | telephone () const |
void | setGeo (const std::string &lat, const std::string &lon) |
const Geo & | geo () const |
void | setOrganization (const std::string &orgname, const StringList &orgunits) |
const Org & | org () const |
void | setClass (VCardClassification vclass) |
const VCardClassification & | classification () const |
virtual const std::string & | filterString () const |
virtual StanzaExtension * | newInstance (const Tag *tag) const |
virtual Tag * | tag () const |
virtual StanzaExtension * | clone () const |
Public Member Functions inherited from StanzaExtension | |
StanzaExtension (int type) | |
virtual | ~StanzaExtension () |
virtual Stanza * | embeddedStanza () const |
virtual Tag * | embeddedTag () const |
int | extensionType () const |
typedef std::list<Address> AddressList |
typedef std::list<Telephone> TelephoneList |
enum AddressType |
Addressing type indicators.
AddrTypeDom
and AddrTypeIntl
are mutually exclusive. If both are present, AddrTypeDom
takes precendence. AddrTypeIsdn
does not make sense for a postal address. Check XEP-0054 for details. enum VCardClassification |
void addAddress | ( | const std::string & | pobox, |
const std::string & | extadd, | ||
const std::string & | street, | ||
const std::string & | locality, | ||
const std::string & | region, | ||
const std::string & | pcode, | ||
const std::string & | ctry, | ||
int | type | ||
) |
Adds an address.
pobox | A PO Box. |
extadd | Some extra field (extended address). |
street | The street. |
locality | The village, city, etc. |
region | The region. |
pcode | The post code. |
ctry | The country. |
type | Bit-wise ORed AddressType. |
void addEmail | ( | const std::string & | userid, |
int | type | ||
) |
Adds an email address.
userid | The email address. |
type | Bit-wise ORed AddressType. |
void addLabel | ( | const StringList & | lines, |
int | type | ||
) |
|
inline |
void addTelephone | ( | const std::string & | number, |
int | type | ||
) |
Adds a telephone number.
number | The telephone number. |
type | Bit-wise ORed AddressType. |
|
inline |
|
inline |
|
inlinevirtual |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
|
inline |
|
inline |
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
Implements StanzaExtension.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void setGeo | ( | const std::string & | lat, |
const std::string & | lon | ||
) |
|
inline |
void setLogo | ( | const std::string & | extval | ) |
void setLogo | ( | const std::string & | type = EmptyString , |
const std::string & | binval = EmptyString |
||
) |
|
inline |
void setName | ( | const std::string & | family, |
const std::string & | given, | ||
const std::string & | middle = EmptyString , |
||
const std::string & | prefix = EmptyString , |
||
const std::string & | suffix = EmptyString |
||
) |
|
inline |
|
inline |
void setOrganization | ( | const std::string & | orgname, |
const StringList & | orgunits | ||
) |
void setPhoto | ( | const std::string & | type = EmptyString , |
const std::string & | binval = EmptyString |
||
) |
void setPhotoUri | ( | const std::string & | extval | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Returns a Tag representation of the extension.
Implements StanzaExtension.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |