代码拉取完成,页面将自动刷新
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include <QtCore>
#include <QtNetwork>
#include <QtWebKit>
#include "rytablemodel.h"
#include "proxy/rypipedata.h"
#include "rule/ryrulemanager.h"
#include "proxy/ryproxyserver.h"
#include "ryupdatechecker.h"
using namespace rule;
namespace Ui {
class MainWindow;
}
class RyPipeData;
class RyTableSortFilterProxyModel;
class QItemSelectionModel;
class RyJsBridge:public QObject{
Q_OBJECT
public:
RyJsBridge();
public slots:
QString doAction(int action,const QString msg,quint64 groupId=0);
QString getFile();
QString getDir();
QString getConfigs();
QString getFileList();
signals:
void ruleChanged(int action,QString json);
};
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent=0);
~MainWindow();
public slots:
void onNewPipe(RyPipeData_ptr);
void onPipeUpdate(RyPipeData_ptr);
void toggleProxy();
void onItemDoubleClicked(QModelIndex);
void onSelectionChange(QItemSelection selected,QItemSelection deselected);
void onWaterfallActionTriggered();
void onMessageFromOtherInstance();
void checkNewVersion();
public:
typedef struct __proxyInfo{
int enable;
QString proxyString;
QString pacUrl;
QString isUsingPac;
}ProxyInfo;
RyTableModel *pipeTableModel;
RyTableSortFilterProxyModel *sortFilterProxyModel;
private:
Ui::MainWindow *ui;
RyJsBridge *_jsBridge;
void createMenus();
RyProxyServer *_server;
bool _isUsingCapture;
ProxyInfo _previousProxyInfo;
QMenu *_fileMenu;
QMenu *_filterMenu;
QAction *_importSessionsAct;
QAction *_filterNoImagesAct;
QAction *_filterNo304sAct;
QAction *_filterShowMatchOnlyAct;
QAction *_captureAct;
QAction *_hideConnectTunnelAct;
QActionGroup *_limitGroup;
QMenu *_requestLimitMenu;
QAction *_setMaxRequest15Act;
QAction *_setMaxRequest30Act;
QAction *_setMaxRequest100Act;
QAction *_setMaxRequest500Act;
QItemSelectionModel *_itemSelectModel;
RyUpdateChecker *checker;
bool isFirstTimeToggle;
QMutex proxyMutex;
protected:
void closeEvent(QCloseEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
QSettings proxySetting;
private slots:
void addJsObject();
void onAction(QAction*);
void on_actionLongCache_triggered();
void toggleCapture();
void importSessions();
void onActionRemoveAll();
void on_actionDebug_triggered();
void on_actionCheckNew_triggered();
void loadConfigPage();
void onFilterTextChanged(QString);
};
#endif // MAINWINDOW_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。