-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialogshowfile.h
50 lines (41 loc) · 1.03 KB
/
dialogshowfile.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
48
49
50
#ifndef DIALOGSHOWFILE_H
#define DIALOGSHOWFILE_H
#include <QDialog>
using namespace std;
namespace Ui {
class DialogShowFile;
}
/**
* @class DialogShowFile
* @brief A dialog for showing file details.
*/
class DialogShowFile : public QDialog {
Q_OBJECT
public:
/**
* @brief Constructor for DialogShowFile.
* @param name Name of the file.
* @param author Author of the file.
* @param date Date of the file.
* @param size Size of the file.
* @param data Data of the file.
* @param parent Pointer to the parent widget.
*/
explicit DialogShowFile(string name, string author, QDateTime date, int size, string data,
QWidget *parent = nullptr);
/**
* @brief Destructor for DialogShowFile.
*/
~DialogShowFile();
/**
* @brief Gets the data text of the file.
* @return Data text as a string.
*/
string getDataText();
private:
/**
* @brief Pointer to the UI.
*/
Ui::DialogShowFile *ui;
};
#endif // DIALOGSHOWFILE_H