1
/***************************************************************************
2
* This file is part of KDevelop *
3
* Copyright 2008 Milian Wolff <mail@milianw.de> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU Library General Public License as *
7
* published by the Free Software Foundation; either version 2 of the *
8
* License, or (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU Library General Public *
16
* License along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
21
#ifndef PHP_CLASSDECLARATION_H
22
#define PHP_CLASSDECLARATION_H
24
#include <language/duchain/classdeclaration.h>
26
#include <language/duchain/declaration.h>
27
#include <language/duchain/declarationdata.h>
28
#include <language/duchain/indexedstring.h>
30
#include "phpduchainexport.h"
34
class KDEVPHPDUCHAIN_EXPORT ClassDeclarationData : public KDevelop::ClassDeclarationData
37
ClassDeclarationData()
38
: KDevelop::ClassDeclarationData() {}
40
ClassDeclarationData(const ClassDeclarationData& rhs)
41
: KDevelop::ClassDeclarationData(rhs)
43
prettyName = rhs.prettyName;
46
~ClassDeclarationData() {}
48
KDevelop::IndexedString prettyName;
51
class KDEVPHPDUCHAIN_EXPORT ClassDeclaration : public KDevelop::ClassDeclaration
54
ClassDeclaration(const ClassDeclaration &rhs);
55
ClassDeclaration(const KDevelop::SimpleRange &range, KDevelop::DUContext *context);
56
ClassDeclaration(ClassDeclarationData &data);
57
ClassDeclaration(ClassDeclarationData &data, const KDevelop::SimpleRange &range, KDevelop::DUContext *context);
60
virtual QString toString() const;
62
void setPrettyName(const QString& name);
63
QString prettyName() const;
69
virtual KDevelop::Declaration* clonePrivate() const;
71
DUCHAIN_DECLARE_DATA(ClassDeclaration)
76
#endif // PHP_CLASSDECLARATION_H