31 lines
735 B
C++
31 lines
735 B
C++
#pragma once
|
|
#include <QLabel>
|
|
#include <QTableWidget>
|
|
#include <QWidget>
|
|
|
|
#include "db/AccountInfo.h"
|
|
#include "db/ApplicationInfo.h"
|
|
|
|
class AccountSettingsWindow final : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AccountSettingsWindow(QWidget *parent, QString deviceId, QString deviceName, const ApplicationInfo &app);
|
|
|
|
private:
|
|
QString m_deviceId;
|
|
QString m_deviceName;
|
|
ApplicationInfo m_applicationInfo;
|
|
|
|
QLabel *m_statusLabel;
|
|
QLabel *m_commentLabel;
|
|
|
|
void startCheckPinCode(const QString &appCode);
|
|
|
|
void reloadContent(QTableWidget *tableWidget);
|
|
|
|
void sendAppStatus(const QString &deviceId, const QString &code, const QString &status);
|
|
|
|
void updateAccountData(const AccountInfo &account);
|
|
};
|