blob: ab50e020aaa561166189d0e83a6073ebe11fa82e [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 Masonec1e50412011-06-07 13:04:53 -070022ServiceDBusAdaptor::ServiceDBusAdaptor(DBus::Connection* conn,
23 ServiceRefPtr service)
Chris Masonea82b7112011-05-25 15:16:29 -070024 : DBusAdaptor(conn, kPath + service->UniqueName()),
Chris Masoned7732e42011-05-20 11:08:56 -070025 service_(service) {}
26ServiceDBusAdaptor::~ServiceDBusAdaptor() {}
27
28void ServiceDBusAdaptor::UpdateConnected() {}
29
Chris Masoned0ceb8c2011-06-02 10:05:39 -070030void ServiceDBusAdaptor::EmitBoolChanged(const std::string& name, bool value) {
31 PropertyChanged(name, DBusAdaptor::BoolToVariant(value));
32}
33
34void ServiceDBusAdaptor::EmitUintChanged(const std::string& name,
35 uint32 value) {
36 PropertyChanged(name, DBusAdaptor::UInt32ToVariant(value));
37}
38
39void ServiceDBusAdaptor::EmitIntChanged(const std::string& name, int value) {
40 PropertyChanged(name, DBusAdaptor::IntToVariant(value));
41}
42
43void ServiceDBusAdaptor::EmitStringChanged(const std::string& name,
44 const std::string& value) {
45 PropertyChanged(name, DBusAdaptor::StringToVariant(value));
46
47}
48
Chris Masoned7732e42011-05-20 11:08:56 -070049map<string, ::DBus::Variant> ServiceDBusAdaptor::GetProperties(
50 ::DBus::Error &error) {
51 return map<string, ::DBus::Variant>();
52}
53
54void ServiceDBusAdaptor::SetProperty(const string& ,
55 const ::DBus::Variant& ,
56 ::DBus::Error &error) {
57}
58
59void ServiceDBusAdaptor::ClearProperty(const string& , ::DBus::Error &error) {
60}
61
62void ServiceDBusAdaptor::Connect(::DBus::Error &error) {
63}
64
65void ServiceDBusAdaptor::Disconnect(::DBus::Error &error) {
66}
67
68void ServiceDBusAdaptor::Remove(::DBus::Error &error) {
69}
70
71void ServiceDBusAdaptor::MoveBefore(const ::DBus::Path& ,
72 ::DBus::Error &error) {
73}
74
75void ServiceDBusAdaptor::MoveAfter(const ::DBus::Path& ,
76 ::DBus::Error &error) {
77}
78
79void ServiceDBusAdaptor::ActivateCellularModem(const string& ,
80 ::DBus::Error &error) {
81}
82
83} // namespace shill