1 /*
2  * %kadu copyright begin%
3  * Copyright 2016 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 "exports.h"
23 
24 #include <QtCore/QObject>
25 #include <QtCore/QPointer>
26 #include <injeqt/injeqt.h>
27 
28 class InjectedFactory;
29 class OpenChatWith;
30 
31 class KADUAPI OpenChatWithService : public QObject
32 {
33 	Q_OBJECT
34 
35 public:
36 	Q_INVOKABLE explicit OpenChatWithService(QObject *parent = nullptr);
37 	virtual ~OpenChatWithService();
38 
39 	void show();
40 
41 private:
42 	QPointer<InjectedFactory> m_injectedFactory;
43 	QPointer<OpenChatWith> m_openChatWithWindow;
44 
45 	QList<QString> m_uiFiles;
46 
47 private slots:
48 	INJEQT_SET void setInjectedFactory(InjectedFactory *injectedFactory);
49 
50 };
51