This file is indexed.

/usr/include/qgis/qgsauthconfigidedit.h is in libqgis-dev 2.14.11+dfsg-3+deb9u1.

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
/***************************************************************************
    qgsauthconfigidedit.h
    ---------------------
    begin                : September, 2015
    copyright            : (C) 2015 by Boundless Spatial, Inc. USA
    author               : Larry Shaffer
    email                : lshaffer at boundlessgeo dot com
 ***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef QGSAUTHCONFIGIDEDIT_H
#define QGSAUTHCONFIGIDEDIT_H

#include "ui_qgsauthconfigidedit.h"

#include <QWidget>

/** \ingroup gui
 * \brief Custom widget for editing an authentication configuration ID
 * \note Validates the input against the database and for ID's 7-character alphanumeric syntax
 * \note not available in Python bindings
 */
class GUI_EXPORT QgsAuthConfigIdEdit : public QWidget, private Ui::QgsAuthConfigIdEdit
{
    Q_OBJECT

  public:
    /**
     * Widget to unlock and edit an authentication configuration ID
     * @param parent Parent widget
     * @param authcfg Authentication configuration ID
     * @param allowEmpty Whether to allow no ID to be set, even when editing, e.g. Add config functions
     */
    explicit QgsAuthConfigIdEdit( QWidget *parent = nullptr, const QString &authcfg = QString(), bool allowEmpty = true );
    ~QgsAuthConfigIdEdit();

    /** The authentication configuration ID, if valid, otherwise null QString */
    QString const configId();

    /** Whether to allow no ID to be set */
    bool allowEmptyId() { return mAllowEmpty;}

    /** Validate the widget state and ID */
    bool validate();

  signals:
    /** Validity of the ID has changed */
    void validityChanged( bool valid );

  public slots:
    /** Set the authentication configuration ID, storing it, and validating the passed value */
    void setAuthConfigId( const QString &authcfg );

    /** Set whether to allow no ID to be set */
    void setAllowEmptyId( bool allowed );

    /** Clear all of the widget's editing state and contents */
    void clear();

  private slots:
    void updateValidityStyle( bool valid );

    void on_btnLock_toggled( bool checked );

    void on_leAuthCfg_textChanged( const QString &txt );

  private:
    bool isAlphaNumeric( const QString &authcfg );

    QString mAuthCfgOrig;
    bool mValid;
    bool mAllowEmpty;
};

#endif // QGSAUTHCONFIGIDEDIT_H