mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 00:41:35 +01:00
refactor networking for use in multiple windows
This commit is contained in:
14
mainwindow.h
14
mainwindow.h
@@ -6,6 +6,8 @@
|
||||
#include <QPushButton>
|
||||
#include <QSettings>
|
||||
#include <QTableWidget>
|
||||
#include <serverconnection.h>
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
@@ -22,28 +24,24 @@ public:
|
||||
private slots:
|
||||
void importFile();
|
||||
void requestFinished(QNetworkReply*);
|
||||
void queryStatusAll();
|
||||
void queryStatusAllWrapper();
|
||||
void openContainingDir();
|
||||
void openConfigurationWindow();
|
||||
void appyConfigChanges();
|
||||
void openAboutWindow();
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QTableWidget *tw;
|
||||
QPushButton *button;
|
||||
QAction *standardsMenu;
|
||||
QByteArray authHeaderData;
|
||||
QNetworkAccessManager *networkManager;
|
||||
QSettings *mySettings;
|
||||
void submitFile(QString filename);
|
||||
void setAuthHeader(const QString username, const QString password);
|
||||
ServerConnection *serverConnection;
|
||||
void updateList(QNetworkReply *reply);
|
||||
void addTrackingToList(QNetworkReply *reply);
|
||||
void showNotification(QString str);
|
||||
void queryTransscript(QString trackingId);
|
||||
void saveTranscript(QNetworkReply *reply);
|
||||
void handleInitialSettings();
|
||||
QString buildURLFromLocation(QString location);
|
||||
QString buildURLFromLocation(QVariant location);
|
||||
void submitFileSlot(QString filename);
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user