1
0
forked from blue/squawk
squawk/ui/accounts.h

39 lines
746 B
C
Raw Normal View History

2019-03-29 14:54:34 +00:00
#ifndef ACCOUNTS_H
#define ACCOUNTS_H
#include <QWidget>
#include <QScopedPointer>
2019-03-30 20:13:13 +00:00
#include "account.h"
#include "models/accounts.h"
2019-03-29 14:54:34 +00:00
namespace Ui
{
class Accounts;
}
class Accounts : public QWidget
{
Q_OBJECT
public:
explicit Accounts(QWidget *parent = nullptr);
~Accounts() override;
2019-03-30 20:13:13 +00:00
void addAccount(const QMap<QString, QVariant>&);
2019-04-02 15:46:18 +00:00
void updateAccount(const QString& account, const QString& field, const QVariant& value);
2019-03-30 20:13:13 +00:00
signals:
void newAccount(const QMap<QString, QVariant>&);
private slots:
void onAddButton(bool clicked = 0);
void onAccountAccepted();
void onAccountRejected();
2019-03-29 14:54:34 +00:00
private:
QScopedPointer<Ui::Accounts> m_ui;
2019-03-30 20:13:13 +00:00
Models::Accounts tableModel;
2019-03-29 14:54:34 +00:00
};
#endif // ACCOUNTS_H