This file is indexed.

/usr/include/jreen-qt4/jreen/stanza.h is in libjreen-dev 1.2.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/****************************************************************************
**
** Jreen
**
** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
**
*****************************************************************************
**
** $JREEN_BEGIN_LICENSE$
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 2 of the License, or
** (at your option) any later version.
**
** This program 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program.  If not, see http://www.gnu.org/licenses/.
** $JREEN_END_LICENSE$
**
****************************************************************************/

#ifndef JREEN_STANZA_H
#define JREEN_STANZA_H

#include "stanzaextension.h"
#include "error.h"
#include "jid.h"
#include <QMap>

class QXmlStreamWriter;

namespace Jreen
{

class StanzaPrivate;

class JREEN_EXPORT Stanza
{
	Q_DECLARE_PRIVATE(Stanza)
public:
	typedef QSharedPointer<Stanza> Ptr;
	Stanza(const Stanza &stanza);
	virtual ~Stanza();
	void setFrom(const JID &jid);
	const JID &from() const;
	const JID &to() const;
	const QString &id() const;
	void addExtension(Payload::Ptr se);
	inline void addPayload(Payload::Ptr se)
	{ addExtension(se); }
	inline void addExtension(Payload* se)
	{ addExtension(Payload::Ptr(se)); }
	inline void addPayload(Payload* se)
	{ addExtension(Payload::Ptr(se)); }
	PayloadList payloads() const;
	template< class T >
	QList<typename T::Ptr> payloads() const
	{
		QList<typename T::Ptr> list;
		foreach (const Payload::Ptr &payload, payloads().values(T::staticPayloadType()))
			list << payload.staticCast<T>();
		return list;
	}
	template< class T >
	inline const QSharedPointer<T> payload() const
	{ return qSharedPointerCast<T>(payloads().value(T::staticPayloadType())); }
	template< class T >
	inline bool containsPayload() const
	{ return payloads().contains(T::staticPayloadType()); }
	void removePayloads();
	template< class T >
	inline void removePayload() { removePayload(T::staticPayloadType()); }
	void removePayload(int id);
	Error::Ptr error() const;
protected:
	Stanza(StanzaPrivate &);
	Stanza &operator =(const Stanza &stanza);
	StanzaPrivate *d_ptr;
};

}

#endif // JREEN_STANZA_H