54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#ifndef PIINTROSPECTOR_H
|
|
#define PIINTROSPECTOR_H
|
|
|
|
#include "ui_piintrospector.h"
|
|
#include <QImage>
|
|
#include <QTime>
|
|
#include <QDesktopWidget>
|
|
#include <QDebug>
|
|
#include <emainwindow.h>
|
|
#include "piqt.h"
|
|
#include "pipeer.h"
|
|
#include "piintrospection_server_p.h"
|
|
|
|
class QPIIntrospector: public EMainWindow, private Ui::QPIIntrospector, public PIObject
|
|
{
|
|
Q_OBJECT
|
|
PIOBJECT(QPIIntrospector)
|
|
public:
|
|
QPIIntrospector(QWidget * parent = 0);
|
|
~QPIIntrospector();
|
|
|
|
protected:
|
|
void changeEvent(QEvent * e);
|
|
void timerEvent(QTimerEvent * );
|
|
void savingSession(QPIConfig & conf);
|
|
void loadingSession(QPIConfig & conf);
|
|
|
|
void buildDumpSection(QTreeWidgetItem * pi, PIString & str);
|
|
void showInfo();
|
|
EVENT_HANDLER(void, reqProcPIEvents) {QMetaObject::invokeMethod(this, "procPIEvents", Qt::QueuedConnection);}
|
|
QString durationStr(PISystemTime t);
|
|
|
|
EVENT_HANDLER2(void, peerReceived, const PIString &, from, const PIByteArray &, data);
|
|
EVENT_HANDLER1(void, peersChanged, const PIString &, name);
|
|
|
|
PIString cur_server;
|
|
PIIntrospection::ProcessInfo info;
|
|
PIIntrospection::ProcessStat stat;
|
|
PIPeer peer;
|
|
int request_timer;
|
|
|
|
private slots:
|
|
void procPIEvents() {callQueuedEvents();}
|
|
void buildTree(QByteArray d);
|
|
void procRequestTimer();
|
|
void on_listApp_currentRowChanged(int r);
|
|
void on_buttonRequest_clicked();
|
|
|
|
public slots:
|
|
|
|
};
|
|
|
|
#endif // PIINTROSPECTOR_H
|