diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-14 19:32:37 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:09:59 -0300 |
commit | 74d3c1bb12280ffb2b810ee4bd1272ba6fb8127f (patch) | |
tree | c87daaa1939b537b50ea94c824f620d236717003 /abstractmetalang.h | |
parent | 46cd570358601d83be0e23a378fc688d8ed706b6 (diff) |
Added the "function" tag to ApiExtractor.
This change the behaviour of ApiExtractor regarding to global functions.
All global function you want to be exported to python *need* to be especified
in the type system with the function tag, otherwise they wont be exported at all.
The syntax for this new tag is:
<function signature="..." />
This is just the initial work for this tag, it is missign support for:
- Function modifications.
- Add a function overload with add-function tag.
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r-- | abstractmetalang.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h index d27e1df9e..9cba7e411 100644 --- a/abstractmetalang.h +++ b/abstractmetalang.h @@ -758,7 +758,8 @@ public: }; AbstractMetaFunction() - : m_functionType(NormalFunction), + : m_typeEntry(0), + m_functionType(NormalFunction), m_type(0), m_class(0), m_implementingClass(0), @@ -1089,14 +1090,9 @@ public: return m_propertySpec; } - Include includeFile() const + FunctionTypeEntry* typeEntry() const { - return m_includeFile; - } - - void setIncludeFile(const Include& include) - { - m_includeFile = include; + return m_typeEntry; } private: QString m_name; @@ -1104,7 +1100,7 @@ private: mutable QString m_cachedMinimalSignature; mutable QString m_cachedModifiedName; - Include m_includeFile; + FunctionTypeEntry* m_typeEntry; FunctionType m_functionType; AbstractMetaType *m_type; const AbstractMetaClass *m_class; |