aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-24 10:19:10 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-24 10:19:10 -0300
commit6d8dea54288cf7864c602b826b5be90b4a0b95f6 (patch)
tree54984c56807b15fad39b8e372699faa781b07188 /abstractmetalang.h
parent49610841579e8a7ef614477a0e73c78502c2afc9 (diff)
Added methods to set and check for protected and virtual destructor
on AbstractMetaClass objects. Also added tests for this.
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 76d9d652b..7915ea21b 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -1308,6 +1308,8 @@ public:
m_hasNonPrivateConstructor(false),
m_functionsFixed(false),
m_hasPrivateDestructor(false),
+ m_hasProtectedDestructor(false),
+ m_hasVirtualDestructor(false),
m_forceShellClass(false),
m_hasHashFunction(false),
m_hasEqualsOperator(false),
@@ -1364,6 +1366,26 @@ public:
m_hasPrivateDestructor = value;
}
+ bool hasProtectedDestructor() const
+ {
+ return m_hasProtectedDestructor;
+ }
+
+ void setHasProtectedDestructor(bool value)
+ {
+ m_hasProtectedDestructor = value;
+ }
+
+ bool hasVirtualDestructor() const
+ {
+ return m_hasVirtualDestructor;
+ }
+
+ void setHasVirtualDestructor(bool value)
+ {
+ m_hasVirtualDestructor = value;
+ }
+
AbstractMetaFunctionList queryFunctionsByName(const QString &name) const;
AbstractMetaFunctionList queryFunctions(uint query) const;
inline AbstractMetaFunctionList allVirtualFunctions() const;
@@ -1757,6 +1779,8 @@ private:
uint m_hasNonPrivateConstructor : 1;
uint m_functionsFixed : 1;
uint m_hasPrivateDestructor : 1;
+ uint m_hasProtectedDestructor : 1;
+ uint m_hasVirtualDestructor : 1;
uint m_forceShellClass : 1;
uint m_hasHashFunction : 1;
uint m_hasEqualsOperator : 1;