This commit is contained in:
Pokamest Nikak 2021-09-03 22:15:05 +03:00
parent 135b96a280
commit 84ca7e8879
11 changed files with 446 additions and 425 deletions

View file

@ -3,6 +3,7 @@
#include "../pages.h"
#include "settings.h"
#include "../serversmodel.h"
class UiLogic;
@ -10,10 +11,20 @@ class ServerListLogic : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE void updateServersListPage();
Q_PROPERTY(QObject* serverListModel READ getServerListModel CONSTANT)
Q_INVOKABLE void onServerListPushbuttonDefaultClicked(int index);
Q_INVOKABLE void onServerListPushbuttonSettingsClicked(int index);
public:
explicit ServerListLogic(UiLogic *uiLogic, QObject *parent = nullptr);
~ServerListLogic() = default;
QObject* getServerListModel() const;
signals:
@ -29,6 +40,7 @@ private:
Settings m_settings;
UiLogic *m_uiLogic;
ServersModel* m_serverListModel;
};
#endif // SERVER_LIST_LOGIC_H