-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathsearchdlg.h
65 lines (56 loc) · 1.31 KB
/
searchdlg.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef SEARCHDLG_H
#define SEARCHDLG_H
#include <QDialog>
#include <QStandardItemModel>
class QStandardItemModel;
namespace Ui {
class SearchDlg;
}
class searchData
{
public:
searchData()
{
name = QString("");
email = QString("");
usrname = QString("");
jid = QString("");
}
QString name;
QString email;
QString usrname;
QString jid;
};
class SearchDlg : public QDialog
{
Q_OBJECT
public:
explicit SearchDlg(QWidget *parent = 0);
~SearchDlg();
QString createSearchIQ(QString search,QString srv);
enum Type{AddContact,UserSearch};
void setType( int tp);
int getType(){
return type_;
}
QString getJid(){
return addJid_;
}
void addFriend();
signals:
void addnewfreind(QString);
public slots:
void btnSearchClick();
void addContactClick();
void handleSearch(QString s);
void treeClick(QModelIndex index);
//void slotchangeID();
//void slotchangeName();
private:
Ui::SearchDlg *ui;
QStandardItemModel *itemModel_;
QString addJid_;
int type_;
// int flag_search;
};
#endif // SEARCHDLG_H