aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/qmi-codegen/VariableInteger.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/qmi-codegen/VariableInteger.py')
-rw-r--r--build-aux/qmi-codegen/VariableInteger.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-aux/qmi-codegen/VariableInteger.py b/build-aux/qmi-codegen/VariableInteger.py
index 060548d..5372b3a 100644
--- a/build-aux/qmi-codegen/VariableInteger.py
+++ b/build-aux/qmi-codegen/VariableInteger.py
@@ -264,6 +264,9 @@ class VariableInteger(Variable):
Getter for the integer type
"""
def build_getter_declaration(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_format' : self.public_format,
'name' : variable_name }
@@ -277,6 +280,9 @@ class VariableInteger(Variable):
Documentation for the getter
"""
def build_getter_documentation(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_format' : self.public_format,
'name' : variable_name }
@@ -289,6 +295,9 @@ class VariableInteger(Variable):
Builds the Integer getter implementation
"""
def build_getter_implementation(self, line_prefix, variable_name_from, variable_name_to, to_is_reference):
+ if not self.visible:
+ return ""
+
needs_cast = True if self.public_format != self.private_format else False
translations = { 'lp' : line_prefix,
'from' : variable_name_from,
@@ -311,6 +320,9 @@ class VariableInteger(Variable):
Setter for the integer type
"""
def build_setter_declaration(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_format' : self.public_format,
'name' : variable_name }
@@ -324,6 +336,9 @@ class VariableInteger(Variable):
Documentation for the setter
"""
def build_setter_documentation(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_format' : self.public_format,
'name' : variable_name }
@@ -337,6 +352,9 @@ class VariableInteger(Variable):
Implementation of the setter
"""
def build_setter_implementation(self, line_prefix, variable_name_from, variable_name_to):
+ if not self.visible:
+ return ""
+
needs_cast = True if self.public_format != self.private_format else False
translations = { 'lp' : line_prefix,
'from' : variable_name_from,