##// END OF EJS Templates
Updated spec file.
Updated spec file.

File last commit:

r86:22540a7bc8cf default
r102:1fe40426b7f2 socexplorer-0.6-3 0.6
Show More
PythonPlugin.py
41 lines | 1.2 KiB | text/x-python | PythonLexer
added int ElfFile::getSymbolIndex(const QString &name)
r86 #!/usr/bin/lppmon -e
Jeandet Alexis
Made possible to subclass from python plugin class....
r64
class test(PySocExplorerEngine.socexplorerplugin):
Some fixes on python plugin interface.
r85 m_Layout = QtGui.QGridLayout()
m_CenterWidget = QtGui.QWidget()
m_hexviewer = PySocExplorer.QHexEdit()
m_addressQSPB = PySocExplorer.QHexSpinBox()
m_readQPB = QtGui.QPushButton("read")
m_writeQPB = QtGui.QPushButton("write")
Jeandet Alexis
Made possible to subclass from python plugin class....
r64
Some fixes on python plugin interface.
r85 def postInstantiationTrigger(self):
added int ElfFile::getSymbolIndex(const QString &name)
r86 print("building GUI")
Some fixes on python plugin interface.
r85 self.setWidget(self.m_CenterWidget)
self.m_CenterWidget.setLayout(self.m_Layout)
added int ElfFile::getSymbolIndex(const QString &name)
r86 self.m_Layout.addWidget(self.m_addressQSPB, 0, 0, 1, 1)
self.m_Layout.addWidget(self.m_readQPB, 0, 1, 1, 1)
self.m_Layout.addWidget(self.m_writeQPB, 0, 2, 1, 1)
self.m_Layout.addWidget(self.m_hexviewer, 1, 0, 1, -1)
Some fixes on python plugin interface.
r85 def hello(self):
added int ElfFile::getSymbolIndex(const QString &name)
r86 print("hello")
Some fixes on python plugin interface.
r85 def VID(self):
return 10
added int ElfFile::getSymbolIndex(const QString &name)
r86
Some fixes on python plugin interface.
r85 def PID(self):
return 100
added int ElfFile::getSymbolIndex(const QString &name)
r86
Some fixes on python plugin interface.
r85 def readData(self):
bufferQBA = QtCore.QByteArray()
added int ElfFile::getSymbolIndex(const QString &name)
r86 buffer = self.parentPlugin().Read(self.m_addressQSPB.value, 16*1024)
for i in range(0, 16*1024):
Some fixes on python plugin interface.
r85 bufferQBA.append(int(buffer[i]))
bufferQBA.append(int(buffer[i]))
bufferQBA.append(int(buffer[i]))
bufferQBA.append(int(buffer[i]))
self.m_hexviewer.setData(bufferQBA)