Ejemplo n.º 1
0
 def get_string_with_scope(self,
                           key,
                           view=None,
                           scope=SettingsScope.SettingsAutoScope):
     if view is not None:
         view = view.handle
     c_scope = core.SettingsScopeEnum(scope)
     result = core.BNSettingsGetString(self.handle, key, view,
                                       ctypes.byref(c_scope))
     return (result, SettingsScope(c_scope.value))
Ejemplo n.º 2
0
 def get_string(self, key, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetString(self.handle, key, view, None)
Ejemplo n.º 3
0
 def get_string(self, id, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetString(self.registry_id, id, view, None)