##// END OF EJS Templates
Some Python wrapping improvment.
Some Python wrapping improvment.

File last commit:

r39:95ec6cf42fc5 default
r39:95ec6cf42fc5 default
Show More
PySocExplorer0.h
369 lines | 13.7 KiB | text/x-c | CLexer
#include <PythonQt.h>
#include <QObject>
#include <QVariant>
#include <SocExplorerPlot.h>
#include <abstractexecfile.h>
#include <elffile.h>
#include <elffilewidget.h>
#include <elfinfowdgt.h>
#include <elfparser.h>
#include <memsizewdgt.h>
#include <qhexedit.h>
#include <qhexspinbox.h>
#include <tcp_terminal_client.h>
#include <xbytearray.h>
class PythonQtShell_ElfFile : public ElfFile
{
public:
PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) {};
PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) {};
~PythonQtShell_ElfFile();
virtual int closeFile();
virtual QList<codeFragment* > getFragments();
virtual bool isopened();
virtual bool openFile(const QString& File);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_ElfFile : public ElfFile
{ public:
inline int promoted_closeFile() { return ElfFile::closeFile(); }
inline QList<codeFragment* > promoted_getFragments() { return ElfFile::getFragments(); }
inline bool promoted_isopened() { return ElfFile::isopened(); }
inline bool promoted_openFile(const QString& File) { return ElfFile::openFile(File); }
};
class PythonQtWrapper_ElfFile : public QObject
{ Q_OBJECT
public:
public slots:
ElfFile* new_ElfFile();
ElfFile* new_ElfFile(const QString& File);
void delete_ElfFile(ElfFile* obj) { delete obj; }
int closeFile(ElfFile* theWrappedObject);
QString getABI(ElfFile* theWrappedObject);
QString getArchitecture(ElfFile* theWrappedObject);
QString getClass(ElfFile* theWrappedObject);
QString getEndianness(ElfFile* theWrappedObject);
qint64 getEntryPointAddress(ElfFile* theWrappedObject);
QList<codeFragment* > getFragments(ElfFile* theWrappedObject);
QList<codeFragment* > getFragments(ElfFile* theWrappedObject, QStringList fragmentList);
bool getSectionData(ElfFile* theWrappedObject, int index, char** buffer);
qint64 getSectionDatasz(ElfFile* theWrappedObject, int index);
qint64 getSectionMemsz(ElfFile* theWrappedObject, int index);
QString getSectionName(ElfFile* theWrappedObject, int index);
qint64 getSectionPaddr(ElfFile* theWrappedObject, int index);
QString getSectionType(ElfFile* theWrappedObject, int index);
int getSectioncount(ElfFile* theWrappedObject);
qint64 getSegmentFilesz(ElfFile* theWrappedObject, int index);
QString getSegmentFlags(ElfFile* theWrappedObject, int index);
qint64 getSegmentMemsz(ElfFile* theWrappedObject, int index);
qint64 getSegmentOffset(ElfFile* theWrappedObject, int index);
qint64 getSegmentPaddr(ElfFile* theWrappedObject, int index);
QString getSegmentType(ElfFile* theWrappedObject, int index);
qint64 getSegmentVaddr(ElfFile* theWrappedObject, int index);
int getSegmentcount(ElfFile* theWrappedObject);
QString getType(ElfFile* theWrappedObject);
qint64 getVersion(ElfFile* theWrappedObject);
bool static_ElfFile_isElf(const QString& File);
bool iself(ElfFile* theWrappedObject);
bool isopened(ElfFile* theWrappedObject);
bool openFile(ElfFile* theWrappedObject, const QString& File);
};
class PythonQtWrapper_MemSizeWdgt : public QObject
{ Q_OBJECT
public:
public slots:
MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0);
MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0);
void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; }
int getsize(MemSizeWdgt* theWrappedObject);
void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max);
void show(MemSizeWdgt* theWrappedObject);
void updateSizeValue(MemSizeWdgt* theWrappedObject);
};
class PythonQtShell_QHexEdit : public QHexEdit
{
public:
PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {};
~PythonQtShell_QHexEdit();
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QHexEdit : public QObject
{ Q_OBJECT
public:
public slots:
QHexEdit* new_QHexEdit(QWidget* parent = 0);
void delete_QHexEdit(QHexEdit* obj) { delete obj; }
QColor addressAreaColor(QHexEdit* theWrappedObject);
int addressOffset(QHexEdit* theWrappedObject);
int cursorPosition(QHexEdit* theWrappedObject);
QByteArray data(QHexEdit* theWrappedObject);
const QFont* font(QHexEdit* theWrappedObject) const;
QColor highlightingColor(QHexEdit* theWrappedObject);
int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
void insert(QHexEdit* theWrappedObject, int i, char ch);
void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba);
bool isReadOnly(QHexEdit* theWrappedObject);
int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
bool overwriteMode(QHexEdit* theWrappedObject);
void remove(QHexEdit* theWrappedObject, int pos, int len = 1);
void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after);
QColor selectionColor(QHexEdit* theWrappedObject);
QString selectionToReadableString(QHexEdit* theWrappedObject);
void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color);
void setAddressOffset(QHexEdit* theWrappedObject, int offset);
void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos);
void setData(QHexEdit* theWrappedObject, const QByteArray& data);
void setFont(QHexEdit* theWrappedObject, const QFont& arg__1);
void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color);
void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1);
void setReadOnly(QHexEdit* theWrappedObject, bool arg__1);
void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color);
QString toReadableString(QHexEdit* theWrappedObject);
};
class PythonQtWrapper_QHexSpinBox : public QObject
{ Q_OBJECT
public:
public slots:
QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0);
void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; }
void show(QHexSpinBox* theWrappedObject);
QString textFromValue(QHexSpinBox* theWrappedObject, int value) const;
QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const;
int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const;
};
class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
{
public:
PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {};
~PythonQtShell_SocExplorerPlot();
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_SocExplorerPlot : public QObject
{ Q_OBJECT
public:
public slots:
SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
int addGraph(SocExplorerPlot* theWrappedObject);
void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
void rescaleAxis(SocExplorerPlot* theWrappedObject);
void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
void setTitle(SocExplorerPlot* theWrappedObject, QString title);
void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
void show(SocExplorerPlot* theWrappedObject);
};
class PythonQtWrapper_TCP_Terminal_Client : public QObject
{ Q_OBJECT
public:
public slots:
TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0);
void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; }
void connectToServer(TCP_Terminal_Client* theWrappedObject);
void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port);
bool isConnected(TCP_Terminal_Client* theWrappedObject);
void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text);
void startServer(TCP_Terminal_Client* theWrappedObject);
void startServer(TCP_Terminal_Client* theWrappedObject, int port);
};
class PythonQtWrapper_XByteArray : public QObject
{ Q_OBJECT
public:
public slots:
XByteArray* new_XByteArray();
void delete_XByteArray(XByteArray* obj) { delete obj; }
int addressOffset(XByteArray* theWrappedObject);
int addressWidth(XByteArray* theWrappedObject);
QChar asciiChar(XByteArray* theWrappedObject, int index);
QByteArray* data(XByteArray* theWrappedObject);
bool dataChanged(XByteArray* theWrappedObject, int i);
QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len);
QByteArray* insert(XByteArray* theWrappedObject, int i, char ch);
QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba);
int realAddressNumbers(XByteArray* theWrappedObject);
QByteArray* remove(XByteArray* theWrappedObject, int pos, int len);
QByteArray* replace(XByteArray* theWrappedObject, int index, char ch);
QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba);
QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba);
void setAddressOffset(XByteArray* theWrappedObject, int offset);
void setAddressWidth(XByteArray* theWrappedObject, int width);
void setData(XByteArray* theWrappedObject, QByteArray data);
void setDataChanged(XByteArray* theWrappedObject, int i, bool state);
void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state);
int size(XByteArray* theWrappedObject);
QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1);
};
class PythonQtShell_abstractExecFile : public abstractExecFile
{
public:
PythonQtShell_abstractExecFile():abstractExecFile(),_wrapper(NULL) {};
~PythonQtShell_abstractExecFile();
virtual int closeFile();
virtual QList<codeFragment* > getFragments();
virtual bool isopened();
virtual bool openFile(const QString& File);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_abstractExecFile : public QObject
{ Q_OBJECT
public:
public slots:
abstractExecFile* new_abstractExecFile();
void delete_abstractExecFile(abstractExecFile* obj) { delete obj; }
};
class PythonQtShell_codeFragment : public codeFragment
{
public:
PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) {};
~PythonQtShell_codeFragment();
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_codeFragment : public QObject
{ Q_OBJECT
public:
public slots:
codeFragment* new_codeFragment();
void delete_codeFragment(codeFragment* obj) { delete obj; }
void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; }
char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; }
};
class PythonQtWrapper_elfFileWidget : public QObject
{ Q_OBJECT
public:
public slots:
elfFileWidget* new_elfFileWidget(QWidget* parent = 0);
void delete_elfFileWidget(elfFileWidget* obj) { delete obj; }
};
class PythonQtWrapper_elfInfoWdgt : public QObject
{ Q_OBJECT
public:
public slots:
elfInfoWdgt* new_elfInfoWdgt(QWidget* parent = 0);
void delete_elfInfoWdgt(elfInfoWdgt* obj) { delete obj; }
};
class PythonQtWrapper_elfparser : public QObject
{ Q_OBJECT
public:
public slots:
elfparser* new_elfparser();
void delete_elfparser(elfparser* obj) { delete obj; }
int closeFile(elfparser* theWrappedObject);
QString getABI(elfparser* theWrappedObject);
QString getArchitecture(elfparser* theWrappedObject);
QString getClass(elfparser* theWrappedObject);
QString getEndianness(elfparser* theWrappedObject);
qint64 getEntryPointAddress(elfparser* theWrappedObject);
bool getSectionData(elfparser* theWrappedObject, int index, char** buffer);
qint64 getSectionDatasz(elfparser* theWrappedObject, int index);
qint64 getSectionMemsz(elfparser* theWrappedObject, int index);
QString getSectionName(elfparser* theWrappedObject, int index);
qint64 getSectionPaddr(elfparser* theWrappedObject, int index);
QString getSectionType(elfparser* theWrappedObject, int index);
int getSectioncount(elfparser* theWrappedObject);
qint64 getSegmentFilesz(elfparser* theWrappedObject, int index);
QString getSegmentFlags(elfparser* theWrappedObject, int index);
qint64 getSegmentMemsz(elfparser* theWrappedObject, int index);
qint64 getSegmentOffset(elfparser* theWrappedObject, int index);
qint64 getSegmentPaddr(elfparser* theWrappedObject, int index);
QString getSegmentType(elfparser* theWrappedObject, int index);
qint64 getSegmentVaddr(elfparser* theWrappedObject, int index);
int getSegmentcount(elfparser* theWrappedObject);
QString getType(elfparser* theWrappedObject);
qint64 getVersion(elfparser* theWrappedObject);
bool static_elfparser_isElf(const QString& File);
bool iself(elfparser* theWrappedObject);
bool isopened(elfparser* theWrappedObject);
int setFilename(elfparser* theWrappedObject, const QString& name);
};