Last change
on this file was 2, checked in by dmik, 20 years ago |
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: client.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2002 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | #ifndef CLIENT_H
|
---|
12 | #define CLIENT_H
|
---|
13 |
|
---|
14 | #include "clientbase.h"
|
---|
15 |
|
---|
16 | class QSocket;
|
---|
17 | class QTextEdit;
|
---|
18 | class QLineEdit;
|
---|
19 | class QListBox;
|
---|
20 | class QLabel;
|
---|
21 |
|
---|
22 | static const Q_UINT16 infoPort = 42417;
|
---|
23 |
|
---|
24 | class ClientInfo : public ClientInfoBase
|
---|
25 | {
|
---|
26 | Q_OBJECT
|
---|
27 | public:
|
---|
28 | ClientInfo( QWidget *parent = 0, const char *name = 0 );
|
---|
29 |
|
---|
30 | private:
|
---|
31 | enum Operation { List, Get };
|
---|
32 |
|
---|
33 | private slots:
|
---|
34 | void connectToServer();
|
---|
35 | void selectItem( const QString& item );
|
---|
36 | void stepBack();
|
---|
37 | void sendToServer( Operation op, const QString& location );
|
---|
38 | void socketConnected();
|
---|
39 | void socketReadyRead();
|
---|
40 | void socketConnectionClosed();
|
---|
41 | void socketError( int code );
|
---|
42 |
|
---|
43 | private:
|
---|
44 | QSocket *socket;
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif // CLIENT_H
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.