MetricUpdate.h
Go to the documentation of this file.
/*
* 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;
typedef QScopedPointer<MetricUpdate> MetricUpdatePtr;
class Q_DECL_EXPORT MetricUpdate: public QObject {
public:
explicit MetricUpdate(QObject *parent = 0);
virtual ~MetricUpdate();
virtual void addData(double data) = 0;
virtual void addNull() = 0;
};
}
#endif // USERMETRICSINPUT_METRICUPDATE_H_
UserMetricsInput::MetricUpdate
An update to a Metric.
Definition MetricUpdate.h:44
UserMetricsInput::MetricUpdate::addData
virtual void addData(double data)=0
Add data to a UserMetricsInputMetricUpdate.
UserMetricsInput::MetricUpdate::~MetricUpdate
virtual ~MetricUpdate()
Destructor.
UserMetricsInput::MetricUpdate::addNull
virtual void addNull()=0
Add unknown data to an update.
UserMetricsInput::MetricUpdate::MetricUpdate
MetricUpdate(QObject *parent=0)
This constructor cannot be used - the class is pure-virtual.
UserMetricsInput
The user metrics input library namespace.
Definition Metric.h:29
UserMetricsInput::MetricUpdatePtr
QScopedPointer< MetricUpdate > MetricUpdatePtr
Useful to store your instance of MetricUpdate in.
Definition MetricUpdate.h:36