forked from journeymidnight/S3ClientGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
66 lines (52 loc) · 1.41 KB
/
mainwindow.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
58
59
60
61
62
63
64
65
66
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "../s3util/qs3client.h"
#include "s3treemodel.h"
#include "qfilesystemview.h"
#include <QAction>
#include <QPoint>
#include <transferwidget.h>
#include <QProgressDialog>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void init();
private slots:
/* TODO maybe could move to S3-browser-view */
void on_S3UpButton_clicked();
void on_S3ContextMenuRequest(const QPoint&);
void on_LocalContextMenuRequest(const QPoint&);
void on_download();
void on_open();
void on_upload();
void on_delete();
void on_taskFinished(QSharedPointer<TransferTask> t);
void on_cmdFinished(bool, s3error);
void on_bucketCreate();
void on_bucketDelete();
void on_bucketRefresh();
void on_mkdir();
void on_enableBucketActions(bool);
void on_actionAccount_triggered();
private:
void rebuildS3Client();
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE;
private:
Ui::MainWindow *ui;
QS3Client *m_s3client;
S3TreeModel *m_s3model;
QFilesystemView *m_fsview;
QList<QSharedPointer<ObjectHandlerInterface>> m_tasks;
TransferTabWidget *m_transferTabWidget;
QProgressDialog *quitDialog;
};
#endif // MAINWINDOW_H