-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileInfo.h
47 lines (31 loc) · 826 Bytes
/
FileInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef FILEINFO_H
#define FILEINFO_H
#include <string>
#include <time.h>
#include <windows.h>
#include <QDateTime>
typedef SYSTEMTIME DateTime;
class FileInfo
{
private:
std::wstring fName;
DateTime fDate;
size_t fSize;
std::wstring fPath;
public:
FileInfo();
FileInfo(std::wstring, DateTime, size_t, std::wstring);
FileInfo(const WIN32_FIND_DATA&, const std::wstring&);
FileInfo(const FileInfo&);
const std::wstring &getName()const;
void setName(const std::wstring&);
DateTime getDate()const;
void setDate(DateTime);
size_t getSize()const;
void setSize(size_t);
const std::wstring &getPath() const;
void setPath(const std::wstring&);
std::wstring formXMLData();
};
QDateTime SystemTimeToQDateTime(const SYSTEMTIME&);
#endif // FILEINFO_H