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 );
520 void addTelephone(
const std::string& number,
int type );
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;
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
const std::string & nickname() const
const EmailList & emailAddresses() const
const VCardClassification & classification() const
const LabelList & labels() const
const std::string & role() const
const std::string & note() const
void setProdid(const std::string &prodid)
void setRole(const std::string &role)
const std::string & jabberid() const
void setNote(const std::string ¬e)
const Photo & logo() const
const std::string & title() const
const std::string & mailer() const
const std::string & tz() const
const std::string & desc() const
std::list< Label > LabelList
virtual StanzaExtension * newInstance(const Tag *tag) const
void setDesc(const std::string &desc)
const std::string & prodid() const
const AddressList & addresses() const
std::list< Telephone > TelephoneList
void setTz(const std::string &tz)
const std::string & formattedname() const
void setBday(const std::string &bday)
const std::string & bday() const
const Name & name() const
const TelephoneList & telephone() const
void setUrl(const std::string &url)
std::list< Address > AddressList
void setSortstring(const std::string &sortstring)
void setRev(const std::string &rev)
void setJabberid(const std::string &jabberid)
const std::string & rev() const
const std::string & sortstring() const
void setFormattedname(const std::string &name)
const Photo & photo() const
void setTitle(const std::string &title)
const std::string & uid() const
void setMailer(const std::string &mailer)
std::list< Email > EmailList
virtual StanzaExtension * clone() const
void setUid(const std::string &uid)
void setNickname(const std::string &nickname)
const std::string & url() const
void setClass(VCardClassification vclass)
The namespace for the gloox library.
std::list< std::string > StringList
const std::string EmptyString