mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:23:11 +02:00
38 lines
725 B
C++
38 lines
725 B
C++
#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();
|
|
void setUserId(const QString &userId);
|
|
QJsonObject readJsonFile(const QString title);
|
|
void saveJsonFile(QJsonObject &users, const QString name) const;
|
|
void setBlogId(const QString &blogId);
|
|
|
|
private slots:
|
|
void on_actionCreate_new_Blog_entry_triggered();
|
|
void displayBlogEntries();
|
|
|
|
|
|
void on_actionExit_triggered();
|
|
void exit();
|
|
|
|
private:
|
|
Ui::blogsView *ui;
|
|
QString userId;
|
|
QString blogId;
|
|
};
|
|
|
|
#endif // BLOGSVIEW_H
|