Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: dbus_control_int.h

Issue 6575006: Add initial sketch to shill repository (Closed) Base URL: ssh://git@gitrw.chromium.org/shill.git@master
Patch Set: A few object renames and pointer conversions Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dbus_control.cc ('k') | device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 ManagerDBusProxy : protected DBusProxy, public ManagerProxyInterface {
28 public:
29 explicit ManagerDBusProxy(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 ServiceDBusProxy : protected DBusProxy, public ServiceProxyInterface {
42 public:
43 explicit ServiceDBusProxy(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 DeviceDBusProxy : protected DBusProxy, public DeviceProxyInterface {
56 public:
57 explicit DeviceDBusProxy(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_
OLDNEW
« no previous file with comments | « dbus_control.cc ('k') | device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698