This file is indexed.

/usr/include/srchiliteqt/SourceHighlightSettingsPage.h is in libsource-highlight-qt4-dev 0.2.2-0ubuntu7.

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
/*
 *  Copyright (C) 2008-2010  Lorenzo Bettini, http://www.lorenzobettini.it
 *  License: See COPYING file that comes with this distribution
 */

#ifndef SOURCEHIGHLIGHTSETTINGSPAGE_H
#define SOURCEHIGHLIGHTSETTINGSPAGE_H

#include <QWidget>

namespace Ui {
    class SourceHighlightSettingsPage;
}

namespace srchilite {
    class Settings;
}

namespace srchiliteqt {

/**
 * A page for a dialog for source-highlight's specific settings; this
 * particular page deals with the data dir value).
 *
 * The page also validates source-highlight data dir, showing
 * an error label, in case.
 *
 * @since 0.2
 */
class SourceHighlightSettingsPage : public QWidget {
    Q_OBJECT
public:
    SourceHighlightSettingsPage(QWidget *parent = 0);
    ~SourceHighlightSettingsPage();

    /**
     * @param the value for the data-dir to show in the dialog
     */
    void setSourceHighlightDataDirPath(const QString &path);

    /**
     * @return the value of the data-dir of the dialog
     */
    const QString getSourceHighlightDataDirPath() const;

protected:
    void changeEvent(QEvent *e);

protected slots:
    /**
      * Opens a dialog for selecting a directory
      */
    void browseDir();

    /**
     * Uses the default value for datadir (hardcoded path
     * in source-highlight library)
     */
    void defaultDir();

    /**
      * Checks that the specified path is a valid
      * source-highlight's data dir path.
      * @param path
      */
    void validateDir(const QString &path);

private:
    Ui::SourceHighlightSettingsPage *ui;

    srchilite::Settings *sourceHighlightSettings;
};

}

#endif // SOURCEHIGHLIGHTSETTINGSPAGE_H