Plugins Python API » History » Version 2
Alexis Jeandet, 21/09/2015 12:32 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 | 2 | Alexis Jeandet | * %{color:green}QVariantList% *[[Plugins_Python_API#Read|Read]]* (%{color:green}unsigned int% address, %{color:green}unsigned int% count); |
11 | * %{color:blue}void% *[[Plugins_Python_API#Write|Write]]* (%{color:green}unsigned int% address, %{color:green}QList<QVariant>% dataList); |
||
12 | * %{color:blue}void% *[[Plugins_Python_API#closeMe|closeMe]]* (); |
||
13 | * %{color:blue}void% *[[Plugins_Python_API#activate|activate]]* (%{color:green}bool% flag); |
||
14 | * %{color:blue}void% *[[Plugins_Python_API#setInstanceName|setInstanceName]]* (%{color:green}const QString% & newName); |
||
15 | * %{color:green}bool% *[[Plugins_Python_API#dumpMemory|dumpMemory]]* (%{color:green}unsigned int% address, %{color:green}unsigned int% count, %{color:green}QString% file); |
||
16 | * %{color:green}bool% *[[Plugins_Python_API#memSet|memSet]]* (%{color:green}unsigned int% address, %{color:green}int% value, %{color:green}unsigned int% count); |
||
17 | * %{color:green}bool% *[[Plugins_Python_API#loadbin|loadbin]]* (%{color:green}unsigned int% address, %{color:green}QString% file); |
||
18 | * %{color:green}bool% *[[Plugins_Python_API#loadfile|loadfile]]* (%{color:green}abstractBinFile% * file); |
||
19 | * %{color:green}bool% *[[Plugins_Python_API#dumpMemory|dumpMemory]]* (%{color:green}unsigned int% address, %{color:green}unsigned int% count, %{color:green}QString% file, %{color:green}const QString% & format); |
||
20 | 1 | Alexis Jeandet | |
21 | |||
22 | 2 | Alexis Jeandet | h2(#Read). %{color:green}QVariantList% *Read* (%{color:green}unsigned int% address, %{color:green}unsigned int% count) |
23 | 1 | Alexis Jeandet | |
24 | 2 | Alexis Jeandet | h2(#Write). %{color:blue}void% *Write* (%{color:green}unsigned int% address, %{color:green}QList<QVariant>% dataList) |
25 | |||
26 | h2(#closeMe). %{color:blue}void% *closeMe* () |
||
27 | |||
28 | h2(#activate). %{color:blue}void% *activate* (%{color:green}bool% flag) |
||
29 | |||
30 | h2(#setInstanceName). %{color:blue}void% *setInstanceName* (%{color:green}const QString% & newName) |
||
31 | |||
32 | h2(#dumpMemory). %{color:green}bool% *dumpMemory* (%{color:green}unsigned int% address, %{color:green}unsigned int% count, %{color:green}QString% file) |
||
33 | |||
34 | h2(#memSet). %{color:green}bool% *memSet* (%{color:green}unsigned int% address, %{color:green}int% value, %{color:green}unsigned int% count) |
||
35 | |||
36 | h2(#loadbin). %{color:green}bool% *loadbin* (%{color:green}unsigned int% address, %{color:green}QString% file) |
||
37 | |||
38 | h2(#loadfile). %{color:green}bool% *loadfile* (%{color:green}abstractBinFile% * file) |
||
39 | |||
40 | h2(#dumpMemory). %{color:green}bool% *dumpMemory* (%{color:green}unsigned int% address, %{color:green}unsigned int% count, %{color:green}QString% file, %{color:green}const QString% & format) |