Global Using Namespace in Header
This commit is contained in:
@ -50,7 +50,7 @@ public:
|
||||
uint16_t u16DriveIndex = 0U; // Index of TUI list
|
||||
|
||||
private:
|
||||
string sPath;
|
||||
std::string sPath;
|
||||
time_t u32Timestamp = 0U; // unix timestamp for detecting a frozen drive
|
||||
double d32TaskPercentage = 0U; // in percent for Shred (1 to 100)
|
||||
time_t u32TimestampTaskStart = 0U; // unix timestamp for duration of an action
|
||||
@ -58,9 +58,9 @@ private:
|
||||
|
||||
struct
|
||||
{
|
||||
string sModelFamily;
|
||||
string sModelName;
|
||||
string sSerial;
|
||||
std::string sModelFamily;
|
||||
std::string sModelName;
|
||||
std::string sSerial;
|
||||
uint64_t u64Capacity = 0U; // in byte
|
||||
uint32_t u32ErrorCount = 0U;
|
||||
uint32_t u32PowerOnHours = 0U; // in hours
|
||||
@ -73,15 +73,15 @@ private:
|
||||
|
||||
protected:
|
||||
public:
|
||||
Drive(string path)
|
||||
Drive(std::string path)
|
||||
{
|
||||
this->sPath = path;
|
||||
}
|
||||
|
||||
string getPath(void);
|
||||
string getModelFamily(void);
|
||||
string getModelName(void);
|
||||
string getSerial(void);
|
||||
std::string getPath(void);
|
||||
std::string getModelFamily(void);
|
||||
std::string getModelName(void);
|
||||
std::string getSerial(void);
|
||||
uint64_t getCapacity(void); // in byte
|
||||
uint32_t getErrorCount(void);
|
||||
uint32_t getPowerOnHours(void); // in hours
|
||||
@ -89,20 +89,20 @@ public:
|
||||
uint32_t getTemperature(void); // in Fahrenheit, just kidding: degree Celsius
|
||||
void checkFrozenDrive(void);
|
||||
|
||||
void setDriveSMARTData(string modelFamily,
|
||||
string modelName,
|
||||
string serial,
|
||||
void setDriveSMARTData(std::string modelFamily,
|
||||
std::string modelName,
|
||||
std::string serial,
|
||||
uint64_t capacity,
|
||||
uint32_t errorCount,
|
||||
uint32_t powerOnHours,
|
||||
uint32_t powerCycles,
|
||||
uint32_t temperature);
|
||||
|
||||
string sCapacityToText();
|
||||
string sErrorCountToText();
|
||||
string sPowerOnHoursToText();
|
||||
string sPowerCyclesToText();
|
||||
string sTemperatureToText();
|
||||
std::string sCapacityToText();
|
||||
std::string sErrorCountToText();
|
||||
std::string sPowerOnHoursToText();
|
||||
std::string sPowerCyclesToText();
|
||||
std::string sTemperatureToText();
|
||||
|
||||
void setTaskPercentage(double d32TaskPercentage);
|
||||
double getTaskPercentage(void);
|
||||
|
||||
Reference in New Issue
Block a user