File: server_private.h

package info (click to toggle)
qxmlrpc 0.0.svn6-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 392 kB
  • ctags: 200
  • sloc: cpp: 1,621; python: 29; makefile: 23
file content (37 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// vim:tabstop=4:shiftwidth=4:expandtab:cinoptions=(s,U1,m1
// Copyright (C) 2005 Dmitry Poplavsky <dima@thekompany.com>

#ifndef XMLRPC_SERVER_PRIVATE_H
#define XMLRPC_SERVER_PRIVATE_H

#include <QTcpServer>
#include <QPointer>

#include "variant.h"

namespace  xmlrpc {

class Server;

//For internal use by xmlrpc::Serevr
//It collects data from one connection, and calls parent->processRequest()
class IncomingConnection : public QObject
{
Q_OBJECT
public:
    IncomingConnection(Server *parent, QTcpSocket *socket );
public slots:
    void readData();
private:
    Server *server;
    QPointer<QTcpSocket> socket;
    QByteArray data;
};



} // namespace

#endif // XMLRPC_SERVER_H