-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfriend.h
48 lines (40 loc) · 955 Bytes
/
friend.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef FRIEND_H
#define FRIEND_H
#include <QWidget>
#include <QTextEdit>
#include <QListWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "online.h"
class Friend : public QWidget
{
Q_OBJECT
public:
explicit Friend(QWidget *parent = nullptr);
Online *pOnline() const;
void showFriend(PDU *pdu);
void showFriendChar(PDU *pdu);
QString m_strSearName;
private:
QTextEdit *m_pShowMsgTE;
QListWidget *m_pFriendListWidget;
QLineEdit *m_pInputMsgLE;
QPushButton *m_pDelFriendPB;
QPushButton *m_pFlushFrienPB;
QPushButton *m_pShowOnlineUsrPB;
QPushButton *m_pSearchUsrPB;
QPushButton *m_pMsgSendPB;
QPushButton *m_pPrivateChatPB;
Online *m_pOnline;
signals:
public slots:
void showOnline();
void searchUsr();
void searchFriend();
void deleteFeriend();
void showChar();
void senderChar();
};
#endif // FRIEND_H