Changeset View
Changeset View
Standalone View
Standalone View
plugin/connectioncheck.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2016 by Aditya Mehra <aix.m@outlook.com> * | ||||
3 | * This program is free software; you can redistribute it and/or modify | ||||
4 | * it under the terms of the GNU Library General Public License as | ||||
5 | * published by the Free Software Foundation; either version 2, or | ||||
6 | * (at your option) any later version. | ||||
7 | * | ||||
8 | * This program is distributed in the hope that it will be useful, | ||||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
11 | * GNU General Public License for more details | ||||
12 | * | ||||
13 | * You should have received a copy of the GNU Library General Public | ||||
14 | * License along with this program; if not, write to the | ||||
15 | * Free Software Foundation, Inc., | ||||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
17 | */ | ||||
18 | | ||||
19 | #ifndef CONNECTIONCHECK_H | ||||
20 | #define CONNECTIONCHECK_H | ||||
21 | | ||||
22 | #include <QObject> | ||||
23 | #include <QStringList> | ||||
24 | #include <QtNetwork> | ||||
25 | | ||||
26 | class ConnectionCheck : public QObject | ||||
27 | { | ||||
28 | Q_OBJECT | ||||
29 | | ||||
30 | public: | ||||
31 | explicit ConnectionCheck(QObject *parent = Q_NULLPTR); | ||||
32 | | ||||
33 | public Q_SLOTS: | ||||
34 | bool checkConnection(); | ||||
35 | | ||||
36 | }; | ||||
37 | | ||||
38 | #endif // CONNECTIONCHECK_H |