Play-/Source/ui_qt/S3FileBrowser.h

45 lines
855 B
C
Raw Permalink Normal View History

2018-10-09 13:07:52 -04:00
#pragma once
#include <QDialog>
#include <QListWidgetItem>
#include "amazon/AmazonS3Client.h"
2019-10-16 20:51:11 -04:00
#include "filesystem_def.h"
2018-10-09 13:07:52 -04:00
#include "ContinuationChecker.h"
namespace Ui
{
class S3FileBrowser;
}
class S3FileBrowser : public QDialog
{
Q_OBJECT
public:
explicit S3FileBrowser(QWidget* parent = 0);
~S3FileBrowser();
static bool IsAvailable();
2019-10-16 20:51:11 -04:00
fs::path GetSelectedPath() const;
2018-10-09 13:07:52 -04:00
private slots:
void refreshButton_clicked();
void objectList_itemSelectionChanged();
2018-10-10 20:02:00 -04:00
void searchFilterEdit_textChanged(QString);
void updateFilter();
2018-10-09 13:07:52 -04:00
private:
void accept() Q_DECL_OVERRIDE;
void updateOkButtonState();
void launchUpdate();
Ui::S3FileBrowser* ui = nullptr;
CContinuationChecker* m_continuationChecker = nullptr;
QString m_lastUpdateBucketName;
2018-10-10 20:02:00 -04:00
QTimer* m_filterTimer = nullptr;
ListObjectsResult m_bucketItems;
2019-10-16 20:51:11 -04:00
fs::path m_selectedPath;
2018-10-09 13:07:52 -04:00
};