blob: d003e6caac966971fa120b90c9ef01a235fb5a6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <QMap>
#include <QObject>
#include <QString>
struct DeviceInfo
{
QString device_id;
QString display_name;
};
class UserProfile : public QObject
{
Q_OBJECT
Q_PROPERTY(QMap deviceList READ getDeviceList NOTIFY DeviceListUpdated)
public:
explicit UserProfile(QObject *parent = 0);
QMap<QString, QString> getDeviceList();
Q_INVOKABLE void fetchDeviceList(const QString &userID);
signals:
void DeviceListUpdated();
private:
QMap<QString, QString> deviceList;
};
|