summaryrefslogtreecommitdiff
path: root/enhanced-position-service/dbus/src/configuration.h
blob: 35e6c6bb750b377ef615167492127ad000d56b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**************************************************************************
* @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

#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