Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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 #ifndef SHILL_DBUS_CONTROL_INT_H_ | |
| 6 #define SHILL_DBUS_CONTROL_INT_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace shill { | |
| 11 | |
| 12 // Superclass for all DBus-backed Proxy objects | |
| 13 class DBusProxy : public ProxyInterface { | |
| 14 public: | |
| 15 void SetProperty(const string &key, const string &value); | |
| 16 const string *GetProperty(const string &key); | |
| 17 void ClearProperty(const string &key); | |
| 18 | |
| 19 protected: | |
| 20 string interface_; | |
| 21 string path_; | |
| 22 }; | |
| 23 | |
| 24 class DBusControl; | |
| 25 | |
| 26 // Subclass of DBusProxy for Manager objects | |
| 27 class DBusManagerProxy : protected DBusProxy, public ManagerProxyInterface { | |
|
Chris Masone
2011/03/10 18:44:15
I might name these things differently to make it c
| |
| 28 public: | |
| 29 explicit DBusManagerProxy(Manager *manager); | |
| 30 void UpdateRunning(); | |
| 31 | |
| 32 private: | |
| 33 static const char kInterfaceName[]; | |
| 34 static const char kPath[]; | |
| 35 string interface_; | |
| 36 string path_; | |
| 37 Manager *manager_; | |
| 38 }; | |
| 39 | |
| 40 // Subclass of DBusProxy for Service objects | |
| 41 class DBusServiceProxy : protected DBusProxy, public ServiceProxyInterface { | |
| 42 public: | |
| 43 explicit DBusServiceProxy(Service *service); | |
| 44 void UpdateConnected(); | |
| 45 | |
| 46 private: | |
| 47 static const char kInterfaceName[]; | |
| 48 static const char kPath[]; | |
| 49 string interface_; | |
| 50 string path_; | |
| 51 Service *service_; | |
| 52 }; | |
| 53 | |
| 54 // Subclass of DBusProxy for Device objects | |
| 55 class DBusDeviceProxy : protected DBusProxy, public DeviceProxyInterface { | |
| 56 public: | |
| 57 explicit DBusDeviceProxy(Device *device); | |
| 58 void UpdateEnabled(); | |
| 59 | |
| 60 private: | |
| 61 static const char kInterfaceName[]; | |
| 62 static const char kPath[]; | |
| 63 string interface_; | |
| 64 string path_; | |
| 65 Device *device_; | |
| 66 }; | |
| 67 | |
| 68 } // namespace shill | |
| 69 #endif // SHILL_DBUS_CONTROL_INT_ | |
| OLD | NEW |