This file is indexed.

/usr/include/libusermetrics-1/libusermetricsinput/MetricUpdate.h is in libusermetricsinput1-dev 1.1.1+15.10.20150915-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
/*
 * Copyright (C) 2013 Canonical, Ltd.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of version 3 of the GNU Lesser General Public License 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 program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Pete Woods <pete.woods@canonical.com>
 */

#ifndef USERMETRICSINPUT_METRICUPDATE_H_
#define USERMETRICSINPUT_METRICUPDATE_H_

#include <QtCore/QObject>
#include <QtCore/QScopedPointer>

/**
 * @{
 */

namespace UserMetricsInput {

class MetricUpdate;

/**
 * @brief Useful to store your instance of MetricUpdate in.
 **/
typedef QScopedPointer<MetricUpdate> MetricUpdatePtr;

/**
 * @brief An update to a Metric
 *
 * This is a short-lived class representing an update for a particular
 * use to a Metric.
 **/
class Q_DECL_EXPORT MetricUpdate: public QObject {
public:
	/**
	 * @brief This constructor cannot be used - the class is pure-virtual.
	 */
	explicit MetricUpdate(QObject *parent = 0);

	/**
	 * @brief Destructor
	 */
	virtual ~MetricUpdate();

	/**
	 * @brief Add data to a UserMetricsInputMetricUpdate.
	 *
	 * @param data The double-valued data to add
	 *
	 * Each call to this method appends a new day's data to the update.
	 * So the first call adds data for today, the second call adds data for
	 * yesterday, and so on.
	 */
	virtual void addData(double data) = 0;

	/**
	 * @brief Add unknown data to an update.
	 *
	 * If data is not known for a particular day, then null can be added.
	 */
	virtual void addNull() = 0;
};

}

/**
 * @}
 **/

#endif // USERMETRICSINPUT_METRICUPDATE_H_