2
* Copyright (C) 2006 Remko Troncon
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
#ifndef XMPP_ADDRESS_H
21
#define XMPP_ADDRESS_H
25
#include "xmpp/jid/jid.h"
34
typedef enum { Unknown, To, Cc, Bcc, ReplyTo, ReplyRoom, NoReply, OriginalFrom, OriginalTo } Type;
36
Address(Type type = Unknown, const Jid& jid = Jid());
37
Address(const QDomElement&);
39
const Jid& jid() const;
40
const QString& uri() const;
41
const QString& node() const;
42
const QString& desc() const;
43
bool delivered() const;
46
QDomElement toXml(Stanza&) const;
47
void fromXml(const QDomElement& t);
49
void setJid(const Jid &);
50
void setUri(const QString &);
51
void setNode(const QString &);
52
void setDesc(const QString &);
53
void setDelivered(bool);
58
QString v_uri, v_node, v_desc;
63
typedef QList<Address> AddressList;