Exemplo n.º 1
0
 def qtNamespace(self):
     qstrdupSymbolName = '*qstrdup'
     coreModuleName = self.qtCoreModuleName()
     if coreModuleName is not None:
         qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName)
     resolved = cdbext.resolveSymbol(qstrdupSymbolName)
     if not resolved:
         return ''
     name = resolved[0].split('!')[1]
     namespace = name[:name.find(':') + 2] if '::' in name else ''
     self.qtNamespace = lambda: namespace
     return namespace
Exemplo n.º 2
0
 def qtHookDataSymbolName(self):
     hookSymbolName = 'qtHookData'
     coreModuleName = self.qtCoreModuleName()
     if coreModuleName is not None:
         hookSymbolName = '%s!%s%s' % (coreModuleName, self.qtNamespace(), hookSymbolName)
     else:
         resolved = cdbext.resolveSymbol('*' + hookSymbolName)
         if resolved:
             hookSymbolName = resolved[0]
         else:
             hookSymbolName = '*%s' % hookSymbolName
     self.qtHookDataSymbolName = lambda: hookSymbolName
     return hookSymbolName
Exemplo n.º 3
0
 def qtHookDataSymbolName(self):
     hookSymbolName = 'qtHookData'
     coreModuleName = self.qtCoreModuleName()
     if coreModuleName is not None:
         hookSymbolName = '%s!%s%s' % (coreModuleName, self.qtNamespace(), hookSymbolName)
     else:
         resolved = cdbext.resolveSymbol('*' + hookSymbolName)
         if resolved:
             hookSymbolName = resolved[0]
         else:
             hookSymbolName = '*%s' % hookSymbolName
     self.qtHookDataSymbolName = lambda: hookSymbolName
     return hookSymbolName
Exemplo n.º 4
0
 def qtNamespace(self):
     namespace = ''
     qstrdupSymbolName = '*qstrdup'
     coreModuleName = self.qtCoreModuleName()
     if coreModuleName is not None:
         qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName)
     resolved = cdbext.resolveSymbol(qstrdupSymbolName)
     if resolved:
         name = resolved[0].split('!')[1]
         namespaceIndex = name.find('::')
         if namespaceIndex > 0:
             namespace = name[:namespaceIndex + 2]
     self.qtNamespace = lambda: namespace
     self.qtCustomEventFunc = cdbext.parseAndEvaluate(
         '%s!%sQObject::customEvent' % (self.qtCoreModuleName(), namespace))
     return namespace
Exemplo n.º 5
0
 def qtNamespace(self):
     namespace = ''
     qstrdupSymbolName = '*qstrdup'
     coreModuleName = self.qtCoreModuleName()
     if coreModuleName is not None:
         qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName)
     resolved = cdbext.resolveSymbol(qstrdupSymbolName)
     if resolved:
         name = resolved[0].split('!')[1]
         namespaceIndex = name.find('::')
         if namespaceIndex > 0:
             namespace = name[:namespaceIndex + 2]
     self.qtNamespace = lambda: namespace
     self.qtCustomEventFunc = self.parseAndEvaluate('%s!%sQObject::customEvent'
                                     % (self.qtCoreModuleName(), namespace)).address()
     return namespace