This file is indexed.

/usr/include/kopete/kopetemessagehandlerchain.h is in libkopete-dev 4:15.12.3-0ubuntu1.

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
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
/*
    kopetefilterchain.h - Kopete Message Filter Chain

    Copyright (c) 2004      by Richard Smith         <kde@metafoo.co.uk>
    Kopete    (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>

    *************************************************************************
    *                                                                       *
    * 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 of the License, or (at your option) any later version.      *
    *                                                                       *
    *************************************************************************
*/

#ifndef KOPETEMESSAGEHANDLERCHAIN_H
#define KOPETEMESSAGEHANDLERCHAIN_H

#include <QtCore/QObject>

#include <kdemacros.h>
#include <ksharedptr.h>
#include "kopetemessage.h"
#include "kopetetask.h"

namespace Kopete
{

class MessageEvent;
class MessageHandler;
class ProcessMessageTask;

/**
 * @brief A chain of message handlers; the processing layer between protocol and chat view
 *
 * This class represents a chain of connected message handlers.
 *
 * This class is the client of the chain of responsibility formed by the
 * MessageHandlers, and acts as a facade for that chain, presenting a
 * more convenient interface.
 * 
 * @author Richard Smith       <kde@metafoo.co.uk>
 */
class MessageHandlerChain : public QObject, private KShared
{
	Q_OBJECT
public:
	friend class KSharedPtr<MessageHandlerChain>;
	typedef KSharedPtr<MessageHandlerChain> Ptr;
	
	/**
	 * Create a new MessageHandlerChain object with the appropriate handlers for
	 * processing messages entering @p manager in direction @p direction.
	 */
	static Ptr create( ChatSession *manager, Message::MessageDirection direction );

	ProcessMessageTask *processMessage( const Message &message );
	int capabilities();
	
private:
	MessageHandlerChain();
	~MessageHandlerChain();
	
	friend class ProcessMessageTask;
	class Private;
	Private * const d;
};

/**
 * @brief A task for processing a message
 * @author Richard Smith       <kde@metafoo.co.uk>
 */
class ProcessMessageTask : public Task
{
	Q_OBJECT
public:
	MessageEvent *event();
	
public slots:
	void start();
	void slotDone();
	void kill( bool );
	
protected:
	// Avoid compiler warning about QObject::event
	using Task::event;
private:
	ProcessMessageTask(MessageHandlerChain::Ptr, MessageEvent *event);
	~ProcessMessageTask();
	
	friend class MessageHandlerChain;
	class Private;
	Private * const d;
};

}

#endif // KOPETEMESSAGEHANDLERCHAIN_H

// vim: set noet ts=4 sts=4 sw=4: