| Index: dbus_control.cc
|
| diff --git a/dbus_control.cc b/dbus_control.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..708203e4866090bbe21bec71155eefd0aa414547
|
| --- /dev/null
|
| +++ b/dbus_control.cc
|
| @@ -0,0 +1,75 @@
|
| +// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <stdio.h>
|
| +#include <glib.h>
|
| +
|
| +#include <string>
|
| +
|
| +#include "shill/shill_event.h"
|
| +#include "shill/dbus_control.h"
|
| +#include "shill/dbus_control_int.h"
|
| +
|
| +namespace shill {
|
| +
|
| +#define SHILL_INTERFACE "org.chromium.shill."
|
| +#define SHILL_PATH "/org/chromium/shill/"
|
| +
|
| +const char DBusManagerProxy::kInterfaceName[] = SHILL_INTERFACE "Manager";
|
| +const char DBusManagerProxy::kPath[] = SHILL_PATH "Manager";
|
| +const char DBusServiceProxy::kInterfaceName[] = SHILL_INTERFACE "Service";
|
| +const char DBusServiceProxy::kPath[] = SHILL_PATH "Service";
|
| +const char DBusDeviceProxy::kInterfaceName[] = SHILL_INTERFACE "Device";
|
| +const char DBusDeviceProxy::kPath[] = SHILL_PATH "Device";
|
| +
|
| +void DBusProxy::SetProperty(const string& /* key */,
|
| + const string& /* val */) {
|
| + // Update property hash table, and output DBus signals, if requested
|
| +}
|
| +
|
| +const string *DBusProxy::GetProperty(const string & /* key */) {
|
| + // FIXME(pstew): Should be doing a hash table lookup
|
| + return new string("value");
|
| +}
|
| +
|
| +void DBusProxy::ClearProperty(const string & /* key */) {
|
| + // Remove entry from hash table
|
| +}
|
| +
|
| +
|
| +DBusManagerProxy::DBusManagerProxy(Manager *manager)
|
| + : interface_(kInterfaceName),
|
| + path_(kPath),
|
| + manager_(manager) {}
|
| +
|
| +void DBusManagerProxy::UpdateRunning() {}
|
| +
|
| +DBusServiceProxy::DBusServiceProxy(Service *service)
|
| + : interface_(kInterfaceName),
|
| + path_(kPath),
|
| + service_(service) {}
|
| +
|
| +void DBusServiceProxy::UpdateConnected() {}
|
| +
|
| +DBusDeviceProxy::DBusDeviceProxy(Device *device)
|
| + : interface_(kInterfaceName),
|
| + path_(kPath),
|
| + device_(device) {}
|
| +
|
| +void DBusDeviceProxy::UpdateEnabled() {}
|
| +
|
| +ManagerProxyInterface *DBusControl::CreateManagerProxy(Manager *manager) {
|
| + return new DBusManagerProxy(manager);
|
| +}
|
| +
|
| +ServiceProxyInterface *DBusControl::CreateServiceProxy(Service *service) {
|
| + return new DBusServiceProxy(service);
|
| +}
|
| +
|
| +DeviceProxyInterface *DBusControl::CreateDeviceProxy(Device *device) {
|
| + return new DBusDeviceProxy(device);
|
| +}
|
| +
|
| +
|
| +} // namespace shill
|
|
|