2
* KDevelop Php Code Completion Support
4
* Copyright 2009 Milian Wolff <mail@milianw.de>
5
* Basec on Cpp ImplementationHelperItem
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU Library General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public
18
* License along with this program; if not, write to the
19
* Free Software Foundation, Inc.,
20
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#ifndef IMPLEMENTATIONITEM_H
23
#define IMPLEMENTATIONITEM_H
27
using namespace KDevelop;
32
class ImplementationItem : public NormalDeclarationCompletionItem
40
explicit ImplementationItem(HelperType type, KDevelop::DeclarationPointer decl = KDevelop::DeclarationPointer(), KSharedPtr<KDevelop::CodeCompletionContext> context = KSharedPtr<KDevelop::CodeCompletionContext>(), int _inheritanceDepth = 0)
41
: NormalDeclarationCompletionItem(decl, context, _inheritanceDepth), m_type(type) {}
43
virtual void execute(KTextEditor::Document* document, const KTextEditor::Range& word);
45
virtual QVariant data(const QModelIndex& index, int role, const KDevelop::CodeCompletionModel* model) const;
52
#endif // IMPLEMENTATIONITEM_H