isettingwidget.h
1.27 KB
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
#ifndef ISETTINGWIDGET_H
#define ISETTINGWIDGET_H
#include <QWidget>
#include <QPushButton>
#include <QComboBox>
#include "basemainwidget.h"
namespace Ui {
class ISettingWidget;
}
class ISettingWidget : public BaseMainWidget
{
Q_OBJECT
public:
explicit ISettingWidget(QWidget *parent = 0);
~ISettingWidget();
void initDeivce(QComboBox *box, const QStringList &names, const QStringList &ids,
const char *configName);
public slots:
void changeStackWidget();
private slots:
void on_pushButton_clicked();
void onMicphoneChanged(int currentIndex);
void onCameraChanged(int currentIndex);
void onSpeakerChanged(int currentIndex);
void on_pushButton_logout_clicked();
void on_horizontalSlider_volume_actionTriggered(int action);
void on_checkBox_boots_clicked(bool checked);
void on_pushButton_6_clicked();
void writeConfig();
void readConfig(); //读取配置信息
void on_checkBox_callsounds_clicked(bool checked);
void on_checkBox_messagesounds_clicked(bool checked);
void on_checkBox_Login_toggled(bool checked);
public slots:
void doResponse(int,int,QString,QString);
void show();
private:
Ui::ISettingWidget *ui;
QPushButton *currentButton;
};
#endif // ISETTINGWIDGET_H