1 /*
2  * %kadu copyright begin%
3  * Copyright 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im)
4  * Copyright 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com)
5  * %kadu copyright end%
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #pragma once
22 
23 #include "gui/widgets/configuration/notifier-configuration-widget.h"
24 
25 #include <QtCore/QMap>
26 #include <QtCore/QPointer>
27 #include <injeqt/injeqt.h>
28 
29 class Configuration;
30 
31 class QLineEdit;
32 
33 class SpeechConfigurationWidget : public NotifierConfigurationWidget
34 {
35 	Q_OBJECT
36 
37 	QPointer<Configuration> m_configuration;
38 
39 	QMap<QString, QString> maleFormat;
40 	QMap<QString, QString> femaleFormat;
41 	QString currentNotificationEvent;
42 
43 	QLineEdit *maleLineEdit;
44 	QLineEdit *femaleLineEdit;
45 
46 private slots:
47 	INJEQT_SET void setConfiguration(Configuration *configuration);
48 
49 public:
50 	explicit SpeechConfigurationWidget(QWidget *parent = nullptr);
51 	virtual ~SpeechConfigurationWidget();
52 
loadNotifyConfigurations()53 	virtual void loadNotifyConfigurations() {}
54 	virtual void saveNotifyConfigurations();
55 	virtual void switchToEvent(const QString &event);
56 
57 };
58