Last change
on this file since 425 was 234, checked in by Sanahuja Guillaume, 7 years ago |
create file oscket only when necessary
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[9] | 5 | #ifndef FILE_UI_H
|
---|
| 6 | #define FILE_UI_H
|
---|
| 7 |
|
---|
| 8 | #include <QObject>
|
---|
[234] | 9 | #include <udt.h>
|
---|
[9] | 10 |
|
---|
| 11 | class QStringList;
|
---|
| 12 | class QDialog;
|
---|
| 13 | class QTextEdit;
|
---|
| 14 | class QPushButton;
|
---|
| 15 | class QComboBox;
|
---|
| 16 | class QCloseEvent;
|
---|
| 17 |
|
---|
[15] | 18 | class file_ui : public QObject {
|
---|
| 19 | Q_OBJECT
|
---|
[9] | 20 |
|
---|
[15] | 21 | public:
|
---|
[234] | 22 | file_ui(UDTSOCKET socket,QString name);
|
---|
[15] | 23 | ~file_ui();
|
---|
| 24 | void log(QString text);
|
---|
| 25 | void addFile(QString file_path);
|
---|
| 26 | void endOfFiles(void);
|
---|
[9] | 27 |
|
---|
[15] | 28 | private:
|
---|
| 29 | QDialog *dialog;
|
---|
| 30 | QStringList *file_names;
|
---|
| 31 | QTextEdit *log_text, *input_text;
|
---|
| 32 | QPushButton *ok_button;
|
---|
| 33 | QComboBox *csv_combo;
|
---|
| 34 | void save_comment(void);
|
---|
| 35 | void save_csv(void);
|
---|
| 36 | void save_txt(void);
|
---|
| 37 | void dbt2csv(QString file_path);
|
---|
| 38 | bool is_greater(qint64 ref_us, qint64 csv_us, int ref_ns, int csv_ns);
|
---|
| 39 | bool input_cleared;
|
---|
[234] | 40 | UDTSOCKET socket;
|
---|
| 41 | QString name;
|
---|
[9] | 42 |
|
---|
[234] | 43 | public slots:
|
---|
| 44 | void receive(void);
|
---|
| 45 |
|
---|
[15] | 46 | private slots:
|
---|
| 47 | void save(void);
|
---|
| 48 | void clearInputText(void);
|
---|
[9] | 49 |
|
---|
[15] | 50 | signals:
|
---|
[234] | 51 | void finished(void);
|
---|
[15] | 52 | void appendToLog(QString);
|
---|
[9] | 53 | };
|
---|
| 54 |
|
---|
| 55 | #endif // FILE_UI_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.