Plugins Python API » History » Version 1
Alexis Jeandet, 18/09/2015 06:21 PM
1 | 1 | Alexis Jeandet | h1. Plugins Python API |
---|---|---|---|
2 | |||
3 | All SocExplorer plugins expose some common functions and their own functions to the embedded Python terminal. |
||
4 | |||
5 | h2. Common Functions |
||
6 | |||
7 | All this functions are either implemented in the base class *socexplorerplugin* or in the plugin itself. |
||
8 | |||
9 | Function list: |
||
10 | * %{color:green}QVariantList% *Read* (%{color:green}unsigned int% address, %{color:green}unsigned int% count); |
||
11 | * %{color:blue}void% *Write* (%{color:green}unsigned int% address, %{color:green}QList<QVariant>% dataList); |
||
12 | |||
13 | <pre> |
||
14 | <code class="cpp"> |
||
15 | virtual void closeMe(); |
||
16 | virtual void activate(bool flag); |
||
17 | virtual void setInstanceName(const QString& newName); |
||
18 | |||
19 | virtual bool dumpMemory(unsigned int address,unsigned int count,QString file); |
||
20 | virtual bool memSet(unsigned int address,int value, unsigned int count); |
||
21 | virtual bool loadbin(unsigned int address,QString file); |
||
22 | virtual bool loadfile(abstractBinFile* file); |
||
23 | virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format); |
||
24 | |||
25 | </code> |
||
26 | </pre> |