-
Notifications
You must be signed in to change notification settings - Fork 3
/
uploadwidget.h
57 lines (45 loc) · 1.04 KB
/
uploadwidget.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
51
52
53
54
55
56
57
#ifndef UPLOADWIDGET_H
#define UPLOADWIDGET_H
#include <QDialog>
#include <QCheckBox>
#include <QPlainTextEdit>
#include <QProgressBar>
#include <QPushButton>
#include <QSettings>
#include "uploadthread.h"
class UploadWidget : public QDialog
{
Q_OBJECT
signals:
void passwordEntered(const QString&);
public slots:
void appendText(const QString&);
void updateProgressbar();
void setMaximumProgressbar(int);
void preferences();
void preferences_new();
void startUpload();
void uploadFinished();
void passwordWidget();
void showHideDetails(int);
public:
UploadWidget(QWidget *parent, QString _directory);
private:
QString username();
QString server_ip();
QString server_path();
UploadThread *uploader;
QCheckBox *showtxt;
QPlainTextEdit *txt;
QProgressBar *pbar;
int pbar_value;
QPushButton *prefButton;
QPushButton *startButton;
QPushButton *exitButton;
QSettings settings;
};
#endif // UPLOADWIDGET_H
// Local Variables:
// mode: c++
// c-basic-offset: 4
// End: