1 /* This file is part of KDevelop
2 Copyright 2006 Hamish Rodda <rodda@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #ifndef DUCHAINOBSERVER_H
20 #define DUCHAINOBSERVER_H
22 #include <QtCore/QObject>
26 #include <KTextEditor/Range>
28 #include "duchainpointer.h"
29 #include "../interfaces/iproblem.h"
41 * Abstract class for observers of the definition-use chain to receive
42 * feedback on changes.
44 * \todo change name to DUChainNotifier ?
46 class KDEVPLATFORMLANGUAGE_EXPORT DUChainObserver
: public QObject
53 virtual ~DUChainObserver();
56 void branchAdded(KDevelop::DUContextPointer context
);
57 void branchModified(KDevelop::DUContextPointer context
);
58 void branchRemoved(KDevelop::DUContextPointer context
);
63 #endif // DUCHAINOBSERVER_H
65 // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on