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

Side by Side Diff: chromeos/dbus/flimflam_manager_client.h

Issue 10915106: Renaming instances of "flimflam" with "shill", now that we're only (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Upload after merge Created 8 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium 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 CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/callback.h"
12 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/dbus_client_implementation_type.h"
14 #include "chromeos/dbus/flimflam_client_helper.h"
15
16 namespace dbus {
17
18 class Bus;
19
20 } // namespace dbus
21
22 namespace chromeos {
23
24 // FlimflamManagerClient is used to communicate with the Flimflam Manager
25 // service. All methods should be called from the origin thread which
26 // initializes the DBusThreadManager instance.
27 class CHROMEOS_EXPORT FlimflamManagerClient {
28 public:
29 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler;
30 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback;
31
32 virtual ~FlimflamManagerClient();
33
34 // Factory function, creates a new instance which is owned by the caller.
35 // For normal usage, access the singleton via DBusThreadManager::Get().
36 static FlimflamManagerClient* Create(DBusClientImplementationType type,
37 dbus::Bus* bus);
38
39 // Sets PropertyChanged signal handler.
40 virtual void SetPropertyChangedHandler(
41 const PropertyChangedHandler& handler) = 0;
42
43 // Resets PropertyChanged signal handler.
44 virtual void ResetPropertyChangedHandler() = 0;
45
46 // Calls GetProperties method.
47 // |callback| is called after the method call succeeds.
48 virtual void GetProperties(const DictionaryValueCallback& callback) = 0;
49
50 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the
51 // method call finishes. The caller is responsible to delete the result.
52 // Thie method returns NULL when method call fails.
53 //
54 // TODO(hashimoto): Refactor CrosGetWifiAccessPoints and remove this method.
55 // crosbug.com/29902
56 virtual base::DictionaryValue* CallGetPropertiesAndBlock() = 0;
57
58 // Calls SetProperty method.
59 // |callback| is called after the method call succeeds.
60 virtual void SetProperty(const std::string& name,
61 const base::Value& value,
62 const VoidDBusMethodCallback& callback) = 0;
63
64 // Calls RequestScan method.
65 // |callback| is called after the method call succeeds.
66 virtual void RequestScan(const std::string& type,
67 const VoidDBusMethodCallback& callback) = 0;
68
69 // Calls EnableTechnology method.
70 // |callback| is called after the method call succeeds.
71 virtual void EnableTechnology(const std::string& type,
72 const VoidDBusMethodCallback& callback) = 0;
73
74 // Calls DisableTechnology method.
75 // |callback| is called after the method call succeeds.
76 virtual void DisableTechnology(const std::string& type,
77 const VoidDBusMethodCallback& callback) = 0;
78
79 // Calls ConfigureService method.
80 // |callback| is called after the method call succeeds.
81 virtual void ConfigureService(const base::DictionaryValue& properties,
82 const VoidDBusMethodCallback& callback) = 0;
83
84 // Calls GetService method.
85 // |callback| is called after the method call succeeds.
86 virtual void GetService(const base::DictionaryValue& properties,
87 const ObjectPathDBusMethodCallback& callback) = 0;
88
89 protected:
90 // Create() should be used instead.
91 FlimflamManagerClient();
92
93 private:
94 DISALLOW_COPY_AND_ASSIGN(FlimflamManagerClient);
95 };
96
97 } // namespace chromeos
98
99 #endif // CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/flimflam_ipconfig_client_unittest.cc ('k') | chromeos/dbus/flimflam_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698