This file is indexed.

/usr/include/ofono-qt/ofonoconnman.h is in libofono-qt-dev 1.5+git20120419+bcf0c04-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
/*
 * This file is part of ofono-qt
 *
 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
 *
 * Contact: Alexander Kanavin <alex.kanavin@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

#ifndef OFONOCONNMAN_H
#define OFONOCONNMAN_H

#include <QtCore/QObject>
#include <QStringList>
#include <QDBusError>
#include <QDBusObjectPath>
#include "ofonomodeminterface.h"
#include "libofono-qt_global.h"

struct OfonoConnmanStruct {
    QDBusObjectPath path;
    QVariantMap properties;
};
typedef QList<OfonoConnmanStruct> OfonoConnmanList;
Q_DECLARE_METATYPE(OfonoConnmanStruct)
Q_DECLARE_METATYPE(OfonoConnmanList)

//! This class is used to access oFono connman API
/*!
 * The API is documented in
 * http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/connman-api.txt
 */
class OFONO_QT_EXPORT OfonoConnMan : public OfonoModemInterface
{
    Q_OBJECT

    Q_PROPERTY(bool attached READ attached NOTIFY attachedChanged)
    Q_PROPERTY(QString bearer READ bearer NOTIFY bearerChanged)
    Q_PROPERTY(bool suspended READ suspended NOTIFY suspendedChanged)
    Q_PROPERTY(bool roamingAllowed READ roamingAllowed WRITE setRoamingAllowed NOTIFY roamingAllowedChanged)
    Q_PROPERTY(bool powered READ powered WRITE setPowered NOTIFY poweredChanged)

public:
    OfonoConnMan(OfonoModem::SelectionSetting modemSetting, const QString &modemPath, QObject *parent=0);
    ~OfonoConnMan();

    Q_INVOKABLE QStringList getContexts();

    /* Properties */
    bool attached() const;
    QString bearer() const;
    bool suspended() const;
    bool roamingAllowed() const;
    bool powered() const;

public Q_SLOTS:
    void setPowered(const bool);
    void setRoamingAllowed(const bool);
    void deactivateAll();
    QDBusObjectPath addContext(const QString& type, bool &success);
    void removeContext(const QString& path);

Q_SIGNALS:
    void attachedChanged(const bool value);
    void bearerChanged(const QString &bearer);
    void suspendedChanged(const bool suspnd);
    void roamingAllowedChanged(const bool roaming);
    void poweredChanged(const bool powrd);
    void contextAdded(const QString& path);
    void contextRemoved(const QString& path);

    void deactivateAllComplete(bool success);
    void addContextComplete(bool success, const QString& path);
    void removeContextComplete(bool success);

    void setPoweredFailed();
    void setRoamingAllowedFailed();

private Q_SLOTS:
    void validityChanged(bool);
    void pathChanged(const QString& path);
    void propertyChanged(const QString& property, const QVariant& value);
    void contextAddedChanged(const QDBusObjectPath &path, const QVariantMap &properties);
    void contextRemovedChanged(const QDBusObjectPath &path);
    void deactivateAllResp();
    void deactivateAllErr(const QDBusError& error);
    void addContextResp(const QDBusObjectPath &path);
    void addContextErr(const QDBusError& error);
    void removeContextResp();
    void removeContextErr(const QDBusError& error);
    void setPropertyFailed(const QString& property);
private:
    QStringList getContextList();
    void connectDbusSignals(const QString& path);
private:
    QStringList m_contextlist;
};

#endif  /* !OFONOCONNMAN_H */