QXmlRPC 1.1
xmlrpc/server_private.h
00001 // vim:tabstop=4:shiftwidth=4:expandtab:cinoptions=(s,U1,m1
00002 // Copyright (C) 2005 Dmitry Poplavsky <dima@thekompany.com>
00003 
00004 #ifndef XMLRPC_SERVER_PRIVATE_H
00005 #define XMLRPC_SERVER_PRIVATE_H
00006 
00007 #include <QTcpServer>
00008 #include <QPointer>
00009 
00010 #include "variant.h"
00011 
00012 namespace  xmlrpc {
00013 
00014 class Server;
00015 
00016 //For internal use by xmlrpc::Serevr
00017 //It collects data from one connection, and calls parent->processRequest()
00018 class IncomingConnection : public QObject
00019 {
00020 Q_OBJECT
00021 public:
00022     IncomingConnection(Server *parent, QTcpSocket *socket );
00023 public slots:
00024     void readData();
00025 private:
00026     Server *server;
00027     QPointer<QTcpSocket> socket;
00028     QByteArray data;
00029 };
00030 
00031 
00032 
00033 } // namespace
00034 
00035 #endif // XMLRPC_SERVER_H
00036 
00037