Rev 391 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 391 | Rev 440 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2008 by Manuel Schrape * |
2 | * Copyright (C) 2008 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License. * |
7 | * the Free Software Foundation; either version 2 of the License. * |
8 | * * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
12 | * GNU General Public License for more details. * |
13 | * * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program; if not, write to the * |
15 | * along with this program; if not, write to the * |
16 | * Free Software Foundation, Inc., * |
16 | * Free Software Foundation, Inc., * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | ***************************************************************************/ |
18 | ***************************************************************************/ |
19 | #ifndef CKML_SERVER_H |
19 | #ifndef CKML_SERVER_H |
20 | #define CKML_SERVER_H |
20 | #define CKML_SERVER_H |
21 | 21 | ||
22 | #include <QTcpServer> |
22 | #include <QTcpServer> |
23 | #include <QTcpSocket> |
23 | #include <QTcpSocket> |
24 | 24 | ||
25 | //#include "../global.h" |
25 | //#include "../global.h" |
26 | #include "../Classes/cSettings.h" |
26 | #include "../Classes/cSettings.h" |
27 | 27 | ||
28 | class cKML_Server : public QObject |
28 | class cKML_Server : public QObject |
29 | { |
29 | { |
30 | Q_OBJECT |
30 | Q_OBJECT |
31 | 31 | ||
32 | public: |
32 | public: |
33 | cKML_Server(); |
33 | cKML_Server(); |
34 | ~cKML_Server(); |
34 | ~cKML_Server(); |
35 | 35 | ||
36 | void start_Server(int Port, cSettings *Set); |
36 | void start_Server(int Port, cSettings *Set); |
37 | 37 | ||
38 | void stop_Server(); |
38 | void stop_Server(); |
39 | void store_NaviString(sNaviString Navi); |
39 | void store_NaviString(sNaviData Navi); |
40 | 40 | ||
41 | 41 | ||
42 | private: |
42 | private: |
43 | QTcpServer *TcpServer; |
43 | QTcpServer *TcpServer; |
44 | QTcpSocket *TcpSocket; |
44 | QTcpSocket *TcpSocket; |
45 | 45 | ||
46 | cSettings *Settings; |
46 | cSettings *Settings; |
47 | 47 | ||
48 | QByteArray get_KML(); |
48 | QByteArray get_KML(); |
49 | sNaviString Route[MaxNaviPos]; |
49 | sNaviData Route[MaxNaviPos]; |
50 | int NaviCount; |
50 | int NaviCount; |
51 | 51 | ||
52 | private slots: |
52 | private slots: |
53 | void slot_NewConnection(); |
53 | void slot_NewConnection(); |
54 | void slot_ReadData(); |
54 | void slot_ReadData(); |
55 | }; |
55 | }; |
56 | 56 | ||
57 | #endif // CSERVER_H |
57 | #endif // CSERVER_H |
58 | 58 |