2
* KDevelop Php Code Completion Support
4
* Copyright 2006-2008 Hamish Rodda <rodda@kde.org>
5
* Copyright 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
6
* Copyright 2008 Niko Sams <niko.sams@gmail.com>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Library General Public License as
10
* published by the Free Software Foundation; either version 2 of the
11
* License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public
19
* License along with this program; if not, write to the
20
* Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#ifndef PHPCODECOMPLETIONWORKER_H
25
#define PHPCODECOMPLETIONWORKER_H
27
#include <language/codecompletion/codecompletionworker.h>
28
#include <language/codecompletion/codecompletionitem.h>
35
class CodeCompletionModel;
37
class KDEVPHPCOMPLETION_EXPORT CodeCompletionWorker : public KDevelop::CodeCompletionWorker
42
CodeCompletionWorker(CodeCompletionModel* parent);
45
virtual KDevelop::CodeCompletionContext* createCompletionContext(KDevelop::DUContextPointer context, const QString &contextText, const QString &followingText, const KDevelop::SimpleCursor& position) const;
50
#endif // PHPCODECOMPLETIONWORKER_H