shred thread
This commit is contained in:
@ -17,11 +17,12 @@ public:
|
||||
enum TaskState {NONE,
|
||||
SHRED_SELECTED,
|
||||
SHRED_ACTIVE,
|
||||
SHRED_FINISHED,
|
||||
DELETE_SELECTED,
|
||||
DELETE_ACTIVE,
|
||||
DELETE_FINISHED
|
||||
DELETE_ACTIVE
|
||||
} state;
|
||||
|
||||
bool bWasShredded = false;
|
||||
bool bWasDeleteted = false;
|
||||
|
||||
private:
|
||||
string sPath;
|
||||
@ -33,7 +34,7 @@ private:
|
||||
uint32_t u32PowerOnHours = 0U; //in hours
|
||||
uint32_t u32PowerCycles = 0U;
|
||||
|
||||
uint8_t u8TaskPercentage = 0U; //in percent for Shred (1 to 100) and Delete (1 OR 100)
|
||||
uint8_t u8TaskPercentage = 0U; //in percent for Shred (1 to 100)
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -62,10 +62,12 @@ private:
|
||||
static void addSMARTData(vector <Drive>* pvecDrives);
|
||||
static void ThreadScannDevices();
|
||||
static void ThreadUserInput();
|
||||
static void handleArrowKey(TUI::UserInput userInput);
|
||||
static void ThreadShred();
|
||||
static void handleArrowKey(TUI::UserInput userInput);
|
||||
static void handleEnter();
|
||||
static void handleESC();
|
||||
static void handleAbort();
|
||||
static void checkShredComplete(vector <Drive>* pvecDrives);
|
||||
|
||||
|
||||
};
|
||||
|
@ -15,7 +15,7 @@ class Shred
|
||||
protected:
|
||||
|
||||
public:
|
||||
static void shredDrive(Drive* drive);
|
||||
static void shredDrive(Drive* drive, int* fdInformPipeWrite);
|
||||
|
||||
private:
|
||||
Shred(void);
|
||||
|
@ -55,7 +55,7 @@ private:
|
||||
static void centerTitle(WINDOW *pwin, const char * title);
|
||||
static WINDOW *createOverViewWindow( int iXSize, int iYSize);
|
||||
static WINDOW *createDetailViewWindow( int iXSize, int iYSize, int iXStart, Drive drive);
|
||||
static WINDOW *createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,string sModelFamily, string sModelName, string sCapacity, bool bSelected);
|
||||
static WINDOW *createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,string sModelFamily, string sModelName, string sCapacity, string sState, bool bSelected);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user