started to use the UI
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user