You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
625 B

#ifndef USERDATA_H
#define USERDATA_H
#include <QObject>
#include <QString>
#include <QPixmap>
#include "basedatamanager.h"
#include "structs.h"
class UserData : public QObject
{
Q_OBJECT
public:
UserData();
~UserData();
void SetManagerType(ManagerType type);
//获取验证码图片;可选
QPixmap GetVerificationCode();
//登录 获取用户信息,同步等待
UserInfo Login(const QString& userName,const QString& password,const QString& code);
//获取trends
void GetTrends(QDate date,const QString& token);
private:
BaseDataManager* m_pDataManager;
};
#endif // USERDATA_H