Subversion Repositories Projects

Rev

Rev 227 | Details | Compare with Previous | Last modification | View Log | RSS feed

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