代码拉取完成,页面将自动刷新
同步操作将从 Vanishi/DS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef RUNDIALOG_H
#define RUNDIALOG_H
#include <QDialog>
#include "RunMessage.h"
QT_BEGIN_NAMESPACE;
class QVBoxLayout;
class QHBoxLayout;
class QStackedWidget;
class QToolButton;
class QLineEdit;
class QTableWidget;
class QTableWidgetItem;
QT_END_NAMESPACE;
class RunThreadPipline;
class RunHelper;
class MFlowStepParams;
class RunWebEngineViewManager;
class RunWebEngineView;
class MFlowStepParamsOpenWeb;
class MFlowStepParamsClickEle;
class MFlowStepParamsExtract;
class MFlowStepParamsLoop;
class MFlowStepParamsInput;
class MFlowStepParamsSwitch;
class MFlowStepParamsMouse;
class ComLoadingLabel;
struct MTask;
struct MExtractSingleItem;
class RunDialog : public QDialog
{
Q_OBJECT
public:
friend class RunThreadTimer;
explicit RunDialog(MTask *task);
~RunDialog();
protected:
void closeEvent(QCloseEvent *) override;
private:
QVBoxLayout *boxLayout;
void initTopMenuUi();
QLineEdit *addrLine;
ComLoadingLabel *loadingLabel;
void initWebViewUi();
QStackedWidget *webViewStacked;
void initBottomUi();
QToolButton *tableStateBtn;
QTableWidget *tableWidget;
QLabel *pageLabel;
QLabel *pageLogLabel;
QLabel *bottomLogLabel; // 采集过程日志
QPushButton *exportBtn;
QPushButton *startBtn;
QPushButton *stopBtn;
void updatePageData(int num,bool isShowLastPage);
QStringList mFields;
private:
MTask *mTask;
RunThreadPipline *mThreadPipline;
RunHelper *mHelper;
RunMessage *mMessage;
RunWebEngineViewManager *mWebViewManager;
void startNextStep(QString lastStepID);
void startOpenWeb(MFlowStepParamsOpenWeb * params);// 01x
void startClickEle(MFlowStepParamsClickEle * params);// 02x
void startClickEleRoll(MFlowStepParamsClickEle * params,QString feedback);
void startExtract(MFlowStepParamsExtract * params);// 03x
void startInput(MFlowStepParamsInput * params);// 04x
void startLoopHead(MFlowStepParamsLoop * params);// 07x
void startLoopTail(QString loopStepID,QString loopInnerLastStepID);// 07x
void startMouse(MFlowStepParamsMouse * params);// 08x
void endOpenWeb(MFlowStepParamsOpenWeb *params);
void endClickEle(MFlowStepParamsClickEle * params,bool next);
void endExtract(MFlowStepParamsExtract * params,QString feedback);
void endInput(MFlowStepParamsInput * params);
void endMouse(MFlowStepParamsMouse * params);
void sendStartJobCommand();
void sendStopJobCommand(RunMessage::MessageType messageType,const QString &msg);
RunMessage::MessageType mSendStopMessageType;
QString mSendStopMsg;
void getData(int p = 1);
int mCurPage = 1; // 当前页的页数
int mTotalPage = 0; // 当前总页数
public:
RunHelper *getHelper();
MTask *getTask();
signals:
void notifyPiplinePushData(QString stepID,QString res);
public slots:
void onThreadPiplineJobFinished();
void onThreadPiplineUpdateData(int num,QStringList names,QStringList values);
void onThreadPiplineAlert(int type,QString info);
void onWebViewUrlChanged(const QString &url);
void onCleanWebViews(RunWebEngineView *webView);//切换显示中的webView(不需要同步执行切换)
};
#endif // RUNDIALOG_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。