18 #include "stanzaextension.h"
61 AddrTypeVideo = 16384,
63 AddrTypeModem = 65536,
64 AddrTypeIsdn = 131072,
247 void setName(
const std::string& family,
const std::string& given,
262 void setNickname(
const std::string& nickname ) { m_nickname = nickname; }
268 const std::string&
nickname()
const {
return m_nickname; }
274 void setUrl(
const std::string& url ) { m_url = url; }
280 const std::string&
url()
const {
return m_url; }
286 void setBday(
const std::string& bday ) { m_bday = bday; }
292 const std::string&
bday()
const {
return m_bday; }
298 void setJabberid(
const std::string& jabberid ) { m_jabberid = jabberid; }
304 const std::string&
jabberid()
const {
return m_jabberid; }
310 void setTitle(
const std::string& title ) { m_title = title; }
316 const std::string&
title()
const {
return m_title; }
322 void setRole(
const std::string& role ) { m_role = role; }
328 const std::string&
role()
const {
return m_role; }
334 void setNote(
const std::string& note ) { m_note = note; }
340 const std::string&
note()
const {
return m_note; }
346 void setDesc(
const std::string& desc ) { m_desc = desc; }
352 const std::string&
desc()
const {
return m_desc; }
358 void setMailer(
const std::string& mailer ) { m_mailer = mailer; }
364 const std::string&
mailer()
const {
return m_mailer; }
370 void setRev(
const std::string& rev ) { m_rev = rev; }
376 const std::string&
rev()
const {
return m_rev; }
382 void setUid(
const std::string& uid ) { m_uid = uid; }
388 const std::string&
uid()
const {
return m_uid; }
395 void setTz(
const std::string& tz ) { m_tz = tz; }
401 const std::string&
tz()
const {
return m_tz; }
407 void setProdid(
const std::string& prodid ) { m_prodid = prodid; }
413 const std::string&
prodid()
const {
return m_prodid; }
419 void setSortstring(
const std::string& sortstring ) { m_sortstring = sortstring; }
425 const std::string&
sortstring()
const {
return m_sortstring; }
431 void setPhotoUri(
const std::string& extval );
451 void setLogo(
const std::string& extval );
472 void addEmail(
const std::string& userid,
int type );
491 void addAddress(
const std::string& pobox,
const std::string& extadd,
492 const std::string& street,
const std::string& locality,
493 const std::string& region,
const std::string& pcode,
494 const std::string& ctry,
int type );
501 void addLabel(
const StringList& lines,
int type );
507 const AddressList&
addresses()
const {
return m_addressList; }
513 const LabelList&
labels()
const {
return m_labelList; }
520 void addTelephone(
const std::string& number,
int type );
526 const TelephoneList&
telephone()
const {
return m_telephoneList; }
534 void setGeo(
const std::string& lat,
const std::string& lon );
547 void setOrganization(
const std::string& orgname,
const StringList& orgunits );
568 virtual const std::string& filterString()
const;
573 return new VCard( tag );
577 virtual Tag* tag()
const;
582 return new VCard( *
this );
587 static void insertField(
Tag* vcard,
const char* field,
const std::string& var );
588 static void insertField(
Tag* vcard,
const char* field,
bool var );
589 static void checkField (
const Tag* vcard,
const char* field, std::string& var );
591 EmailList m_emailList;
592 TelephoneList m_telephoneList;
593 AddressList m_addressList;
594 LabelList m_labelList;
602 VCardClassification m_class;
604 std::string m_formattedname;
605 std::string m_nickname;
608 std::string m_jabberid;
613 std::string m_mailer;
615 std::string m_prodid;
617 std::string m_sortstring;
void setTz(const std::string &tz)
void setNote(const std::string ¬e)
const EmailList & emailAddresses() const
void setRev(const std::string &rev)
std::list< std::string > StringList
virtual StanzaExtension * clone() const
void setDesc(const std::string &desc)
std::list< Label > LabelList
const std::string & formattedname() const
void setNickname(const std::string &nickname)
const std::string & bday() const
const std::string & sortstring() const
void setBday(const std::string &bday)
void setClass(VCardClassification vclass)
void setTitle(const std::string &title)
void setMailer(const std::string &mailer)
const std::string & prodid() const
void setUrl(const std::string &url)
const std::string & mailer() const
const std::string & note() const
void setProdid(const std::string &prodid)
const TelephoneList & telephone() const
const Photo & photo() const
void setRole(const std::string &role)
const std::string & uid() const
const std::string & role() const
void setSortstring(const std::string &sortstring)
void setJabberid(const std::string &jabberid)
const AddressList & addresses() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const std::string & jabberid() const
const std::string & tz() const
virtual StanzaExtension * newInstance(const Tag *tag) const
const LabelList & labels() const
std::list< Email > EmailList
std::list< Address > AddressList
const Photo & logo() const
const Name & name() const
void setFormattedname(const std::string &name)
const VCardClassification & classification() const
const std::string & rev() const
void setUid(const std::string &uid)
const std::string & desc() const
std::list< Telephone > TelephoneList
const std::string & title() const
const std::string EmptyString
const std::string & nickname() const
This is an abstraction of an XML element.
const std::string & url() const