aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-06-02 13:33:59 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-03 08:46:38 -0300
commite2738233c5bffb1fd0ad0f44c1a930c366329faa (patch)
tree5c40c7a0b498297da24cb69d0cab971fd571271b /shibokengenerator.cpp
parent7bc6f1512b1febc026d81917f33b1ea90d23fe24 (diff)
Added support for protected fields when not using the "protected hack".
Tests were also added.
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r--shibokengenerator.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 16a216daf..690490ce5 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -217,6 +217,16 @@ QString ShibokenGenerator::protectedEnumSurrogateName(const AbstractMetaEnum* me
return metaEnum->fullName().replace(".", "_") + "_Surrogate";
}
+QString ShibokenGenerator::protectedFieldGetterName(const AbstractMetaField* field)
+{
+ return QString("protected_%1_getter").arg(field->name());
+}
+
+QString ShibokenGenerator::protectedFieldSetterName(const AbstractMetaField* field)
+{
+ return QString("protected_%1_setter").arg(field->name());
+}
+
QString ShibokenGenerator::cpythonFunctionName(const AbstractMetaFunction* func)
{
QString result;