mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:03:08 +02:00
35 lines
611 B
C++
35 lines
611 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 setUserId(const QString &userId);
|
|
void setBlogId(const QString &blogId);
|
|
|
|
private slots:
|
|
void displayBlogEntries();
|
|
void exit();
|
|
|
|
private:
|
|
void defineConnections() const;
|
|
void displayBlogEntriesLoop(const QJsonArray &blogEntries);
|
|
void createNewBlogEntry();
|
|
Ui::blogsView *ui;
|
|
QString userId;
|
|
QString blogId;
|
|
};
|
|
|
|
#endif // BLOGSVIEW_H
|