54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
#ifndef FEDIPOTATO_GUI_WINDOW_MAIN_HPP
|
|
#define FEDIPOTATO_GUI_WINDOW_MAIN_HPP
|
|
|
|
#include "../ui/ui_window_main.h"
|
|
#include "channel.hpp"
|
|
|
|
#include <QMainWindow>
|
|
#include <QLabel>
|
|
#include <QStandardItemModel>
|
|
#include <QModelIndex>
|
|
#include <QString>
|
|
|
|
namespace FediPotato
|
|
{
|
|
|
|
class WindowMain : public QMainWindow, private Ui::WindowMain
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Default constructor
|
|
explicit WindowMain(QMainWindow *parent = nullptr);
|
|
|
|
//! Copy constructor
|
|
WindowMain(const WindowMain &other) = delete;
|
|
|
|
//! Move constructor
|
|
WindowMain(WindowMain &&other) noexcept = delete;
|
|
|
|
//! Destructor
|
|
~WindowMain() noexcept override = default;
|
|
|
|
//! Copy assignment operator
|
|
WindowMain& operator=(const WindowMain &other) = delete;
|
|
|
|
//! Move assignment operator
|
|
WindowMain& operator=(WindowMain &&other) noexcept = delete;
|
|
|
|
private:
|
|
QStandardItemModel *_model_channel;
|
|
|
|
private:
|
|
void add_account();
|
|
|
|
private slots:
|
|
static void show_about();
|
|
static void open_website();
|
|
void clicked_channel(const QModelIndex &index);
|
|
};
|
|
|
|
} // namespace FediPotato
|
|
|
|
#endif // FEDIPOTATO_GUI_WINDOW_MAIN_HPP
|