~ubuntu-branches/ubuntu/utopic/kdevplatform/utopic-proposed

« back to all changes in this revision

Viewing changes to shell/kross/xmltokross/duchainreader.h

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2014-08-30 03:52:11 UTC
  • mfrom: (0.3.26)
  • Revision ID: package-import@ubuntu.com-20140830035211-wndqlc843eu2v8nk
Tags: 1.7.0-0ubuntu1
* New upstream release
* Add XS-Testsuite: autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright 2008 Aleix Pol <aleixpol@gmail.com>                         *
3
 
 *                                                                         *
4
 
 *   This program is free software; you can redistribute it and/or modify  *
5
 
 *   it under the terms of the GNU Library General Public License as       *
6
 
 *   published by the Free Software Foundation; either version 2 of the    *
7
 
 *   License, or (at your option) any later version.                       *
8
 
 *                                                                         *
9
 
 *   This program is distributed in the hope that it will be useful,       *
10
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 
 *   GNU General Public License for more details.                          *
13
 
 *                                                                         *
14
 
 *   You should have received a copy of the GNU Library General Public     *
15
 
 *   License along with this program; if not, write to the                 *
16
 
 *   Free Software Foundation, Inc.,                                       *
17
 
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
18
 
 ***************************************************************************/
19
 
 
20
 
#ifndef KDEVPLATFORM_DUCHAINREADER_H
21
 
#define KDEVPLATFORM_DUCHAINREADER_H
22
 
 
23
 
#include "interfacecreator.h"
24
 
#include <QXmlStreamReader>
25
 
#include <QMap>
26
 
#include <language/duchain/types/abstracttype.h>
27
 
 
28
 
namespace KDevelop {
29
 
    class TopDUContext;
30
 
    class Declaration;
31
 
}
32
 
 
33
 
class DUChainReader : public InterfaceCreator
34
 
{
35
 
    public:
36
 
        DUChainReader(KDevelop::TopDUContext* top) : m_top(top) {}
37
 
        virtual ~DUChainReader() {}
38
 
        const KDevelop::TopDUContext* m_top;
39
 
        QStringList definedClasses;
40
 
        QString inNamespace;
41
 
        method currentMethod;
42
 
        QMap <QString, QString> classNamespace;
43
 
        QMap <QString, QStringList> sonsPerClass;
44
 
        QStringList flags;
45
 
        
46
 
        virtual int start();
47
 
        void foundClass(const KDevelop::Declaration* decl);
48
 
        QString printType(const TypePtr<KDevelop::AbstractType>& type);
49
 
};
50
 
 
51
 
#endif