diff options
author | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-04-25 13:29:11 +0200 |
---|---|---|
committer | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-04-25 14:19:55 +0200 |
commit | ff615fc81ac67b52812dde6e08028018e233373c (patch) | |
tree | 4bc61cbf25fc701fc7528216b2a2f5f5c5b42eff /objects/cppargument.h | |
parent | b5b67207e6459e129368c13a8069359a74b503f1 (diff) |
Make it possible to extract information about methods
Change-Id: Id4faec0c4b540ef040043b1c76ae07e628a29c0e
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'objects/cppargument.h')
-rw-r--r-- | objects/cppargument.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/objects/cppargument.h b/objects/cppargument.h new file mode 100644 index 0000000..5eaae36 --- /dev/null +++ b/objects/cppargument.h @@ -0,0 +1,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 |