This file is indexed.

/usr/include/qxmlrpc/client.h is in libqxmlrpc-dev 0.0.svn6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// vim:tabstop=4:shiftwidth=4:expandtab:cinoptions=(s,U1,m1
// Copyright (C) 2009 Dmytro Poplavskiy <dmitry.poplavsky@gmail.com>

#ifndef CLIENT_H
#define CLIENT_H

#include <qobject.h>
#include <QHttp>

#include "variant.h"
class QAuthenticator;

namespace  xmlrpc {

/*!
 \class xmlrpc::Client client.h
 \brief The xmlrpc::Client class provides an implementation of the XML-RPC client.

 The class works asynchronously, so there are no blocking functions.

 Each XML-RPC request has unique identifier, which is returned by xmlrpc::Client::request()
 and is emited with done() and failed() signals.



\code
 client = new xmlrpc::Client(this);
 connect( client, SIGNAL(done( int, QVariant )),
          this, SLOT(processReturnValue( int, QVariant )) );
 connect( client, SIGNAL(failed( int, int, QString )),
          this, SLOT(processFault( int, int, QString )) );
 
 client->setHost( "localhost", 7777 );
 
 int requestId = client->request( "sum", x, y )
 
\endcode

 After the request is finished, done() or failed() signal
 will be emited with the request id and return value or fault information.
 */

class Client : public QObject {
Q_OBJECT
public:
	Client(QObject * parent = 0);
	Client(const QString & hostname, quint16 port = 80, QObject * parent = 0L);

    void setHost ( const QString & hostname, quint16 port = 80, QString path="/" );
    void setProxy ( const QString & host, int port, 
                    const QString & username = QString(), const QString & password = QString() );
    void setSocket ( QTcpSocket * socket );
    void setUser ( const QString & userName, const QString & password = QString() );

    void setUserAgent( const QString & userAgent );

	virtual ~Client();

    int request( QList<Variant> params, QString methodName );

    /* overloaded methods */
    int request( QString methodName );
    int request( QString methodName, Variant param1 );
    int request( QString methodName, Variant param1, Variant param2 );
    int request( QString methodName, Variant param1, Variant param2, Variant param3 );
    int request( QString methodName, Variant param1, Variant param2, Variant param3, Variant param4 );

signals:
    //! request requestId is done with return value res
    void done( int requestId, QVariant res );
    //! request requestId is failed with fault code faultCode and fault description faultString
    void failed( int requestId, int faultCode, QString faultString );

    //! authenticationRequired signal passed from QHttp
    void authenticationRequired ( const QString & hostname, quint16 port, QAuthenticator * );

    //! proxyAuthenticationRequired signal passed from QHttp
    void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *);

protected slots:
    void requestFinished(int id, bool error);

private:
	class Private;
	Private *d;
}; 

} // namespace

#endif // CLIENT_H