blob: 59f762be8842d09048d9bedb355ef3e78b57cafd [file] [log] [blame]
mukesh agrawalaf571952011-07-14 14:31:12 -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 "supplicant_process_proxy.h"
6
7#include <map>
8#include <string>
9
10#include <base/logging.h>
11#include <dbus-c++/dbus.h>
12
13using std::map;
14using std::string;
15
16namespace shill {
17
18SupplicantProcessProxy::SupplicantProcessProxy(
19 const char *dbus_path, const char *dbus_addr)
20 : connection_(DBus::Connection::SystemBus()),
21 proxy_(&connection_, dbus_path, dbus_addr) {}
22
23SupplicantProcessProxy::~SupplicantProcessProxy() {}
24
25::DBus::Path SupplicantProcessProxy::CreateInterface(
26 const map<string, ::DBus::Variant> &args) {
27 return proxy_.CreateInterface(args);
28}
29
30void SupplicantProcessProxy::RemoveInterface(const ::DBus::Path &path) {
31 return proxy_.RemoveInterface(path);
32}
33
34::DBus::Path SupplicantProcessProxy::GetInterface(const string &ifname) {
35 return proxy_.GetInterface(ifname);
36}
37
38// definitions for private class SupplicantProcessProxy::Proxy
39
40SupplicantProcessProxy::Proxy::Proxy(
41 DBus::Connection *bus, const char *dbus_path, const char *dbus_addr)
42 : DBus::ObjectProxy(*bus, dbus_path, dbus_addr) {}
43
44SupplicantProcessProxy::Proxy::~Proxy() {}
45
46void SupplicantProcessProxy::Proxy::InterfaceAdded(
47 const ::DBus::Path& path,
48 const map<string, ::DBus::Variant> &properties) {
49 LOG(INFO) << __func__;
50 // XXX
51}
52
53void SupplicantProcessProxy::Proxy::InterfaceRemoved(
54 const ::DBus::Path& path) {
55 LOG(INFO) << __func__;
56 // XXX
57}
58
59void SupplicantProcessProxy::Proxy::PropertiesChanged(
60 const map<string, ::DBus::Variant>& properties) {
61 LOG(INFO) << __func__;
62 // XXX
63}
64
65} // namespace shill