summaryrefslogtreecommitdiffstats
path: root/src/gui/syssettingsform.h
blob: fec5f7a2476c1bd82bb1d9589d780613b46d81a1 (plain)
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
#ifndef SYSSETTINGSFORM_H
#define SYSSETTINGSFORM_H

#include "sys_settings.h"
#include <QDialog>
#include "ui_syssettingsform.h"

class SysSettingsForm : public QDialog, public Ui::SysSettingsForm
{
	Q_OBJECT

public:
    SysSettingsForm(QWidget* parent = 0);
	~SysSettingsForm();

	virtual string comboItem2audio_dev( QString item, QLineEdit * qleOther, bool playback );

public slots:
	virtual void showCategory( int index );
	virtual void populateComboBox( QComboBox * cb, const QString & s );
	virtual void populate();
	virtual void validate();
	virtual void show();
	virtual int exec();
	virtual void chooseRingtone();
	virtual void chooseRingback();
	virtual void devRingtoneSelected( int idx );
	virtual void devSpeakerSelected( int idx );
	virtual void devMicSelected( int idx );
	virtual void playRingToneCheckBoxToggles( bool on );
	virtual void playRingBackToneCheckBoxToggles( bool on );

signals:
	void inhibitIdleSessionChanged();
	void sipUdpPortChanged();
	void rtpPortChanged();

protected slots:
	virtual void languageChange();

private:
	int idxOtherCaptureDevOss;
	int idxOtherCaptureDevAlsa;
	int idxOtherPlaybackDevOss;
	int idxOtherPlaybackDevAlsa;
	list<t_audio_device> list_audio_playback_dev;
	list<t_audio_device> list_audio_capture_dev;

	void init();

};


#endif