source: trunk/examples/network/networkprotocol/nntp.h

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: nntp.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 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 NNTP_H
12#define NNTP_H
13
14#include <qsocket.h>
15#include <qnetworkprotocol.h>
16
17class Nntp : public QNetworkProtocol
18{
19 Q_OBJECT
20
21public:
22 Nntp();
23 virtual ~Nntp();
24 virtual int supportedOperations() const;
25
26protected:
27 virtual void operationListChildren( QNetworkOperation *op );
28 virtual void operationGet( QNetworkOperation *op );
29
30 QSocket *commandSocket;
31 bool connectionReady;
32 bool readGroups;
33 bool readArticle;
34
35private:
36 bool checkConnection( QNetworkOperation *op );
37 void close();
38 void parseGroups();
39 void parseArticle();
40
41protected slots:
42 void hostFound();
43 void connected();
44 void closed();
45 void readyRead();
46 void error( int );
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.