blob: 2eea799c54032648adfeaaa2e634db6c6561f174 [file] [log] [blame]
Chris Masoned7732e42011-05-20 11:08:56 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "shill/service_dbus_adaptor.h"
6
7#include <map>
8#include <string>
9
Chris Masonea82b7112011-05-25 15:16:29 -070010#include "shill/service.h"
11
Chris Masoned7732e42011-05-20 11:08:56 -070012using std::map;
13using std::string;
14
15namespace shill {
16
Chris Masoned7732e42011-05-20 11:08:56 -070017// static
18const char ServiceDBusAdaptor::kInterfaceName[] = SHILL_INTERFACE;
Chris Masoned7732e42011-05-20 11:08:56 -070019// static
Chris Masonea82b7112011-05-25 15:16:29 -070020const char ServiceDBusAdaptor::kPath[] = "/service/";
Chris Masoned7732e42011-05-20 11:08:56 -070021
Chris Masoned0ceb8c2011-06-02 10:05:39 -070022ServiceDBusAdaptor::ServiceDBusAdaptor(DBus::Connection* conn, Service *service)
Chris Masonea82b7112011-05-25 15:16:29 -070023 : DBusAdaptor(conn, kPath + service->UniqueName()),
Chris Masoned7732e42011-05-20 11:08:56 -070024 service_(service) {}
25ServiceDBusAdaptor::~ServiceDBusAdaptor() {}
26
27void ServiceDBusAdaptor::UpdateConnected() {}
28
Chris Masoned0ceb8c2011-06-02 10:05:39 -070029void ServiceDBusAdaptor::EmitBoolChanged(const std::string& name, bool value) {
30 PropertyChanged(name, DBusAdaptor::BoolToVariant(value));
31}
32
33void ServiceDBusAdaptor::EmitUintChanged(const std::string& name,
34 uint32 value) {
35 PropertyChanged(name, DBusAdaptor::UInt32ToVariant(value));
36}
37
38void ServiceDBusAdaptor::EmitIntChanged(const std::string& name, int value) {
39 PropertyChanged(name, DBusAdaptor::IntToVariant(value));
40}
41
42void ServiceDBusAdaptor::EmitStringChanged(const std::string& name,
43 const std::string& value) {
44 PropertyChanged(name, DBusAdaptor::StringToVariant(value));
45
46}
47
Chris Masoned7732e42011-05-20 11:08:56 -070048map<string, ::DBus::Variant> ServiceDBusAdaptor::GetProperties(
49 ::DBus::Error &error) {
50 return map<string, ::DBus::Variant>();
51}
52
53void ServiceDBusAdaptor::SetProperty(const string& ,
54 const ::DBus::Variant& ,
55 ::DBus::Error &error) {
56}
57
58void ServiceDBusAdaptor::ClearProperty(const string& , ::DBus::Error &error) {
59}
60
61void ServiceDBusAdaptor::Connect(::DBus::Error &error) {
62}
63
64void ServiceDBusAdaptor::Disconnect(::DBus::Error &error) {
65}
66
67void ServiceDBusAdaptor::Remove(::DBus::Error &error) {
68}
69
70void ServiceDBusAdaptor::MoveBefore(const ::DBus::Path& ,
71 ::DBus::Error &error) {
72}
73
74void ServiceDBusAdaptor::MoveAfter(const ::DBus::Path& ,
75 ::DBus::Error &error) {
76}
77
78void ServiceDBusAdaptor::ActivateCellularModem(const string& ,
79 ::DBus::Error &error) {
80}
81
82} // namespace shill