代码拉取完成,页面将自动刷新
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: John Abraham <[email protected]>
*/
#ifndef PACKETSMODE_H
#define PACKETSMODE_H
#include "common.h"
#include "mode.h"
#include "table.h"
namespace netanim {
class PacketsMode: public Mode
{
Q_OBJECT
public:
static PacketsMode * getInstance ();
QWidget * getCentralWidget ();
QString getTabName ();
void setFocus (bool focus);
void setFromTime (qreal fromTime);
void setToTime (qreal toTime);
void setAllowedNodes (QString allowedNodesString);
void showPopup (QString msg);
Table * getTable ();
private:
PacketsMode ();
QWidget * m_centralWidget;
QVBoxLayout * m_vLayout;
QToolBar * m_mainToolBar;
QToolBar * m_filterToolBar;
QToolButton * m_testButton;
QToolButton * m_showGridLinesButton;
QLineEdit * m_fromTimeEdit;
QLineEdit * m_toTimeEdit;
QLineEdit * m_allowedNodesEdit;
QSplitter * m_mainSplitter;
QLabel * m_fromTimeLabel;
QLabel * m_toTimeLabel;
QLabel * m_allowedNodesLabel;
QToolButton * m_zoomInButton;
QToolButton * m_zoomOutButton;
QToolButton * m_showPacketsTableButton;
QCheckBox * m_wifiFilterCb;
QCheckBox * m_pppFilterCb;
QCheckBox * m_ethernetFilterCb;
QCheckBox * m_arpFilterCb;
QCheckBox * m_tcpFilterCb;
QCheckBox * m_udpFilterCb;
QCheckBox * m_aodvFilterCb;
QCheckBox * m_olsrFilterCb;
QCheckBox * m_ipv4FilterCb;
QCheckBox * m_ipv6FilterCb;
QCheckBox * m_icmpFilterCb;
QLineEdit * m_regexFilterEdit;
QLabel * m_regexFilterLabel;
QPushButton * m_submitButton;
QPushButton * m_showGraphButton;
Table * m_packetsTable;
qreal m_fromTime;
qreal m_toTime;
QVector <uint32_t> m_allowedNodes;
bool m_showGrid;
QVector <uint32_t> stringToNodeVector (QString nodeString);
QString nodeVectorToString (QVector <uint32_t> nodeVector);
private slots:
void testSlot ();
void zoomInSlot ();
void zoomOutSlot ();
void fromTimeChangedSlot (QString fromTimeText);
void toTimeChangedSlot (QString toTimeText);
void allowedNodesChangedSlot (QString allowedNodes);
void regexFilterSlot (QString reg);
void showGridLinesSlot ();
void showPacketTableSlot ();
void filterClickedSlot ();
void submitFilterClickedSlot ();
void showGraphClickedSlot ();
};
}
#endif // PACKETSMODE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。