summaryrefslogtreecommitdiffstats
path: root/objects/cppargument.h
blob: 5eaae365d5d89e6e5fa4a910cbb1e0d5e038ff70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SCRIPTING_INTERNAL_CPPARGUMENT_H
#define SCRIPTING_INTERNAL_CPPARGUMENT_H

#include <QObject>
#include <QMetaType>

namespace CPlusPlus {
    class Argument;
}

namespace Scripting {
namespace Internal {

class CppArgument : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString name READ name)
    Q_PROPERTY(QString type READ type)
    Q_PROPERTY(QString initializer READ initializer)

public:
    static CppArgument* create( CPlusPlus::Argument* );

    QString name() const;
    QString type() const;
    QString initializer() const;

private:
    CppArgument();

    QString m_name;
    QString m_type;
    QString m_initializer;
};

} // namespace Internal
} // namespace Scripting

Q_DECLARE_METATYPE(Scripting::Internal::CppArgument*)

#endif // SCRIPTING_INTERNAL_CPPARGUMENT_H