2022-07-06 11:24:23 -07:00
|
|
|
#ifndef BOOKOPTIONSDIALOG_H
|
|
|
|
#define BOOKOPTIONSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QJsonObject>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class bookOptionsDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class bookOptionsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
QString className = this->metaObject()->className();
|
|
|
|
explicit bookOptionsDialog(QWidget *parent = nullptr);
|
|
|
|
~bookOptionsDialog();
|
|
|
|
QString bookPath;
|
2022-07-17 23:40:32 -07:00
|
|
|
bool bookPinned;
|
2022-07-06 11:24:23 -07:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_pinBtn_clicked();
|
|
|
|
void on_deleteBtn_clicked();
|
|
|
|
void on_infoBtn_clicked();
|
2022-07-17 23:40:32 -07:00
|
|
|
void pinBook(int bookID);
|
|
|
|
void unpinBook(int bookID);
|
|
|
|
bool isBookPinned(int bookID);
|
2022-07-06 11:24:23 -07:00
|
|
|
|
2022-07-12 09:34:36 -07:00
|
|
|
signals:
|
|
|
|
void openLocalBookInfoDialog();
|
2022-07-15 20:58:05 -07:00
|
|
|
void showToast(QString messageToDisplay);
|
2022-07-12 09:34:36 -07:00
|
|
|
|
2022-07-06 11:24:23 -07:00
|
|
|
private:
|
|
|
|
Ui::bookOptionsDialog *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BOOKOPTIONSDIALOG_H
|