Fix no newlines warnings. Patch by Peter Oberndorfer
[kdevelopdvcssupport.git] / language / duchain / duchainobserver.h
blobeaa6f1546f6791b8c2bc83f9889bce7b8ddc2e92
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>
24 #include <KUrl>
26 #include <KTextEditor/Range>
28 #include "duchainpointer.h"
29 #include "../interfaces/iproblem.h"
31 namespace KDevelop
34 class DUChainBase;
35 class DUContext;
36 class Declaration;
37 class Definition;
38 class Use;
40 /**
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
48 Q_OBJECT
49 friend class DUChain;
51 public:
52 /// Destructor.
53 virtual ~DUChainObserver();
55 Q_SIGNALS:
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