summaryrefslogtreecommitdiff
path: root/enhanced-position-service/dbus/src/position-feedback.h
blob: 5b089a8d2404d7b3c52b79ce732cad1ed13c3d6c (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
/**************************************************************************
* @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 ___POSITION_FEEDBACK_H
#define ___POSITION_FEEDBACK_H

#ifndef DBUS_HAS_RECURSIVE_MUTEX
#define DBUS_HAS_RECURSIVE_MUTEX
#endif
#include <dbus-c++/dbus.h>
#include "position-feedback-adaptor.h"

class PositionFeedback
  : public org::genivi::positioning::PositionFeedback_adaptor
  , public DBus::IntrospectableAdaptor
  , public DBus::ObjectAdaptor
{

public:

  PositionFeedback(DBus::Connection & connection, const char * path);

  ~PositionFeedback();

  ::DBus::Struct< uint16_t, uint16_t, uint16_t, std::string > GetVersion();

  void SetPositionFeedback(const std::vector< std::map< uint64_t, ::DBus::Variant > >& feedback, const uint64_t& timestamp, const uint16_t& feedbackType);
  
  void run();

  void shutdown();

};

#endif//___POSITION_FEEDBACK_H