File indexing completed on 2024-05-05 03:50:35

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org>
0004 // SPDX-FileCopyrightText: 2010 Bastian Holst <bastianholst@gmx.de>
0005 //
0006 
0007 #ifndef GEOCUTE_ACCURACY_H
0008 #define GEOCUTE_ACCURACY_H
0009 
0010 #include <QMetaType>
0011 #include <QtGlobal>
0012 
0013 #include "AccuracyLevel.h"
0014 
0015 
0016 class QDBusArgument;
0017 
0018 namespace GeoCute
0019 {
0020     
0021 class Accuracy
0022 {
0023     public:
0024         /**
0025          * @brief Approximate descriptive accuracy.
0026          */
0027         AccuracyLevel level;
0028         /**
0029          * @brief Horizontal accuracy in meters.
0030          */
0031         qreal horizontal;
0032         /**
0033          * @brief Vertical accuracy in meters.
0034          */
0035         qreal vertical;
0036 };
0037 
0038 QDBusArgument& operator<<(QDBusArgument& argument, const Accuracy& accuracy);
0039 const QDBusArgument& operator>>(const QDBusArgument& argument,
0040     Accuracy& accuracy);
0041 
0042 }
0043 
0044 Q_DECLARE_METATYPE(GeoCute::Accuracy)
0045 
0046 
0047 
0048 #endif