// SPDX-License-Identifier: LGPL-2.1-or-later
//
// SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org>
// SPDX-FileCopyrightText: 2010 Bastian Holst <bastianholst@gmx.de>
//

#ifndef GEOCUTE_ACCURACY_H
#define GEOCUTE_ACCURACY_H

#include <QMetaType>
#include <QtGlobal>

#include "AccuracyLevel.h"

class QDBusArgument;

namespace GeoCute
{

class Accuracy
{
public:
    /**
     * @brief Approximate descriptive accuracy.
     */
    AccuracyLevel level;
    /**
     * @brief Horizontal accuracy in meters.
     */
    qreal horizontal;
    /**
     * @brief Vertical accuracy in meters.
     */
    qreal vertical;
};

QDBusArgument &operator<<(QDBusArgument &argument, const Accuracy &accuracy);
const QDBusArgument &operator>>(const QDBusArgument &argument, Accuracy &accuracy);

}

Q_DECLARE_METATYPE(GeoCute::Accuracy)

#endif
