This file is indexed.

/usr/include/QtOAuth/interface.h is in libqoauth-dev 1.0.1-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
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/***************************************************************************
 *   Copyright (C) 2009 by Dominik Kapusta       <d@ayoy.net>              *
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Lesser General Public License as        *
 *   published by the Free Software Foundation; either version 2.1 of      *
 *   the License, or (at your option) any later version.                   *
 *                                                                         *
 *   This library is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   Lesser General Public License for more details.                       *
 *                                                                         *
 *   You should have received a copy of the GNU Lesser General Public      *
 *   License along with this library; if not, write to                     *
 *   the Free Software Foundation, Inc.,                                   *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
 ***************************************************************************/


/*!
  \file interface.h

  This file is a part of libqoauth. You should not include it directly in your
  application. Instead please use <tt>\#include &lt;QtOAuth&gt;</tt>.
*/

#ifndef INTERFACE_H
#define INTERFACE_H

#include <QObject>

#include <QtCrypto>

#include "qoauth_global.h"
#include "qoauth_namespace.h"

class QNetworkAccessManager;
class QNetworkReply;

namespace QOAuth {

class InterfacePrivate;

class QOAUTH_EXPORT Interface : public QObject
{
    Q_OBJECT

    Q_PROPERTY( QByteArray consumerKey READ consumerKey WRITE setConsumerKey )
    Q_PROPERTY( QByteArray consumerSecret READ consumerSecret WRITE setConsumerSecret )
    Q_PROPERTY( uint requestTimeout READ requestTimeout WRITE setRequestTimeout )
    Q_PROPERTY( bool ignoreSslErrors READ ignoreSslErrors WRITE setIgnoreSslErrors )
    Q_PROPERTY( int error READ error )

public:
    Interface( QObject *parent = 0 );
    Interface( QNetworkAccessManager *manager, QObject *parent = 0 );
    virtual ~Interface();

    QNetworkAccessManager* networkAccessManager() const;
    void setNetworkAccessManager(QNetworkAccessManager *manager);

    bool ignoreSslErrors() const;
    void setIgnoreSslErrors(bool enabled);

    QByteArray consumerKey() const;
    void setConsumerKey( const QByteArray &consumerKey );

    QByteArray consumerSecret() const;
    void setConsumerSecret( const QByteArray &consumerSecret );

    uint requestTimeout() const;
    void setRequestTimeout( uint msec );

    int error() const;

    bool setRSAPrivateKey( const QString &key,
                           const QCA::SecureArray &passphrase = QCA::SecureArray() );
    bool setRSAPrivateKeyFromFile( const QString &filename,
                                   const QCA::SecureArray &passphrase = QCA::SecureArray() );


    ParamMap requestToken( const QString &requestUrl, HttpMethod httpMethod,
                           SignatureMethod signatureMethod = HMAC_SHA1, const ParamMap &params = ParamMap() );

    ParamMap accessToken( const QString &requestUrl, HttpMethod httpMethod, const QByteArray &token,
                          const QByteArray &tokenSecret, SignatureMethod signatureMethod = HMAC_SHA1,
                          const ParamMap &params = ParamMap() );

    QByteArray createParametersString( const QString &requestUrl, HttpMethod httpMethod,
                                       const QByteArray &token, const QByteArray &tokenSecret,
                                       SignatureMethod signatureMethod, const ParamMap &params, ParsingMode mode );

    QByteArray inlineParameters( const ParamMap &params, ParsingMode mode = ParseForRequestContent );


protected:
    InterfacePrivate * const d_ptr;

private:
    Q_DISABLE_COPY(Interface)
    Q_DECLARE_PRIVATE(Interface)
    Q_PRIVATE_SLOT(d_func(), void _q_parseReply(QNetworkReply *reply))
    Q_PRIVATE_SLOT(d_func(), void _q_setPassphrase(int id, const QCA::Event &event))
    Q_PRIVATE_SLOT(d_func(), void _q_handleSslErrors( QNetworkReply *reply,
                                                      const QList<QSslError> &errors ))

#ifdef UNIT_TEST
    friend class Ut_Interface;
    friend class Ft_Interface;
#endif
};

} // namespace QOAuth

#endif // INTERFACE_H