37 lines
648 B
C++
37 lines
648 B
C++
#ifndef IMWINDOW_H
|
|
#define IMWINDOW_H
|
|
|
|
#include <QDialog>
|
|
#include <QtWidgets/QTextBrowser>
|
|
#include "user/User.h"
|
|
#include "user/UserOperation.h"
|
|
|
|
namespace Ui {
|
|
class IMWindow;
|
|
}
|
|
|
|
class IMWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit IMWindow(QWidget *parent = 0);
|
|
~IMWindow();
|
|
|
|
public:
|
|
void setUser(uint64_t account, const std::string& username);
|
|
void initFriendList();
|
|
|
|
private slots:
|
|
void on_addfriends_clicked();
|
|
void on_friendListView_clicked(const QModelIndex& index);
|
|
|
|
private:
|
|
Ui::IMWindow *ui;
|
|
User* user;
|
|
QList<User*> friendList;
|
|
UserOperation* userOperation;
|
|
};
|
|
|
|
#endif // IMWINDOW_H
|