This file is indexed.

/usr/share/sip/PyKDE4/akonadi/entity.sip is in python-kde4-dev 4:4.14.2-0ubuntu6.

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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
//
//     Copyright 2008 Simon Edwards <simon@simonzone.com>

//                 Generated by twine

// This file is part of PyKDE4.

// PyKDE4 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.

// PyKDE4 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 General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

uint                    qHash (const Akonadi::Entity&);
namespace Akonadi
{

class Entity
{
%TypeHeaderCode
#include <akonadi/entity.h>
%End


public:
    typedef qint64 Id;

    Id                      id () const;
    void                    setRemoteId (const QString& id);
    QString                 remoteId () const;
    bool                    isValid () const;
    bool                    operator == (const Akonadi::Entity& other) const;
    bool                    operator != (const Akonadi::Entity& other) const;
    void                    addAttribute (Akonadi::Attribute* attribute);
    void                    removeAttribute (const QByteArray& name);
    bool                    hasAttribute (const QByteArray& name) const;
    Akonadi::Attribute::List  attributes () const;
    void                    clearAttributes ();
    Akonadi::Attribute*     attribute (const QByteArray& name) const;

    enum CreateOption
    {
        AddIfMissing
    };


protected:
                            Entity (const Akonadi::Entity& other);
//ig                            Entity (EntityPrivate* dd);
    ~Entity ();
public:
    void                    setId (Akonadi::Entity::Id identifier);
    Akonadi::Collection     parentCollection () const;
//ig    Akonadi::Collection&    parentCollection ();
    void                    setParentCollection (const Akonadi::Collection& parent);
    void                    setRemoteRevision (const QString& revision);
    QString                 remoteRevision () const;
    bool                    operator < (const Akonadi::Entity& other) const;
};
// Entity

};
// Akonadi



%MappedType QList<Akonadi::Entity::Id>
{
%TypeHeaderCode
#include <qlist.h>
%End

%ConvertFromTypeCode
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj;

        if ((pobj = PyLong_FromLongLong (sipCpp->value(i))) == NULL)
        {
            Py_DECREF(l);

            return NULL;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
%End

%ConvertToTypeCode
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QList<Akonadi::Entity::Id> *ql = new QList<Akonadi::Entity::Id>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
        ql->append((Akonadi::Entity::Id)PyLong_AsLongLong(PyList_GET_ITEM(sipPy, i)));
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
%End
};

%MappedType QVector<Akonadi::Entity::Id>
{
%TypeHeaderCode
#include <qvector.h>
%End

%ConvertFromTypeCode
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj;

        if ((pobj = PyLong_FromLongLong (sipCpp->value(i))) == NULL)
        {
            Py_DECREF(l);

            return NULL;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
%End

%ConvertToTypeCode
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QVector<Akonadi::Entity::Id> *ql = new QVector<Akonadi::Entity::Id>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
        ql->append((Akonadi::Entity::Id)PyLong_AsLongLong(PyList_GET_ITEM(sipPy, i)));
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
%End
};