-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogagent.h
executable file
·59 lines (52 loc) · 1.22 KB
/
dialogagent.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
#ifndef DIALOGAGENT_H
#define DIALOGAGENT_H
#include <QDialog>
namespace Ui {
class DialogAgent;
}
/**
* @brief The DialogAgent class
*/
class DialogAgent : public QDialog
{
Q_OBJECT
public:
/**
* @brief DialogAgent
* @param details معلومات عن التطبيق
* @param message الرسالة التي يطلبها النطبيق
* @param iconName اسم الايقونة
* @param parent
*/
explicit DialogAgent(const QString &details, const QString &message,
const QString &iconName, QWidget *parent = 0);
~DialogAgent();
void show();
/**
* @brief setIdentities
* @param identities قائمة باسماء المستخدمين
*/
void setIdentities(const QStringList &identities);
/**
* @brief setPrompt
* @param text انص
* @param echo
*/
void setPrompt(const QString &text, bool echo);
/**
* @brief identity
* @return
*/
QString identity();
/**
* @brief response
* @return
*/
QString response();
private slots:
void on_toolButton_toggled(bool checked);
void adjustMe(){this->adjustSize(); }
private:
Ui::DialogAgent *ui;
};
#endif // DIALOGAGENT_H