~ubuntu-branches/ubuntu/utopic/kdevelop-php/utopic

« back to all changes in this revision

Viewing changes to completion/worker.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-01-17 17:10:22 UTC
  • Revision ID: james.westby@ubuntu.com-20100117171022-q2xlgd9ekewo2ijx
Tags: upstream-1.0.0~beta2
ImportĀ upstreamĀ versionĀ 1.0.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * KDevelop Php Code Completion Support
 
3
 *
 
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>
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
22
 */
 
23
 
 
24
#ifndef PHPCODECOMPLETIONWORKER_H
 
25
#define PHPCODECOMPLETIONWORKER_H
 
26
 
 
27
#include <language/codecompletion/codecompletionworker.h>
 
28
#include <language/codecompletion/codecompletionitem.h>
 
29
 
 
30
#include "context.h"
 
31
 
 
32
namespace Php
 
33
{
 
34
 
 
35
class CodeCompletionModel;
 
36
 
 
37
class KDEVPHPCOMPLETION_EXPORT CodeCompletionWorker : public KDevelop::CodeCompletionWorker
 
38
{
 
39
    Q_OBJECT
 
40
 
 
41
public:
 
42
    CodeCompletionWorker(CodeCompletionModel* parent);
 
43
 
 
44
protected:
 
45
    virtual KDevelop::CodeCompletionContext* createCompletionContext(KDevelop::DUContextPointer context, const QString &contextText, const QString &followingText, const KDevelop::SimpleCursor& position) const;
 
46
};
 
47
 
 
48
}
 
49
 
 
50
#endif // PHPCODECOMPLETIONWORKER_H