~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/plugins/custom-definesandincludes/compilerprovider/icompiler.h

  • Committer: Package Import Robot
  • Author(s): Lisandro Damián Nicanor Pérez Meyer, Pino Toscano, Sune Vuorela, Lisandro Damián Nicanor Pérez Meyer
  • Date: 2015-09-02 21:10:24 UTC
  • mfrom: (1.3.24)
  • Revision ID: package-import@ubuntu.com-20150902211024-ntruxcyb574f3xuk
Tags: 4:4.7.1-1
* Team upload.

[ Pino Toscano ]
* Change section of kdevelop-dev to libdevel.
* Add ${misc:Depends} in kdevelop-dbg and kdevelop-l10n.

[ Sune Vuorela ]
* Make KDevelop recommend kapptemplate to have more meaningful project
  templates available.

[ Lisandro Damián Nicanor Pérez Meyer ]
* New upstream release.
  - Bump kdevplatform-dev build dependency to 1.7.1.
* Remove kde-workspace from build dependencies. We no longer provide
  a KDE 4 based workspace.
  - Add libsoprano-dev as a build dependency, it was probably previously
    pulled in by kde-workspace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <QString>
29
29
#include <QSharedPointer>
30
30
 
31
 
#include <util/path.h>
 
31
#include "compilerproviderexport.h"
32
32
 
33
 
using KDevelop::Path;
 
33
#include <language/interfaces/idefinesandincludesmanager.h>
34
34
 
35
35
/// An interface that represents a compiler. Compiler provides standard include directories and standard defined macros.
36
 
class ICompiler
 
36
class KDEVCOMPILERPROVIDER_EXPORT ICompiler
37
37
{
38
38
public:
39
39
    /**
45
45
    ICompiler( const QString& name, const QString& path, const QString& factoryName, bool editable );
46
46
 
47
47
    /// @return list of defined macros for the compiler
48
 
    virtual QHash<QString, QString> defines() const = 0;
 
48
    virtual KDevelop::Defines defines() const = 0;
49
49
 
50
50
    /// @return list of include directories for the compiler
51
 
    virtual Path::List includes() const = 0;
 
51
    virtual KDevelop::Path::List includes() const = 0;
52
52
 
53
53
    void setPath( const QString &path );
54
54
 
70
70
 
71
71
protected:
72
72
    struct DefinesIncludes {
73
 
        QHash<QString, QString> definedMacros;
74
 
        Path::List includePaths;
 
73
        KDevelop::Defines definedMacros;
 
74
        KDevelop::Path::List includePaths;
75
75
    };
76
76
    // list of defines/includes for the compiler. Use it for caching purposes
77
77
    mutable DefinesIncludes m_definesIncludes;
84
84
 
85
85
typedef QSharedPointer<ICompiler> CompilerPointer;
86
86
 
87
 
Q_DECLARE_METATYPE(CompilerPointer)
 
87
Q_DECLARE_METATYPE(CompilerPointer);
88
88
 
89
89
#endif // ICOMPILER_H