delete task

This commit is contained in:
2020-08-23 11:04:10 +02:00
parent ec300d7c75
commit a2a18bbc34
6 changed files with 75 additions and 8 deletions

25
include/delete.h Normal file
View File

@ -0,0 +1,25 @@
/**
* @file delete.h
* @brief delete drive
* @author hendrik schutter
* @date 23.08.2020
*/
#ifndef DELETE_H_
#define DELETE_H_
#include "reHDD.h"
class Delete
{
protected:
public:
static void deleteDrive(Drive* drive);
private:
Delete(void);
};
#endif // DELETE_H_

View File

@ -20,7 +20,7 @@ public:
DELETE_SELECTED,
DELETE_ACTIVE
} state;
bool bWasShredded = false;
bool bWasDeleteted = false;

View File

@ -37,6 +37,7 @@ using namespace std;
#include "drive.h"
#include "smart.h"
#include "shred.h"
#include "delete.h"
#include "tui.h"

View File

@ -45,7 +45,7 @@ private:
static string sRamUsage;
static string sLocalTime;
WINDOW* overview;
WINDOW* systemview;
WINDOW* detailview;
@ -59,7 +59,7 @@ private:
static WINDOW *createSystemStats(int iXSize, int iYSize, int iYStart);
static WINDOW *createMenuView(int iXSize, int iYSize, int iXStart, int iYStart, struct MenuState menustate);
static WINDOW *createDialog(int iXSize, int iYSize, int iXStart, int iYStart, string selectedTask, string optionA, string optionB);
void displaySelectedDrive(Drive drive, int stdscrX, int stdscrY);
};