• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • positionprovider
  • geoclue
  • GeoCute
Accuracy.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Eckhart Wörner <ewoerner@kde.org>
9 //
10 
11 #include "Accuracy.h"
12 
13 #include <QDBusArgument>
14 
15 
16 
17 using namespace GeoCute;
18 
19 QDBusArgument& GeoCute::operator<<(QDBusArgument& argument,
20  const Accuracy& accuracy) {
21  argument.beginStructure();
22  argument << accuracy.level << accuracy.horizontal << accuracy.vertical;
23  argument.endStructure();
24  return argument;
25 }
26 
27 const QDBusArgument& GeoCute::operator>>(const QDBusArgument& argument,
28  Accuracy& accuracy) {
29  int level = static_cast<int>(accuracy.level);
30  argument.beginStructure();
31  argument >> level >> accuracy.horizontal >> accuracy.vertical;
32  argument.endStructure();
33  return argument;
34 }
Accuracy.h
GeoCute::Accuracy::level
AccuracyLevel level
Approximate descriptive accuracy.
Definition: Accuracy.h:32
QDBusArgument::beginStructure
void beginStructure()
GeoCute::Accuracy
Definition: Accuracy.h:26
GeoCute::operator>>
const QDBusArgument & operator>>(const QDBusArgument &argument, Accuracy &accuracy)
Definition: Accuracy.cpp:27
GeoCute::Accuracy::horizontal
qreal horizontal
Horizontal accuracy in meters.
Definition: Accuracy.h:36
QDBusArgument
GeoCute::Accuracy::vertical
qreal vertical
Vertical accuracy in meters.
Definition: Accuracy.h:40
GeoCute::operator<<
QDBusArgument & operator<<(QDBusArgument &argument, const Accuracy &accuracy)
Definition: Accuracy.cpp:19
QDBusArgument::endStructure
void endStructure()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal