summaryrefslogtreecommitdiff
path: root/src/dead-reckoning/configuration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dead-reckoning/configuration.h')
-rw-r--r--src/dead-reckoning/configuration.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/dead-reckoning/configuration.h b/src/dead-reckoning/configuration.h
new file mode 100644
index 0000000..e9f23f8
--- /dev/null
+++ b/src/dead-reckoning/configuration.h
@@ -0,0 +1,56 @@
+/**************************************************************************
+* @licence app begin@
+*
+* SPDX-License-Identifier: MPL-2.0
+*
+* \ingroup EnhancedPositionService
+* \author Marco Residori <marco.residori@xse.de>
+*
+* \copyright Copyright (C) 2014, XS Embedded GmbH
+*
+* \license
+* This Source Code Form is subject to the terms of the
+* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
+* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+*
+* @licence end@
+**************************************************************************/
+#ifndef ___CONFIGURATION_H
+#define ___CONFIGURATION_H
+
+#ifndef DBUS_HAS_RECURSIVE_MUTEX
+#define DBUS_HAS_RECURSIVE_MUTEX
+#endif
+#include <dbus-c++/dbus.h>
+#include "configuration-adaptor.h"
+
+class Configuration
+ : public org::genivi::positioning::Configuration_adaptor
+ , public DBus::IntrospectableAdaptor
+ , public DBus::ObjectAdaptor
+{
+public:
+
+ Configuration(DBus::Connection &connection, const char * path);
+
+ ~Configuration();
+
+ ::DBus::Struct< uint16_t, uint16_t, uint16_t, std::string > GetVersion();
+
+ std::map< std::string, ::DBus::Variant > GetProperties();
+
+ void SetProperty(const std::string& name, const ::DBus::Variant& value);
+
+ std::map< std::string, ::DBus::Variant > GetSupportedProperties();
+
+ void run();
+
+ void shutdown();
+
+private:
+
+ int32_t mUpdateInterval;
+ uint32_t mSatelliteSystem;
+};
+
+#endif//__CONFIGURATION_H