This file is indexed.

/usr/include/KDb3/KDbVersionInfo.h is in libkdb3-dev 3.1.0-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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
/****************************************************************************
** Shared Class code from reading file 'KDbVersionInfo.shared.h'
**
** Created
**      by: The Shared Data Compiler version 0.3
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

/* This file is part of the KDE project
   Copyright (C) 2003-2010 Jarosław Staniek <staniek@kde.org>

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This program 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this program; see the file COPYING.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
*/

#ifndef KDB_VERSIONINFO_H
#define KDB_VERSIONINFO_H

#include "kdb_export.h"
#include <QString>
#include <QSharedData>
#ifdef __GNUC__
# include <sys/types.h> // We use minor/major identifiers, force this include
                        // to have "#define minor gnu_dev_minor" from sys/sysmacros.h
                        // and immediately undefine that; same for major.
# undef minor
# undef major
#endif

/*! Provides version information.

 KDb::version() provides library version that can be compared to driver's plugin version
 KDbDriverMetaData::version().

 @note There is also KDbConnection::databaseVersion() that is retrieved from
 database/connection properties.

 @see KDbConnection::serverVersion()
*/
/*! @note objects of this class are implicitly shared, what means they have value semantics
          by offering copy-on-write behaviour to maximize resource usage and minimize copying.
          Only a pointer to the data is passed around. See <a href="http://doc.qt.io/qt-5/qshareddatapointer.html#details">Qt documentation</a>.
 */
//! @note This class has been generated using the following SDC class options: operator==, implicit
class KDB_EXPORT KDbVersionInfo
{
public:



    //! @internal data class used to implement implicitly shared class KDbVersionInfo.
    //! Provides thread-safe reference counting.
    class Data : public QSharedData
    {
    public:
        Data()
        : major(0)
        , minor(0)
        , release(0)
        {
        }

        Data(const Data &other)
         : QSharedData(other)
         , major(other.major)
         , minor(other.minor)
         , release(other.release)
        {
        }

        virtual ~Data() {}

        //! Clones the object with all attributes; the copy isn't shared with the original.
        virtual Data* clone() const { return new Data(*this); }

        bool operator==(const Data &other) const {
            return major == other.major
                   && minor == other.minor
                   && release == other.release;
        }

        int major; //!< @see KDbVersionInfo::major(), KDbVersionInfo::setMajor()
        int minor; //!< @see KDbVersionInfo::minor(), KDbVersionInfo::setMinor()
        int release; //!< @see KDbVersionInfo::release(), KDbVersionInfo::setRelease()
    };

    KDbVersionInfo()
     : d(new Data)
    {
    }

    KDbVersionInfo(const KDbVersionInfo &other)
     : d(other.d)
    {
    }

    virtual ~KDbVersionInfo();

    /*!
    @return major version number, e.g. 1 for 1.8.9
    */
    int major() const {
        return d->major;
    }

    /*!
    Sets the major version number.
    */
    void setMajor(int major) {
        d->major = major;
    }

    /*!
    @return minor version number, e.g. 8 for 1.8.9
    */
    int minor() const {
        return d->minor;
    }

    /*!
    Sets the minor version number.
    */
    void setMinor(int minor) {
        d->minor = minor;
    }

    /*!
    @return release version number, e.g. 9 for 1.8.9
    */
    int release() const {
        return d->release;
    }

    /*!
    Sets the release version number.
    */
    void setRelease(int release) {
        d->release = release;
    }

    //! @return true if this object is equal to @a other; otherwise returns false.
    bool operator==(const KDbVersionInfo &other) const {
        return *d == *other.d;
    }

    //! @return true if this object is not equal to @a other; otherwise returns false.
    bool operator!=(const KDbVersionInfo &other) const {
        return !operator==(other);
    }


    inline KDbVersionInfo(int majorVersion, int minorVersion, int releaseVersion)
     : d(new Data)
    {
        d->major = majorVersion;
        d->minor = minorVersion;
        d->release = releaseVersion;
    }

    //! @return true if @a major and @a minor exatcly matches major and minor version of this info, respectively.
    inline bool matches(int major, int minor) const { return major == d->major && minor == d->minor; }

    //! @return true if this version info is null, i.e. all the version numbers are zero.
    bool isNull() const;

protected:
    QSharedDataPointer<Data> d;
};

/*! Provides information about version of given database backend.
*/
/*! @note objects of this class are implicitly shared, what means they have value semantics
          by offering copy-on-write behaviour to maximize resource usage and minimize copying.
          Only a pointer to the data is passed around. See <a href="http://doc.qt.io/qt-5/qshareddatapointer.html#details">Qt documentation</a>.
 */
//! @note This class has been generated using the following SDC class options: operator==, implicit
class KDB_EXPORT KDbServerVersionInfo
{
public:




    //! @internal data class used to implement implicitly shared class KDbServerVersionInfo.
    //! Provides thread-safe reference counting.
    class Data : public QSharedData
    {
    public:
        Data()
        : major(0)
        , minor(0)
        , release(0)
        {
        }

        Data(const Data &other)
         : QSharedData(other)
         , major(other.major)
         , minor(other.minor)
         , release(other.release)
         , string(other.string)
        {
        }

        virtual ~Data() {}

        //! Clones the object with all attributes; the copy isn't shared with the original.
        virtual Data* clone() const { return new Data(*this); }

        bool operator==(const Data &other) const {
            return major == other.major
                   && minor == other.minor
                   && release == other.release
                   && string == other.string;
        }

        int major; //!< @see KDbServerVersionInfo::major(), KDbServerVersionInfo::setMajor()
        int minor; //!< @see KDbServerVersionInfo::minor(), KDbServerVersionInfo::setMinor()
        int release; //!< @see KDbServerVersionInfo::release(), KDbServerVersionInfo::setRelease()
        QString string; //!< @see KDbServerVersionInfo::string(), KDbServerVersionInfo::setString()
    };

    KDbServerVersionInfo()
     : d(new Data)
    {
    }

    KDbServerVersionInfo(const KDbServerVersionInfo &other)
     : d(other.d)
    {
    }

    virtual ~KDbServerVersionInfo();

    /*!
    @return major version number, e.g. 1 for 1.8.9
    */
    int major() const {
        return d->major;
    }

    /*!
    Sets the major version number.
    */
    void setMajor(int major) {
        d->major = major;
    }

    /*!
    @return minor version number, e.g. 8 for 1.8.9
    */
    int minor() const {
        return d->minor;
    }

    /*!
    Sets the minor version number.
    */
    void setMinor(int minor) {
        d->minor = minor;
    }

    /*!
    @return release version number, e.g. 9 for 1.8.9
    */
    int release() const {
        return d->release;
    }

    /*!
    Sets the release version number.
    */
    void setRelease(int release) {
        d->release = release;
    }

    /*!
    @return version string, as returned by the server.
    */
    QString string() const {
        return d->string;
    }

    /*!
    Sets the version string, as returned by the server.
    */
    void setString(const QString & string) {
        d->string = string;
    }

    //! @return true if this object is equal to @a other; otherwise returns false.
    bool operator==(const KDbServerVersionInfo &other) const {
        return *d == *other.d;
    }

    //! @return true if this object is not equal to @a other; otherwise returns false.
    bool operator!=(const KDbServerVersionInfo &other) const {
        return !operator==(other);
    }


    //! Clears the information - integers will be set to 0 and string to null
    void clear();

    //! @return true if this version info is null, i.e. all the version numbers are zero.
    bool isNull() const;

protected:
    QSharedDataPointer<Data> d;
};

#endif