comparison src/UiGuiIndentServer.h @ 751:ac165b6ae67e

Done some refactoring: - Moved includes into the cpp files where possible and using class pre-declarations if possible - Made class member variable names begin with an underscore - Made by uic created header files be used as class members instead of inherting them - Renamed some variables to reflect their purpose better - Added some NULL initializations and added some comments - Rearranged some include and declaration code parts to be consistent and better readable - Updated for QScintilla 2.4.5 - Made UiGuiSettings be accessed via a shared pointer only git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1028 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Thu, 14 Oct 2010 19:52:47 +0000
parents aae5a8d04f70
children f3631db17328
comparison
equal deleted inserted replaced
750:a884b5861e93 751:ac165b6ae67e
18 ***************************************************************************/ 18 ***************************************************************************/
19 19
20 #ifndef UIGUIINDENTSERVER_H 20 #ifndef UIGUIINDENTSERVER_H
21 #define UIGUIINDENTSERVER_H 21 #define UIGUIINDENTSERVER_H
22 22
23 #include <QTcpServer> 23 #include <QObject>
24 #include <QTcpSocket> 24
25 #include <QMessageBox> 25 class QTcpServer;
26 class QTcpSocket;
27
26 28
27 class UiGuiIndentServer : public QObject 29 class UiGuiIndentServer : public QObject
28 { 30 {
29 Q_OBJECT 31 Q_OBJECT
30 32
41 void handleReceivedData(); 43 void handleReceivedData();
42 void sendMessage(const QString &message); 44 void sendMessage(const QString &message);
43 void checkIfReadyForHandleRequest(); 45 void checkIfReadyForHandleRequest();
44 46
45 private: 47 private:
46 QTcpServer *tcpServer; 48 QTcpServer *_tcpServer;
47 QByteArray dataToSend; 49 QByteArray _dataToSend;
48 bool readyForHandleRequest; 50 bool _readyForHandleRequest;
49 QTcpSocket *currentClientConnection; 51 QTcpSocket *_currentClientConnection;
50 quint32 blockSize; 52 quint32 _blockSize;
51 }; 53 };
52 54
53 #endif // UIGUIINDENTSERVER_H 55 #endif // UIGUIINDENTSERVER_H