mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:22:59 +00:00
Add .gitattributes and .gitignore files and normalize line endings in the repository (#10)
This commit is contained in:
parent
c609406c2f
commit
9ebf43567d
309 changed files with 66975 additions and 66873 deletions
|
@ -1,92 +1,92 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Defragment
|
||||
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#ifndef DEFRAGMENT_H
|
||||
#define DEFRAGMENT_H
|
||||
|
||||
|
||||
#include "Unfrag.h"
|
||||
#include "DriveVolume.h"
|
||||
#include "Mutex.h"
|
||||
|
||||
|
||||
extern int FitName (wchar_t *destination, const wchar_t *path, const wchar_t *filename, uint32 totalWidth);
|
||||
|
||||
|
||||
typedef struct DefragReport
|
||||
{
|
||||
wstring RootPath;
|
||||
uint64 DiskSizeBytes;
|
||||
uint64 DirsCount;
|
||||
uint64 FilesCount;
|
||||
uint64 FilesSizeBytes;
|
||||
uint64 FilesSizeOnDisk;
|
||||
uint64 FilesSizeClusters;
|
||||
uint64 FilesSlackBytes;
|
||||
uint32 FilesFragments;
|
||||
double AverageFragments; // = FilesFragments / FilesCount
|
||||
double PercentFragged;
|
||||
double PercentSlack;
|
||||
|
||||
vector<uint32> FraggedFiles;
|
||||
vector<uint32> UnfraggedFiles;
|
||||
vector<uint32> UnmovableFiles;
|
||||
} DefragReport;
|
||||
|
||||
|
||||
class Defragment
|
||||
{
|
||||
public:
|
||||
Defragment (wstring Name, DefragType DefragMethod);
|
||||
~Defragment ();
|
||||
|
||||
// Commands
|
||||
void Start (void);
|
||||
void TogglePause (void);
|
||||
void Stop (void);
|
||||
|
||||
// Info
|
||||
bool IsDoneYet (void);
|
||||
bool HasError (void);
|
||||
wstring GetStatusString (void);
|
||||
double GetStatusPercent (void);
|
||||
DefragType GetDefragType (void) { return (Method); }
|
||||
DefragReport &GetDefragReport (void) { return (Report); }
|
||||
DriveVolume &GetVolume (void) { return (Volume); }
|
||||
|
||||
// Mutex
|
||||
void Lock (void) { DefragMutex.Lock (); }
|
||||
void Unlock (void) { DefragMutex.Unlock (); }
|
||||
|
||||
// Limit length of status string to 70 chars?
|
||||
bool GetDoLimitLength (void) { return (DoLimitLength); }
|
||||
void SetDoLimitLength (bool L) { DoLimitLength = L; }
|
||||
|
||||
private:
|
||||
void FastDefrag (void);
|
||||
void ExtensiveDefrag (void);
|
||||
void SetStatusString (wstring NewStatus);
|
||||
|
||||
DWORD LastBMPUpdate; // Last time volume bitmap was updated
|
||||
DefragReport Report;
|
||||
bool DoLimitLength;
|
||||
DefragType Method;
|
||||
wstring DriveName;
|
||||
DriveVolume Volume;
|
||||
wstring StatusString;
|
||||
wstring ErrorString;
|
||||
double StatusPercent;
|
||||
Mutex DefragMutex;
|
||||
bool Error;
|
||||
bool Done;
|
||||
bool PleaseStop;
|
||||
bool PleasePause;
|
||||
DefragType DefragMethod;
|
||||
};
|
||||
|
||||
|
||||
#endif // DEFRAGMENT_H
|
||||
/*****************************************************************************
|
||||
|
||||
Defragment
|
||||
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#ifndef DEFRAGMENT_H
|
||||
#define DEFRAGMENT_H
|
||||
|
||||
|
||||
#include "Unfrag.h"
|
||||
#include "DriveVolume.h"
|
||||
#include "Mutex.h"
|
||||
|
||||
|
||||
extern int FitName (wchar_t *destination, const wchar_t *path, const wchar_t *filename, uint32 totalWidth);
|
||||
|
||||
|
||||
typedef struct DefragReport
|
||||
{
|
||||
wstring RootPath;
|
||||
uint64 DiskSizeBytes;
|
||||
uint64 DirsCount;
|
||||
uint64 FilesCount;
|
||||
uint64 FilesSizeBytes;
|
||||
uint64 FilesSizeOnDisk;
|
||||
uint64 FilesSizeClusters;
|
||||
uint64 FilesSlackBytes;
|
||||
uint32 FilesFragments;
|
||||
double AverageFragments; // = FilesFragments / FilesCount
|
||||
double PercentFragged;
|
||||
double PercentSlack;
|
||||
|
||||
vector<uint32> FraggedFiles;
|
||||
vector<uint32> UnfraggedFiles;
|
||||
vector<uint32> UnmovableFiles;
|
||||
} DefragReport;
|
||||
|
||||
|
||||
class Defragment
|
||||
{
|
||||
public:
|
||||
Defragment (wstring Name, DefragType DefragMethod);
|
||||
~Defragment ();
|
||||
|
||||
// Commands
|
||||
void Start (void);
|
||||
void TogglePause (void);
|
||||
void Stop (void);
|
||||
|
||||
// Info
|
||||
bool IsDoneYet (void);
|
||||
bool HasError (void);
|
||||
wstring GetStatusString (void);
|
||||
double GetStatusPercent (void);
|
||||
DefragType GetDefragType (void) { return (Method); }
|
||||
DefragReport &GetDefragReport (void) { return (Report); }
|
||||
DriveVolume &GetVolume (void) { return (Volume); }
|
||||
|
||||
// Mutex
|
||||
void Lock (void) { DefragMutex.Lock (); }
|
||||
void Unlock (void) { DefragMutex.Unlock (); }
|
||||
|
||||
// Limit length of status string to 70 chars?
|
||||
bool GetDoLimitLength (void) { return (DoLimitLength); }
|
||||
void SetDoLimitLength (bool L) { DoLimitLength = L; }
|
||||
|
||||
private:
|
||||
void FastDefrag (void);
|
||||
void ExtensiveDefrag (void);
|
||||
void SetStatusString (wstring NewStatus);
|
||||
|
||||
DWORD LastBMPUpdate; // Last time volume bitmap was updated
|
||||
DefragReport Report;
|
||||
bool DoLimitLength;
|
||||
DefragType Method;
|
||||
wstring DriveName;
|
||||
DriveVolume Volume;
|
||||
wstring StatusString;
|
||||
wstring ErrorString;
|
||||
double StatusPercent;
|
||||
Mutex DefragMutex;
|
||||
bool Error;
|
||||
bool Done;
|
||||
bool PleaseStop;
|
||||
bool PleasePause;
|
||||
DefragType DefragMethod;
|
||||
};
|
||||
|
||||
|
||||
#endif // DEFRAGMENT_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue