Rework DriveInfo to PathInfo
Closed, ResolvedPublic

Description

Can be combined, as there is no use for both. In most cases the space usage is required, so the drive usage can be cached for performance reasons (maybe at later point in time).

Current:

struct OCCORE_EXPORT DriveInfo
{
	std::string DriveName = "?";
	std::string DrivePath = "?";
	unsigned long long UsedSpace = 0;
	unsigned long long TotalSpace = 0;
	std::string SpaceUnit = "?";
};

Possible rework:

class OCCORE_EXPORT PathInfo
{
        std:string Path = "?";
	std::string DriveName = "?";
	std::string DrivePath = "?";
	unsigned long long UsedSpace = 0;
	unsigned long long TotalSpace = 0;
	// Should always be in bytes, or any other common unit in the future
        // Conversion should be done by the UI
        //std::string SpaceUnit = "?";

public:
       // Constructor 
       // Getters and Setters
};
BAndiT1983 updated the task description. (Show Details)
BAndiT1983 raised the priority of this task from to Needs Triage.
BAndiT1983 added a project: Open Cine.
BAndiT1983 moved this task to Current tasks on the Open Cine board.
BAndiT1983 updated the task description. (Show Details)
BAndiT1983 added a subscriber: BAndiT1983.
BAndiT1983 triaged this task as Normal priority.Jul 22 2016, 2:31 PM
BAndiT1983 added a comment.EditedJul 29 2016, 8:23 PM

Renamed DriveInfo to more general PathInfo and adjusted a little bit. Further modifications will follow. Commit is not visible at the moment, as Lab has some problems with repository connection.

BAndiT1983 closed this task as Resolved.Oct 2 2016, 7:15 PM
BAndiT1983 claimed this task.

Reworked.