/* * xmpp_vcard.h - classes for handling vCards * Copyright (C) 2003 Michail Pishchagin * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef JABBER_VCARD_H #define JABBER_VCARD_H #include #include #include #include #include class TQDate; namespace XMPP { class VCard { public: VCard(); VCard(const VCard &); VCard & operator=(const VCard &); ~VCard(); TQDomElement toXml(TQDomDocument *) const; bool fromXml(const TQDomElement &); bool isEmpty() const; const TQString &version() const; void setVersion(const TQString &); const TQString &fullName() const; void setFullName(const TQString &); const TQString &familyName() const; void setFamilyName(const TQString &); const TQString &givenName() const; void setGivenName(const TQString &); const TQString &middleName() const; void setMiddleName(const TQString &); const TQString &prefixName() const; void setPrefixName(const TQString &); const TQString &suffixName() const; void setSuffixName(const TQString &); const TQString &nickName() const; void setNickName(const TQString &); const TQByteArray &photo() const; void setPhoto(const TQByteArray &); const TQString &photoURI() const; void setPhotoURI(const TQString &); const TQDate bday() const; void setBday(const TQDate &); const TQString &bdayStr() const; void setBdayStr(const TQString &); class Address { public: Address(); bool home; bool work; bool postal; bool parcel; bool dom; bool intl; bool pref; TQString pobox; TQString extaddr; TQString street; TQString locality; TQString region; TQString pcode; TQString country; }; typedef TQValueList
AddressList; const AddressList &addressList() const; void setAddressList(const AddressList &); class Label { public: Label(); bool home; bool work; bool postal; bool parcel; bool dom; bool intl; bool pref; TQStringList lines; }; typedef TQValueList