1 /*
2  * %kadu copyright begin%
3  * Copyright 2015 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com)
4  * %kadu copyright end%
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #pragma once
21 
22 #include "injeqt-type-roles.h"
23 
24 #include <QtCore/QPointer>
25 #include <injeqt/injeqt.h>
26 
27 class ConfigurationUiHandlerRepository;
28 class MainConfigurationWindowService;
29 class NotifierRepository;
30 class PathsProvider;
31 class SpeechConfigurationUiHandler;
32 class Speech;
33 
34 class SpeechPluginObject : public QObject
35 {
36 	Q_OBJECT
37 	INJEQT_TYPE_ROLE(PLUGIN)
38 
39 public:
40 	Q_INVOKABLE explicit SpeechPluginObject(QObject *parent = nullptr);
41 	virtual ~SpeechPluginObject();
42 
43 private:
44 	QPointer<ConfigurationUiHandlerRepository> m_configurationUiHandlerRepository;
45 	QPointer<MainConfigurationWindowService> m_mainConfigurationWindowService;
46 	QPointer<NotifierRepository> m_notifierRepository;
47 	QPointer<PathsProvider> m_pathsProvider;
48 	QPointer<SpeechConfigurationUiHandler> m_speechConfigurationUiHandler;
49 	QPointer<Speech> m_speech;
50 
51 private slots:
52 	INJEQT_SET void setConfigurationUiHandlerRepository(ConfigurationUiHandlerRepository *configurationUiHandlerRepository);
53 	INJEQT_SET void setMainConfigurationWindowService(MainConfigurationWindowService *mainConfigurationWindowService);
54 	INJEQT_SET void setNotifierRepository(NotifierRepository *notifierRepository);
55 	INJEQT_SET void setPathsProvider(PathsProvider *pathsProvider);
56 	INJEQT_SET void setSpeechConfigurationUiHandler(SpeechConfigurationUiHandler *speechConfigurationUiHandler);
57 	INJEQT_SET void setSpeech(Speech *speech);
58 	INJEQT_INIT void init();
59 	INJEQT_DONE void done();
60 
61 };
62