/* * 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 02111-1307 USA * */ #ifndef JABBER_VCARD_H #define JABBER_VCARD_H #include #include #include #include #include class QDate; namespace XMPP { class VCard { public: VCard(); VCard(const VCard &); VCard & operator=(const VCard &); ~VCard(); QDomElement toXml(QDomDocument *) const; bool fromXml(const QDomElement &); bool isEmpty() const; const QString &version() const; void setVersion(const QString &); const QString &fullName() const; void setFullName(const QString &); const QString &familyName() const; void setFamilyName(const QString &); const QString &givenName() const; void setGivenName(const QString &); const QString &middleName() const; void setMiddleName(const QString &); const QString &prefixName() const; void setPrefixName(const QString &); const QString &suffixName() const; void setSuffixName(const QString &); const QString &nickName() const; void setNickName(const QString &); const QByteArray &photo() const; void setPhoto(const QByteArray &); const QString &photoURI() const; void setPhotoURI(const QString &); const QDate bday() const; void setBday(const QDate &); const QString &bdayStr() const; void setBdayStr(const QString &); class Address { public: Address(); bool home; bool work; bool postal; bool parcel; bool dom; bool intl; bool pref; QString pobox; QString extaddr; QString street; QString locality; QString region; QString pcode; QString country; }; typedef QValueList
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; QStringList lines; }; typedef QValueList