summaryrefslogtreecommitdiff
path: root/plugins-alternative/CopyEngine/Rsync/AvancedQFile.h
blob: 284cf02c1f6c4a4f8f2f2055bfbccb20064a03f9 (plain)
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
/** \file AvancedQFile.h
\brief Define the QFile herited class to set file date/time
\author alpha_one_x86
\version 0.3
\date 2010 */

#ifndef AVANCEDQFILE_H
#define AVANCEDQFILE_H

#include <QFile>
#include <QDateTime>
#include <QFileInfo>

/// \brief devired class from QFile to set time/date on file
class AvancedQFile : public QFile
{
    Q_OBJECT
public:
	/// \brief set created date, not exists in unix world
	bool setCreated(QDateTime time);
	/// \brief set last modification date
	bool setLastModified(QDateTime time);
	/// \brief set last read date
	bool setLastRead(QDateTime time);
	
/*	//fileName
	void close();
	bool	open ( FILE * fh, OpenMode mode )
	bool	open ( int fd, OpenMode mode )*/
};

#endif // AVANCEDQFILE_H