started to use the UI

This commit is contained in:
2020-08-04 22:35:29 +02:00
parent 89f900c970
commit 9322ea65a7
9 changed files with 180 additions and 131 deletions

View File

@ -23,6 +23,7 @@
#include <mutex>
#include <sys/select.h>
#include<algorithm>
#include <cstring>
using namespace std;
@ -30,8 +31,8 @@ using namespace std;
#include "drive.h"
#include "smart.h"
#include "wipe.h"
//#include "tui.h"
//#include "tui_data.h"
#include "tui.h"
template <typename T, typename I> T* iterator_to_pointer(I i)
{
@ -53,21 +54,14 @@ private:
vector <Drive> vecDrives; //stores all drive data
static void searchDrives(vector <Drive>* pvecDrives);
static void printDrives(vector <Drive>* pvecDrives);
static void filterIgnoredDrives(vector <Drive>* pvecDrives);
static void addSMARTData(vector <Drive>* pvecDrives);
static void ThreadScannDevices();
void filterNewDrives(vector <Drive>* pvecOldDrives, vector <Drive>* pvecNewDrives);
TUI *ui;