comparison src/UiGuiIndentServer.h @ 638:94734b9eb54f

Renamed the source files and some classes to have consistent names. What a nice kind of work. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@897 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Tue, 11 Nov 2008 14:56:11 +0000
parents
children b964e594c0a4
comparison
equal deleted inserted replaced
637:67a46ff9cac2 638:94734b9eb54f
1 /***************************************************************************
2 * Copyright (C) 2006-2008 by Thomas Schweitzer *
3 * thomas-schweitzer(at)arcor.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 version 2.0 as *
7 * published by the Free Software Foundation. *
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 in the file LICENSE.GPL; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
18 ***************************************************************************/
19
20 #ifndef UIGUIINDENTSERVER_H
21 #define UIGUIINDENTSERVER_H
22
23 #include <QTcpServer>
24 #include <QTcpSocket>
25 #include <QMessageBox>
26
27 class UiGuiIndentServer : public QObject
28 {
29 Q_OBJECT
30
31 public:
32 UiGuiIndentServer(void);
33 ~UiGuiIndentServer(void);
34
35 public slots:
36 void startServer();
37 void stopServer();
38
39 private slots:
40 void handleNewConnection();
41 void handleReceivedData();
42 void sendMessage(const QString &message);
43 void checkIfReadyForHandleRequest();
44
45 private:
46 QTcpServer *tcpServer;
47 QByteArray dataToSend;
48 bool readyForHandleRequest;
49 QTcpSocket *currentClientConnection;
50 quint32 blockSize;
51 };
52
53 #endif // UIGUIINDENTSERVER_H