aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-12-28 16:38:22 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-07 16:03:40 -0200
commit8dded56b403fd979f0b567666017dc12f7c1a9b6 (patch)
tree4fd6f0a769132021fed7cdfbaaad6702b9c04db9 /typesystem.h
parent11679b1008b9443ee817e382731ea9049eb2fe64 (diff)
Added function can be tagged as static methods.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h
index 21c77088..635ae43d 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -504,12 +504,24 @@ struct APIEXTRACTOR_API AddedFunction
return m_isConst;
}
+ /// Set this method static.
+ void setStatic(bool value)
+ {
+ m_isStatic = value;
+ }
+
+ /// Returns true if this is a static method.
+ bool isStatic() const
+ {
+ return m_isStatic;
+ }
private:
QString m_name;
Access m_access;
QList<TypeInfo> m_arguments;
TypeInfo m_returnType;
bool m_isConst;
+ bool m_isStatic;
};
typedef QList<AddedFunction> AddedFunctionList;