This file is indexed.

/usr/include/prison/barcodeitem.h is in libprison-dev 1.1.1-1.

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
/*
    Copyright (c) 2010-2011 Sune Vuorela <sune@vuorela.dk>

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.

*/

#ifndef PRISON_BARCODEITEM_H
#define PRISON_BARCODEITEM_H

#include <QGraphicsItem>
#include <prison/prison_export.h>

namespace prison {

class AbstractBarcode;
/**
 * QGraphicsItem with a barcode 
 */
class PRISON_EXPORT BarcodeItem : public QGraphicsItem {
  public:
    /**
     * Creates a barcodeitem without a barcode generator
     * use setBarcode() to set a barcode generator
     * @param parent QGraphicsItem that this item is a child of
     */
    BarcodeItem(QGraphicsItem* parent=0);
    /**
     * creates a barcode item with barcode as barcode generator, and parent as parent
     * @param barcode Barcode generator, this function takes ownership over the barcode
     * @param parent QGraphicsItem that this item is a child of
     */
    BarcodeItem(prison::AbstractBarcode* barcode, QGraphicsItem* parent=0);
    virtual ~BarcodeItem();
    /**
     * sets the data on the barcode to data. THis function repaints and changes geometry
     * if needed.
     * @param data QString with the data to show on the barcode
     */
    void setData(const QString& data);
    /**
     * sets the barcode generator to barcode, and deletes the existing barcode generator if exists.
     * @param barcode barcode generator to use in this BarcodeItem. This function takes ownership over the barcode generator
     */
    void setBarcode(prison::AbstractBarcode* barcode);
    /**
     * Reimpl;
     * @param painter painter to paint on
     * @param option styleoption
     * @param widget 
     */
    virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
    /**
     * Reimplementation
     * @return boundingRect for this item
     */
    virtual QRectF boundingRect() const;
  private:
    class Private;
    /**
     * d pointer
     */
    Private* d;
};
}; //namespace

#endif // PRISON_BARCODEITEM_H