WUT_Computer_Science/EGUI/lab1/blogsview.h

35 lines
667 B
C
Raw Normal View History

2022-04-04 21:22:50 +02:00
#ifndef BLOGSVIEW_H
#define BLOGSVIEW_H
#include <QMainWindow>
namespace Ui {
class blogsView;
}
class blogsView : public QMainWindow
{
Q_OBJECT
public:
explicit blogsView(QWidget *parent = nullptr);
~blogsView();
void createNewBlogEntry();
2022-04-05 00:26:36 +02:00
void setUserId(const QString &userId);
QJsonObject readJsonFile(const QString title);
2022-04-05 14:07:24 +02:00
void saveJsonFile(QJsonObject &users, const QString name) const;
void setBlogId(const QString &blogId);
2022-04-04 21:22:50 +02:00
private slots:
void on_actionCreate_new_Blog_entry_triggered();
2022-04-06 02:20:29 +02:00
void displayBlogEntries();
2022-04-04 21:22:50 +02:00
2022-04-05 00:26:36 +02:00
2022-04-04 21:22:50 +02:00
private:
Ui::blogsView *ui;
2022-04-05 00:26:36 +02:00
QString userId;
2022-04-05 14:07:24 +02:00
QString blogId;
2022-04-04 21:22:50 +02:00
};
#endif // BLOGSVIEW_H