11 #include <QTableWidget>
14 #include <QFileDialog>
15 #include <QMessageBox>
16 #include <QApplication>
38 bool ReadFile(
string, vector<Packet> &) ;
55 bool SaveFile(
string, vector<Packet>) ;
149 int numPackets, numOctects;
151 vector< Packet > netdata;
152 QTableWidgetItem *item;
177 void on_Filter_Box_currentIndexChanged(
int index);
184 void on_actionLoad_Network_Data_triggered();
191 void on_actionAbout_triggered();
198 void on_actionExit_triggered();
212 void on_runFilter_clicked();
219 void on_sortButton_clicked();
226 void on_openFile_clicked();
233 void on_saveFile_clicked();
240 void on_clearButton_clicked();
246 #endif // MAINWINDOW_H
Definition: mainwindow.h:21
void FilterBySrcPort(vector< Packet > &netdata, int port)
Definition: Filter.cpp:49
bool SaveFile(string fname, vector< Packet > netdata)
Function that saves a file to the computer. It returns true when the file was succesfully saved and f...
Definition: File.cpp:62
void FilterByDstPort(vector< Packet > &netdata, int port)
Definition: Filter.cpp:65
void SortBySrcAddr(vector< Packet > &netdata)
Function that sorts by source address the packets in the netflow file using the Bubble sort algorithm...
Definition: Sort.cpp:17
void FilterByDstAddr(vector< Packet > &netdata, string address)
Definition: Filter.cpp:33
bool ReadFile(string fname, vector< Packet > &netdata)
Function that reads a file and return a boolean that determines if the file was succesfully opened an...
Definition: File.cpp:23
void FilterBySrcAddr(vector< Packet > &netdata, string address)
Definition: Filter.cpp:15
void SortByDstPort(vector< Packet > &netdata)
Function that sorts by destination port the packets in the netflow file using the Bubble sort algorit...
Definition: Sort.cpp:105
void SortByDstAddr(vector< Packet > &netdata)
Function that sorts by destination address the packets in the netflow file using the Selection sort a...
Definition: Sort.cpp:48
void SortBySrcPort(vector< Packet > &netdata)
Function that sorts by source port the packets in the netflow file using the Bubble sort algorithm...
Definition: Sort.cpp:77
Definition: mainwindow.h:145