~sil2100/location-service/gps-arm64

« back to all changes in this revision

Viewing changes to include/location_service/com/ubuntu/location/service/session/skeleton.h

  • Committer: Thomas Voß
  • Date: 2013-05-28 14:20:45 UTC
  • Revision ID: thomas.voss@canonical.com-20130528142045-kq5umqdmm4o53vwk
Initial push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_SESSION_SKELETON_H_
 
2
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_SESSION_SKELETON_H_
 
3
 
 
4
#include "com/ubuntu/location/service/session/interface.h"
 
5
 
 
6
#include "com/ubuntu/location/channel.h"
 
7
#include "com/ubuntu/location/heading.h"
 
8
#include "com/ubuntu/location/position.h"
 
9
#include "com/ubuntu/location/provider.h"
 
10
#include "com/ubuntu/location/update.h"
 
11
#include "com/ubuntu/location/velocity.h"
 
12
 
 
13
#include <org/freedesktop/dbus/message.h>
 
14
#include <org/freedesktop/dbus/skeleton.h>
 
15
 
 
16
#include <functional>
 
17
 
 
18
namespace com
 
19
{
 
20
namespace ubuntu
 
21
{
 
22
namespace location
 
23
{
 
24
namespace service
 
25
{
 
26
namespace session
 
27
{
 
28
class Skeleton : public org::freedesktop::dbus::Skeleton<Interface>              
 
29
{
 
30
  public:
 
31
    Skeleton(
 
32
        const org::freedesktop::dbus::Bus::Ptr& bus, 
 
33
        const org::freedesktop::dbus::types::ObjectPath& session_path);
 
34
    
 
35
    virtual ~Skeleton() noexcept;
 
36
    
 
37
    virtual const org::freedesktop::dbus::types::ObjectPath& path() const;
 
38
 
 
39
  private:
 
40
    void handle_start_position_updates(DBusMessage* msg);
 
41
    void handle_stop_position_updates(DBusMessage* msg);
 
42
 
 
43
    void handle_start_velocity_updates(DBusMessage* msg);
 
44
    void handle_stop_velocity_updates(DBusMessage* msg);
 
45
 
 
46
    void handle_start_heading_updates(DBusMessage* msg);
 
47
    void handle_stop_heading_updates(DBusMessage* msg);
 
48
 
 
49
    org::freedesktop::dbus::types::ObjectPath session_path;
 
50
    org::freedesktop::dbus::Object::Ptr object;
 
51
};
 
52
}
 
53
}
 
54
}
 
55
}
 
56
}
 
57
 
 
58
#endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_SESSION_SKELETON_H_