This file is indexed.

/usr/include/qofono-qt5/qofonoobject.h is in libqofono-dev 0.90+16.10.20160901-0ubuntu1.

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
/****************************************************************************
**
** Copyright (C) 2014-2015 Jolla Ltd.
** Contact: slava.monich@jolla.com
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
****************************************************************************/

#ifndef QOFONOOBJECT_H
#define QOFONOOBJECT_H

#include "dbustypes.h"

class QOfonoObject : public QObject
{
    Q_OBJECT
    Q_PROPERTY(bool valid READ isValid NOTIFY validChanged)

protected:
    friend class ValidTracker;
    class ValidTracker {
    private:
        QOfonoObject* object;
    public:
        ValidTracker(QOfonoObject* object);
        ~ValidTracker();
    };

public:
    class ExtData {
    public:
        virtual ~ExtData();
    };

protected:
    QOfonoObject(ExtData *ext, QObject *parent = NULL);
    QOfonoObject(QObject *parent = NULL);
    ~QOfonoObject();

    virtual ExtData* extData() const;

public:
    QString objectPath() const;
    void setObjectPath(const QString &path, const QVariantMap *properties = NULL);
    virtual bool isValid() const;

Q_SIGNALS:
    void validChanged(bool valid);
    void setPropertyFinished();
    void reportError(const QString &errorString);

protected:
    virtual void objectPathChanged(const QString &path, const QVariantMap *properties) = 0;
    virtual QDBusAbstractInterface *createDbusInterface(const QString &path) = 0;
    virtual void dbusInterfaceDropped();

    virtual QVariant convertProperty(const QString &key, const QVariant &value);
    virtual void updateProperty(const QString &key, const QVariant &value);
    virtual void propertyChanged(const QString &key, const QVariant &value);
    virtual void getPropertiesFinished(const QVariantMap &properties, const QDBusError *error);
    virtual void setPropertyFinished(const QString &property, const QDBusError *error);

    void setProperty(const QString &key, const QVariant &value);
    bool setPropertySync(const QString &key, const QVariant &value);

    void removeProperty(const QString &key);
    QVariantMap getProperties() const;
    QVariant getProperty(const QString &key) const;
    QString getString(const QString &key) const;
    QStringList getStringList(const QString &key) const;
    QVariantMap getVariantMap(const QString &key) const;
    QVariantList getVariantList(const QString &key) const;
    bool getBool(const QString &key) const;
    uint getUInt(const QString &key) const;
    int getInt(const QString &key) const;

    QDBusAbstractInterface *dbusInterface() const;
    void setDbusInterface(QDBusAbstractInterface *dbus, const QVariantMap *properties = NULL);
    void resetDbusInterface(const QVariantMap *properties = NULL);
    void fixObjectPath(const QString &path);

private slots:
    void onGetPropertiesFinished(QDBusPendingCallWatcher *watch);
    void onSetPropertyFinished(QDBusPendingCallWatcher *watch);
    void onPropertyChanged(const QString &key, const QDBusVariant &value);

private:
    class Private;
    Private *d_ptr;
};

inline QString QOfonoObject::getString(const QString &key) const
    { return getProperty(key).toString(); }
inline QStringList QOfonoObject::getStringList(const QString &key) const
    { return getProperty(key).toStringList(); }
inline QVariantMap QOfonoObject::getVariantMap(const QString &key) const
    { return getProperty(key).value<QVariantMap>(); }
inline QVariantList QOfonoObject::getVariantList(const QString &key) const
    { return getProperty(key).value<QVariantList>(); }
inline bool QOfonoObject::getBool(const QString &key) const
    { return getProperty(key).toBool(); }
inline uint QOfonoObject::getUInt(const QString &key) const
    { return getProperty(key).toUInt(); }
inline int QOfonoObject::getInt(const QString &key) const
    { return getProperty(key).toInt(); }

#endif // QOFONOOBJECT_H