quill/generaldialog.h

97 lines
2.6 KiB
C
Raw Permalink Normal View History

#ifndef GENERALDIALOG_H
#define GENERALDIALOG_H
#include <QDialog>
#include "usbms_splash.h"
#include "textwidget.h"
2021-07-05 13:01:32 -07:00
#include "virtualkeyboard.h"
#include "virtualkeypad.h"
#include "dictionarywidget.h"
#include "otamanager.h"
#include "searchresultswidget.h"
using namespace std;
namespace Ui {
class generalDialog;
}
class generalDialog : public QDialog
{
Q_OBJECT
public:
QString className = this->metaObject()->className();
explicit generalDialog(QWidget *parent = nullptr);
~generalDialog();
bool resetDialog = false;
bool updateDialog = false;
bool settingsRebootDialog = false;
2021-05-01 12:53:52 -07:00
bool koboxSettingsRebootDialog = false;
bool lowBatteryDialog = false;
bool usbmsDialog = false;
bool textBrowserDialog = false;
2022-06-18 06:26:52 -07:00
bool appCompatibilityDialog = false;
bool appInfoDialog = false;
bool resetKoboxDialog = false;
bool keyboardDialog = false;
bool keypadDialog = false;
bool dictionaryResults = false;
2021-07-05 21:13:11 -07:00
bool vncServerSet = false;
bool vncPasswordSet = false;
bool gutenbergSyncDone = false;
bool gutenbergSyncStatus = false;
bool noGutenbergSyncToDo = false;
bool searchTimerDone = false;
2021-07-05 21:13:11 -07:00
QString vncServerAddress;
QString vncServerPassword;
QString vncServerPort;
QString wifiEssid;
QString wifiPassphrase;
void setupKeyboardDialog();
2021-07-05 21:13:11 -07:00
void startVNC(QString server, QString password, QString port);
float yIncrease;
public slots:
void increaseSize();
private slots:
void on_cancelBtn_clicked();
void on_okBtn_clicked();
void on_acceptBtn_clicked();
2021-07-05 13:01:32 -07:00
void adjust_size();
void restartSearchDialog();
void refreshScreenNative();
void connectToNetworkSlot();
void startOtaUpdate(bool wasDownloadSuccessful);
void openBookFileNative(QString book, bool relativePath);
void showToastNative(QString messageToDisplay);
void closeIndefiniteToastNative();
void quit_restart();
2022-01-12 08:04:10 -08:00
void syncGutenbergCatalog();
void waitForGutenbergSearchDone();
private:
Ui::generalDialog *ui;
usbms_splash *usbmsWindow;
textwidget *textwidgetWindow;
2021-07-05 13:01:32 -07:00
virtualkeyboard *keyboardWidget;
virtualkeypad *keypadWidget;
dictionaryWidget *dictionaryWidgetWindow;
otaManager *otaManagerWindow;
searchResultsWidget * searchResultsWidgetWindow;
signals:
void gotoPageSelected(int value);
2021-07-05 13:01:32 -07:00
void refreshScreen();
void updateWifiIcon(int mode);
void showToast(QString messageToDisplay);
void closeIndefiniteToast();
void openBookFile(QString book, bool relativePath);
2021-10-17 19:31:44 -07:00
void cancelDisableStorageEncryption();
void disableStorageEncryption();
};
#endif // GENERALDIALOG_H